/* Base Styles */
body {
    margin: 0;
    font-family: 'Inter', 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    background-color: #f9f9f9;
    color: #111;
}

/* Theme Styles */
body.light-theme {
    background-color: #f9f9f9;
    color: #111;
}
body.dark-theme {
    background-color: #1e1e1e;
    color: #4669b6;
}

/* Container */
.container {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 750px;
    transition: background 0.3s, color 0.3s;
}

/* Heading */
.heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: inherit;
    text-align: center;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.tab-btn {
    flex: 1;
    padding: 12px 15px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #e0e0e0;
    color: #111;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}
.tab-btn.active {
    background-color: #6a0dad;
    color: #ffffff;
}

/* Inputs & Textarea */
.input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: border 0.3s, background 0.3s;
}
textarea {
    resize: vertical;
    min-height: 100px;
}
.input:disabled, textarea:disabled {
    background-color: #f0f0f0;
}

/* Buttons */
.btn {
    background-color: #6a0dad;
    color: #fff;
    border: none;
    padding: 12px 25px;
    margin: 5px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn:hover {
    background-color: #4b0073;
}
.reset-btn {
    background-color: #dc143c;
}
.reset-btn:hover {
    background-color: #a30027;
}

/* Info & Text */
.info-text, #health-insight, #recommendations, .personalized-guidance p {
    text-align: center;
    margin: 8px 0;
    font-size: 0.95rem;
}

/* BMI Meter */
.bmi-meter {
    width: 100%;
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}
#bmi-progress {
    height: 100%;
    width: 0;
    background-color: green;
    transition: width 0.5s, background-color 0.5s;
}

/* Tab Content */
.tab-content {
    width: 100%;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
    max-height: 180px;
    overflow-y: auto;
}
li {
    margin: 6px 0;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 6px;
}

/* Personalized Guidance */
.personalized-guidance h4 {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Theme Toggle */
.theme-toggle {
    margin-top: 25px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        width: 95%;
    }
    .input, textarea, select, .btn {
        font-size: 14px;
        padding: 10px;
    }
    .tab-btn {
        font-size: 14px;
        padding: 10px;
    }
}