/* ==========================================================================
   Hitaayu Wellness Dashboard - Final Professional Styles
   ========================================================================== */

/* 1. Page Layout & Spacing */
.calculator-page-content {
    padding-top: 150px; /* Prevents header overlap */
    padding-bottom: 80px;
    background-color: var(--blue-light);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. Form Styling */
.calculator-form-container {
    max-width: 750px;
    margin: 0 auto 50px; /* Space between form and footer/results */
}

.calculator-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--green);
}

.input-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.input-group {
    flex: 1;
}

.input-group.full-width {
    width: 100%;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--sapphire);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Inputs & Selects */
input[type="number"], 
.custom-select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-color);
    transition: all 0.3s ease;
    background-color: #fafafa;
}

input:focus, .custom-select:focus {
    outline: none;
    border-color: var(--green);
    background-color: var(--white);
    box-shadow: 0 0 0 4px var(--green-tint);
}

.dual-input {
    display: flex;
    gap: 10px;
}

/* Toggles */
.gender-options, .unit-toggle {
    display: flex;
    background: var(--background-light);
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 5px;
}

.gender-btn, .unit-btn {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    background: transparent;
    font-weight: 600;
    color: var(--text-color-light);
    transition: all 0.3s ease;
}

.gender-btn.active, .unit-btn.active {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Calculate Button Spacing */
.form-action {
    display: flex;
    justify-content: center;
    margin-top: 40px; /* Breathing room from dropdown */
}

#calculate-btn {
    width: auto;
    min-width: 280px; /* Prevents cramped look */
    padding: 16px 35px;
}

/* 3. Results Section */
.results-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--peach);
    animation: fadeInUp 0.5s ease-out;
}

.report-header {
    text-align: center;
    margin-bottom: 40px;
}

.report-header h3 {
    font-size: 2rem;
    color: var(--sapphire);
    margin-bottom: 10px;
}

.divider-line.mini {
    width: 60px;
    height: 3px;
    background: var(--peach);
    margin: 0 auto;
    border-radius: 2px;
}

.results-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.result-box {
    text-align: center;
    padding: 25px 15px;
    background: var(--peach-tint);
    border-radius: 12px;
    border: 1px solid rgba(232, 112, 120, 0.15);
}

.result-box .label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sapphire);
    font-weight: 700;
    margin-bottom: 10px;
}

.result-box p {
    font-size: 32px;
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--green);
    margin: 5px 0;
}

.sub-text {
    font-size: 13px;
    color: var(--text-color-light);
}

/* BMI Pill Fix */
.category-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important; /* Force white text */
    margin-top: 10px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* BMR Banner */
.bmr-banner {
    max-width: 650px;
    margin: 0 auto 40px;
    background: var(--green-tint);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid var(--green);
}

.bmr-icon {
    font-size: 28px;
    color: var(--peach);
}

.bmr-details h4 {
    margin-bottom: 5px;
    color: var(--green-dark);
}

/* Lifestyle Section - Centered */
.lifestyle-report {
    text-align: center;
    padding: 40px 0;
    border-top: 1px dashed #e0e0e0;
    margin: 30px 0;
}

.caricature-container img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
}

.funny-desc {
    font-style: italic;
    font-weight: 500;
    color: var(--text-color-light);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Ayurvedic Steps - Clean List */
.ayurvedic-steps {
    text-align: center;
    margin-bottom: 50px;
}

.steps-title {
    color: var(--sapphire);
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.ayurvedic-steps ul {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
    max-width: 600px;
}

.ayurvedic-steps li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
}

.ayurvedic-steps li i {
    color: var(--green);
    margin-top: 4px;
}

/* Final CTA - No Grey Box */
.cta-flow {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.cta-flow p {
    font-weight: 600;
    color: var(--sapphire);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
    padding: 12px 30px;
}

.btn-outline:hover {
    background: var(--green);
    color: #fff;
    transform: translateY(-2px);
}


/* ... Keep all previous CSS from the provided file, then ADD/UPDATE these sections ... */

/* --- Checkbox Styling (Athlete Mode) --- */
.checkbox-group {
    margin-top: -10px;
    margin-bottom: 20px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--sapphire);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #eee;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--green);
    border-color: var(--green);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.hint-text {
    font-size: 13px;
    color: var(--text-color-light);
    margin-top: 5px;
    display: block;
}

/* --- BMR Note Styling --- */
.bmr-note {
    font-size: 14px;
    font-weight: 600;
    color: var(--sapphire);
    margin-top: 5px;
    margin-bottom: 5px;
}

.small-note {
    font-size: 12px;
    color: var(--text-color-light);
    font-style: italic;
    line-height: 1.4;
    margin-top: 5px;
}

/* --- Caloric Goals Grid (NEW) --- */
.goals-section {
    margin: 40px 0;
    text-align: center;
}

.goals-title {
    font-size: 1.5rem;
    color: var(--sapphire);
    margin-bottom: 20px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.goal-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.goal-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color-light);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.goal-calories {
    font-size: 24px;
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 5px;
}

.goal-desc {
    font-size: 12px;
    color: var(--text-color-light);
}

/* Specific Colors for Goals */
.goal-card.loss .goal-calories { color: #e74c3c; } /* Red/Orange for deficit */
.goal-card.maintain .goal-calories { color: #2ecc71; } /* Green for balance */
.goal-card.gain .goal-calories { color: #3498db; } /* Blue for surplus */

/* --- Disclaimer Section --- */
.report-disclaimer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
}

.report-disclaimer strong {
    color: var(--text-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .goals-grid {
        grid-template-columns: 1fr; /* Stack goal cards on mobile */
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-page-content { padding-top: 110px; }
    .input-row { flex-direction: column; gap: 15px; }
    .results-main-grid { grid-template-columns: 1fr; }
    .calculator-form-card, .results-card { padding: 30px 20px; }
    .bmr-banner { flex-direction: column; text-align: center; }

    /* ADD THIS: Ensures the button fits perfectly on small screens */
    #calculate-btn {
        width: 100%;       /* Takes full available width */
        min-width: 0;      /* Removes the rigid restriction */
    }
}
/* --- Mobile Menu Integration (Safety Fix) --- */
.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block; /* Visible on mobile */
        z-index: 1001;
}

    .mobile-menu-btn .bar {
        width: 25px;
        height: 3px;
        background-color: var(--sapphire);
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        display: block;
    }
    
    /* Animation for the X shape when active */
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Sidebar Navigation Logic */
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%; /* Initially hidden */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
    }

    .nav-list.active {
        right: 0; /* Slides in */
    }
}