/* General Styling */
body {
    margin: 0;
    font-family: 'Inter', sans-serif; /* Use Inter font */
    background: radial-gradient(circle at top left, #1a1a2e, #0b0b14); /* Radial gradient background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    color: white;
}

.dashboard-container {
    background-color: #0b0b14; /* Even darker, almost black for the container */
    padding: 40px;
    border-radius: 24px;
    max-width: 900px; /* Limit width for better readability */
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
}

/* Header Section */
.header-section {
    text-align: center; /* Centering header content */
    margin-bottom: 30px;
}

.header-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
}

.input-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Updated styling for the main text input */
input[type="text"] {
    background: #161625; /* Darker background */
    border: 1px solid #4f46e5; /* Darker purple/blue border */
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); /* Inner shadow */
    flex-grow: 1;
    max-width: 300px;
}

input[type="text"]::placeholder {
    color: #94a3b8;
}

input[type="text"]:focus {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6); /* Neon glow on focus */
    transform: translateY(-1px); /* Slight lift on focus */
}

/* Updated styling for the main Calculate button */
#calculate { /* Targeting by ID for specific styling */
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4); /* Neon glow */
    transition: 0.3s;
}

#calculate:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
    transform: translateY(-1px);
}


/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.03); /* Glassmorphism effect */
    backdrop-filter: blur(10px); /* Blur effect */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.2); /* Enhanced shadow and subtle neon glow */
}

/* Updated card heading spacing */
.card h3 {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Lighter separator */
    padding-bottom: 15px; /* More padding */
    margin-bottom: 20px; /* More margin */
}

/* Updated row spacing */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically align items */
    margin-bottom: 18px; /* More margin */
    color: #94a3b8; /* Muted gray */
    font-size: 1rem;
}

.value {
    color: #8b5cf6; /* Neon Purple */
    font-weight: 700;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.5); /* Neon text glow */
}

/* Progress Bar */
.progress-bg {
    background: #1e1e2e;
    height: 10px; /* Slightly thicker bar */
    border-radius: 5px;
    width: 100%;
    margin-top: 15px;
    overflow: hidden; /* Ensures gradient stays within bounds */
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6); /* Vibrant gradient */
    border-radius: 5px;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6); /* Stronger neon glow for fill */
    width: 0%; /* Start at 0, JavaScript will update */
    transition: width 0.5s ease-in-out; /* Smooth transition for progress */
}

/* Calculator Specific Styles */
.calculator-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calculator-input-group label {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Remove spin buttons from number inputs */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Styling adaptation for number inputs in the roadmap calculator */
.roadmap-calculator input[type="number"] {
    background: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
    border: 1px solid rgba(139, 92, 246, 0.3); /* Subtle purple border */
    border-radius: 6px;
    color: #a78bfa; /* Lighter purple for numbers */
    padding: 8px;
    width: 60px; /* Narrower width */
    text-align: center;
    font-weight: bold;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.roadmap-calculator input[type="number"]:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.1);
}

/* Updated styling for the calculator button */
.calculator-button {
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); /* Consistent gradient */
    border: none;
    border-radius: 8px; /* Consistent border-radius */
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4); /* Neon glow */
}

.calculator-button:hover {
    transform: translateY(-1px); /* Consistent lift effect */
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

/* Design tip: Spacing for "Days Needed" result */
#days-needed-result {
    margin-top: 15px;
}
