/* ==========================================================================
   BMI Calculator (Body Mass Index - KG & Feet)
   Premium Mobile-Friendly Responsive UI & Visual Gauge Styles
   ========================================================================== */

.bmic-container {
    --bmic-primary: #0284c7;
    --bmic-primary-dark: #0369a1;
    --bmic-primary-light: #f0f9ff;
    --bmic-success: #10b981;
    --bmic-warning: #f59e0b;
    --bmic-danger: #ef4444;
    --bmic-info: #6366f1;
    --bmic-dark: #0f172a;
    --bmic-card-bg: #ffffff;
    --bmic-border: #e2e8f0;
    --bmic-text: #1e293b;
    --bmic-muted: #64748b;
    --bmic-radius: 14px;
    --bmic-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --bmic-glow: 0 0 0 3px rgba(2, 132, 199, 0.2);

    font-family: inherit;
    color: var(--bmic-text);
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Hero Section - Centered */
.bmic-hero {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0d9488 100%);
    color: #ffffff;
    padding: 2.2rem 2rem;
    border-radius: var(--bmic-radius);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.25);
    text-align: center;
    box-sizing: border-box;
}

.bmic-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.bmic-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0 0 0.65rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.bmic-hero-subtitle {
    font-size: 0.98rem;
    color: #e0f2fe;
    margin: 0 auto;
    max-width: 820px;
    line-height: 1.55;
    text-align: center;
}

/* Tabs */
.bmic-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.4rem;
    border-radius: 12px;
    margin-bottom: 1.75rem;
    box-sizing: border-box;
    width: 100%;
}

.bmic-tab-btn {
    flex: 1 1 200px;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    box-sizing: border-box;
}

.bmic-tab-btn.active {
    background: #ffffff;
    color: var(--bmic-primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

/* Quick Presets Bar */
.bmic-presets-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px dashed var(--bmic-border);
    border-radius: 10px;
    box-sizing: border-box;
    width: 100%;
}

.bmic-presets-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
}

.bmic-preset-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.bmic-preset-chip:hover {
    background: var(--bmic-primary-light);
    border-color: var(--bmic-primary);
    color: var(--bmic-primary-dark);
}

/* Main Grid Layout */
.bmic-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 1.75rem;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .bmic-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.bmic-col-inputs,
.bmic-col-summary {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Cards */
.bmic-card {
    background: var(--bmic-card-bg);
    border: 1px solid var(--bmic-border);
    border-radius: var(--bmic-radius);
    padding: 1.75rem;
    box-shadow: var(--bmic-shadow);
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.bmic-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bmic-border);
}

.bmic-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bmic-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bmic-card-badge {
    font-size: 0.75rem;
    background: #e2e8f0;
    color: #475569;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
}

/* Form Fields */
.bmic-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.bmic-col-full {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .bmic-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.bmic-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.bmic-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.bmic-label-sub {
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--bmic-muted);
}

.bmic-dual-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 420px) {
    .bmic-dual-inputs {
        grid-template-columns: minmax(0, 1fr);
    }
}

.bmic-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.bmic-unit-tag {
    position: absolute;
    right: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.85rem;
}

.bmic-input {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 2.2rem 0.75rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid var(--bmic-border);
    border-radius: 9px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.bmic-input:focus {
    outline: none;
    border-color: var(--bmic-primary);
    box-shadow: var(--bmic-glow);
}

.bmic-select {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid var(--bmic-border);
    border-radius: 9px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.bmic-select:focus {
    outline: none;
    border-color: var(--bmic-primary);
    box-shadow: var(--bmic-glow);
}

/* Gender Selector Radio Cards */
.bmic-gender-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.bmic-gender-card {
    border: 1.5px solid var(--bmic-border);
    border-radius: 9px;
    padding: 0.65rem;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-sizing: border-box;
}

.bmic-gender-card.active {
    border-color: var(--bmic-primary);
    background: var(--bmic-primary-light);
    color: var(--bmic-primary-dark);
}

/* Unit Mode Toggle Pill */
.bmic-unit-toggle-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.bmic-unit-btn {
    flex: 1 1 auto;
    padding: 0.5rem 0.85rem;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    box-sizing: border-box;
}

.bmic-unit-btn.active {
    background: var(--bmic-primary);
    border-color: var(--bmic-primary);
    color: #ffffff;
}

/* Visual Needle Gauge & Meter */
.bmic-gauge-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--bmic-border);
    box-sizing: border-box;
    width: 100%;
}

.bmic-gauge-track {
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(to right, 
        #38bdf8 0%, #38bdf8 18.5%, 
        #10b981 18.5%, #10b981 24.9%, 
        #f59e0b 24.9%, #f59e0b 29.9%, 
        #f97316 29.9%, #f97316 34.9%, 
        #ef4444 34.9%, #ef4444 100%);
    position: relative;
    margin: 1.5rem 0 0.75rem 0;
}

.bmic-gauge-needle {
    position: absolute;
    top: -8px;
    width: 4px;
    height: 32px;
    background: #0f172a;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.bmic-gauge-needle::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 12px;
    height: 12px;
    background: #0f172a;
    border-radius: 50%;
}

.bmic-gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Summary / Output Sidebar */
.bmic-summary-sticky {
    position: sticky;
    top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.bmic-summary-card {
    background: #ffffff;
    border: 2px solid var(--bmic-primary);
    border-radius: var(--bmic-radius);
    padding: 1.75rem;
    box-shadow: 0 14px 35px -5px rgba(2, 132, 199, 0.15);
    box-sizing: border-box;
    width: 100%;
}

.bmic-summary-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.bmic-bmi-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--bmic-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.bmic-bmi-score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bmic-primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.bmic-status-badge {
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    word-break: break-word;
}

.bmic-status-underweight { background: #e0f2fe; color: #0284c7; }
.bmic-status-normal { background: #dcfce7; color: #15803d; }
.bmic-status-overweight { background: #fef3c7; color: #b45309; }
.bmic-status-obese1 { background: #ffedd5; color: #c2410c; }
.bmic-status-obese2 { background: #fee2e2; color: #b91c1c; }

/* Target & Ideal Weight Box */
.bmic-ideal-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.bmic-ideal-box .label {
    font-size: 0.85rem;
    color: #166534;
    font-weight: 600;
}

.bmic-ideal-box .value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #15803d;
    margin: 0.2rem 0;
}

.bmic-ideal-box .diff {
    font-size: 0.82rem;
    font-weight: 700;
}

/* Breakdown rows */
.bmic-breakdown-list {
    margin-bottom: 1.5rem;
}

.bmic-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--bmic-border);
    font-size: 0.88rem;
}

.bmic-breakdown-row:last-child {
    border-bottom: none;
}

.bmic-breakdown-val {
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

/* Action Buttons */
.bmic-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.25rem;
    width: 100%;
}

.bmic-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    text-align: center;
}

.bmic-btn-print {
    background: #0f172a;
    color: #ffffff;
}

.bmic-btn-print:hover {
    background: #1e293b;
}

.bmic-btn-copy {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.bmic-btn-copy:hover {
    background: #e2e8f0;
}

.bmic-btn-reset {
    background: transparent;
    color: #ef4444;
    font-size: 0.82rem;
    padding: 0.4rem;
}

.bmic-btn-reset:hover {
    text-decoration: underline;
}

/* Dietary & Calorie Recommendation Card */
.bmic-diet-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .bmic-diet-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.bmic-diet-card {
    background: #f8fafc;
    border: 1px solid var(--bmic-border);
    border-radius: 10px;
    padding: 0.85rem;
    text-align: center;
    box-sizing: border-box;
}

.bmic-diet-card .title {
    font-size: 0.78rem;
    color: var(--bmic-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.bmic-diet-card .cal {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--bmic-primary);
    margin: 0.25rem 0;
}

.bmic-diet-card .sub {
    font-size: 0.75rem;
    color: #64748b;
}

/* WHO Standard Table */
.bmic-table-responsive {
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.bmic-who-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 1rem;
    table-layout: fixed;
    box-sizing: border-box;
}

.bmic-th-mob {
    display: none;
}

.bmic-th-full {
    display: inline;
}

.bmic-who-table th {
    background: #f1f5f9;
    padding: 0.65rem 0.5rem;
    text-align: left;
    font-weight: 700;
    border: 1px solid var(--bmic-border);
    word-break: break-word;
    box-sizing: border-box;
}

.bmic-who-table td {
    padding: 0.6rem 0.5rem;
    border: 1px solid var(--bmic-border);
    word-break: break-word;
    box-sizing: border-box;
}

.bmic-who-table th:first-child,
.bmic-who-table td:first-child {
    width: 32%;
}

.bmic-who-table th:nth-child(2),
.bmic-who-table td:nth-child(2) {
    width: 22%;
    text-align: center;
}

.bmic-who-table th:nth-child(3),
.bmic-who-table td:nth-child(3) {
    width: 22%;
    text-align: center;
}

.bmic-who-table th:nth-child(4),
.bmic-who-table td:nth-child(4) {
    width: 24%;
    text-align: center;
}

.bmic-who-table tr.active-row {
    background: #ecfdf5;
    font-weight: 700;
}

@media (max-width: 640px) {
    .bmic-hero {
        padding: 1.5rem 1rem;
    }
    .bmic-hero-title {
        font-size: 1.35rem;
    }
    .bmic-card {
        padding: 1.15rem 0.85rem;
        overflow-x: hidden;
    }
    .bmic-summary-card {
        padding: 1.25rem 1rem;
    }
    .bmic-bmi-score {
        font-size: 2.5rem;
    }
    .bmic-tab-btn {
        flex: 1 1 100%;
    }
    .bmic-th-full {
        display: none !important;
    }
    .bmic-th-mob {
        display: inline !important;
    }
    .bmic-table-responsive {
        width: 100% !important;
        overflow-x: hidden !important;
    }
    .bmic-who-table {
        width: 100% !important;
        table-layout: fixed !important;
        font-size: 0.73rem !important;
        margin-top: 0.75rem;
    }
    .bmic-who-table th,
    .bmic-who-table td {
        padding: 6px 3px !important;
        line-height: 1.35;
        font-size: 0.73rem !important;
    }
    .bmic-who-table th:first-child,
    .bmic-who-table td:first-child {
        width: 32% !important;
        text-align: left;
    }
    .bmic-who-table th:nth-child(2),
    .bmic-who-table td:nth-child(2) {
        width: 21% !important;
        text-align: center;
    }
    .bmic-who-table th:nth-child(3),
    .bmic-who-table td:nth-child(3) {
        width: 21% !important;
        text-align: center;
    }
    .bmic-who-table th:nth-child(4),
    .bmic-who-table td:nth-child(4) {
        width: 26% !important;
        text-align: center;
        font-size: 0.70rem !important;
    }
}

/* ==========================================================================
   Dark Mode Styles for BMI Calculator
   Matches TulBD Theme System ([data-theme="dark"] & .dark-theme)
   ========================================================================== */

[data-theme="dark"] .bmic-container,
.dark-theme .bmic-container,
body.dark-theme .bmic-container {
    --bmic-card-bg: #1e293b;
    --bmic-border: #334155;
    --bmic-text: #f8fafc;
    --bmic-muted: #94a3b8;
    --bmic-dark: #f8fafc;
    --bmic-primary-light: rgba(2, 132, 199, 0.2);
    --bmic-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    color: #f8fafc;
}

/* Cards & Headers in Dark Mode */
[data-theme="dark"] .bmic-card,
.dark-theme .bmic-card,
body.dark-theme .bmic-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .bmic-card-header,
.dark-theme .bmic-card-header,
body.dark-theme .bmic-card-header {
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .bmic-card-title,
.dark-theme .bmic-card-title,
body.dark-theme .bmic-card-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .bmic-card-badge,
.dark-theme .bmic-card-badge,
body.dark-theme .bmic-card-badge {
    background: #334155 !important;
    color: #cbd5e1 !important;
}

/* Tabs & Presets in Dark Mode */
[data-theme="dark"] .bmic-tabs,
.dark-theme .bmic-tabs,
body.dark-theme .bmic-tabs {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}

[data-theme="dark"] .bmic-tab-btn,
.dark-theme .bmic-tab-btn,
body.dark-theme .bmic-tab-btn {
    color: #94a3b8 !important;
}

[data-theme="dark"] .bmic-tab-btn:hover,
.dark-theme .bmic-tab-btn:hover,
body.dark-theme .bmic-tab-btn:hover {
    color: #f8fafc !important;
}

[data-theme="dark"] .bmic-tab-btn.active,
.dark-theme .bmic-tab-btn.active,
body.dark-theme .bmic-tab-btn.active {
    background: #1e293b !important;
    color: #38bdf8 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .bmic-presets-bar,
.dark-theme .bmic-presets-bar,
body.dark-theme .bmic-presets-bar {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .bmic-presets-label,
.dark-theme .bmic-presets-label,
body.dark-theme .bmic-presets-label {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .bmic-preset-chip,
.dark-theme .bmic-preset-chip,
body.dark-theme .bmic-preset-chip {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .bmic-preset-chip:hover,
.dark-theme .bmic-preset-chip:hover,
body.dark-theme .bmic-preset-chip:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

/* Form Fields & Labels in Dark Mode */
[data-theme="dark"] .bmic-label,
.dark-theme .bmic-label,
body.dark-theme .bmic-label {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .bmic-label-sub,
.dark-theme .bmic-label-sub,
body.dark-theme .bmic-label-sub {
    color: #94a3b8 !important;
}

[data-theme="dark"] .bmic-unit-tag,
.dark-theme .bmic-unit-tag,
body.dark-theme .bmic-unit-tag {
    color: #94a3b8 !important;
}

[data-theme="dark"] .bmic-input,
.dark-theme .bmic-input,
body.dark-theme .bmic-input,
[data-theme="dark"] .bmic-select,
.dark-theme .bmic-select,
body.dark-theme .bmic-select {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .bmic-select option,
.dark-theme .bmic-select option,
body.dark-theme .bmic-select option {
    background: #0f172a !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .bmic-input:focus,
.dark-theme .bmic-input:focus,
body.dark-theme .bmic-input:focus,
[data-theme="dark"] .bmic-select:focus,
.dark-theme .bmic-select:focus,
body.dark-theme .bmic-select:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

/* Unit Mode Toggle & Gender Selector in Dark Mode */
[data-theme="dark"] .bmic-unit-btn,
.dark-theme .bmic-unit-btn,
body.dark-theme .bmic-unit-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .bmic-unit-btn:hover,
.dark-theme .bmic-unit-btn:hover,
body.dark-theme .bmic-unit-btn:hover {
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}

[data-theme="dark"] .bmic-unit-btn.active,
.dark-theme .bmic-unit-btn.active,
body.dark-theme .bmic-unit-btn.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .bmic-gender-card,
.dark-theme .bmic-gender-card,
body.dark-theme .bmic-gender-card {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .bmic-gender-card:hover,
.dark-theme .bmic-gender-card:hover,
body.dark-theme .bmic-gender-card:hover {
    border-color: #38bdf8 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .bmic-gender-card.active,
.dark-theme .bmic-gender-card.active,
body.dark-theme .bmic-gender-card.active {
    background: rgba(2, 132, 199, 0.25) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}

/* Gauge Box & Needle in Dark Mode */
[data-theme="dark"] .bmic-gauge-box,
.dark-theme .bmic-gauge-box,
body.dark-theme .bmic-gauge-box {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .bmic-gauge-needle,
.dark-theme .bmic-gauge-needle,
body.dark-theme .bmic-gauge-needle {
    background: #f8fafc !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .bmic-gauge-needle::after,
.dark-theme .bmic-gauge-needle::after,
body.dark-theme .bmic-gauge-needle::after {
    background: #f8fafc !important;
}

[data-theme="dark"] .bmic-gauge-labels,
.dark-theme .bmic-gauge-labels,
body.dark-theme .bmic-gauge-labels {
    color: #94a3b8 !important;
}

/* Summary Card Sidebar in Dark Mode */
[data-theme="dark"] .bmic-summary-card,
.dark-theme .bmic-summary-card,
body.dark-theme .bmic-summary-card {
    background: #1e293b !important;
    border-color: #0284c7 !important;
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.5) !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .bmic-bmi-label,
.dark-theme .bmic-bmi-label,
body.dark-theme .bmic-bmi-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .bmic-bmi-score,
.dark-theme .bmic-bmi-score,
body.dark-theme .bmic-bmi-score {
    color: #38bdf8 !important;
}

[data-theme="dark"] .bmic-ideal-box,
.dark-theme .bmic-ideal-box,
body.dark-theme .bmic-ideal-box {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .bmic-ideal-box .label,
.dark-theme .bmic-ideal-box .label,
body.dark-theme .bmic-ideal-box .label {
    color: #86efac !important;
}

[data-theme="dark"] .bmic-ideal-box .value,
.dark-theme .bmic-ideal-box .value,
body.dark-theme .bmic-ideal-box .value {
    color: #4ade80 !important;
}

[data-theme="dark"] .bmic-breakdown-row,
.dark-theme .bmic-breakdown-row,
body.dark-theme .bmic-breakdown-row {
    border-bottom-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .bmic-breakdown-val,
.dark-theme .bmic-breakdown-val,
body.dark-theme .bmic-breakdown-val {
    color: #f8fafc !important;
}

[data-theme="dark"] .bmic-btn-print,
.dark-theme .bmic-btn-print,
body.dark-theme .bmic-btn-print {
    background: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .bmic-btn-print:hover,
.dark-theme .bmic-btn-print:hover,
body.dark-theme .bmic-btn-print:hover {
    background: #475569 !important;
}

[data-theme="dark"] .bmic-btn-copy,
.dark-theme .bmic-btn-copy,
body.dark-theme .bmic-btn-copy {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .bmic-btn-copy:hover,
.dark-theme .bmic-btn-copy:hover,
body.dark-theme .bmic-btn-copy:hover {
    background: #1e293b !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .bmic-btn-reset,
.dark-theme .bmic-btn-reset,
body.dark-theme .bmic-btn-reset {
    color: #f87171 !important;
}

/* Diet Cards in Dark Mode */
[data-theme="dark"] .bmic-diet-card,
.dark-theme .bmic-diet-card,
body.dark-theme .bmic-diet-card {
    background: #0f172a !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .bmic-diet-card .title,
.dark-theme .bmic-diet-card .title,
body.dark-theme .bmic-diet-card .title {
    color: #94a3b8 !important;
}

[data-theme="dark"] .bmic-diet-card .cal,
.dark-theme .bmic-diet-card .cal,
body.dark-theme .bmic-diet-card .cal {
    color: #38bdf8 !important;
}

[data-theme="dark"] .bmic-diet-card .sub,
.dark-theme .bmic-diet-card .sub,
body.dark-theme .bmic-diet-card .sub {
    color: #64748b !important;
}

/* WHO Standard Table in Dark Mode */
[data-theme="dark"] .bmic-who-table th,
.dark-theme .bmic-who-table th,
body.dark-theme .bmic-who-table th {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .bmic-who-table td,
.dark-theme .bmic-who-table td,
body.dark-theme .bmic-who-table td {
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .bmic-who-table tr:hover,
.dark-theme .bmic-who-table tr:hover,
body.dark-theme .bmic-who-table tr:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .bmic-who-table tr.active-row,
.dark-theme .bmic-who-table tr.active-row,
body.dark-theme .bmic-who-table tr.active-row {
    background: rgba(16, 185, 129, 0.2) !important;
}

[data-theme="dark"] .bmic-who-table tr.active-row td,
.dark-theme .bmic-who-table tr.active-row td,
body.dark-theme .bmic-who-table tr.active-row td {
    color: #f8fafc !important;
    font-weight: 700 !important;
}

/* Status Badges in Dark Mode */
[data-theme="dark"] .bmic-status-underweight,
.dark-theme .bmic-status-underweight,
body.dark-theme .bmic-status-underweight {
    background: rgba(56, 189, 248, 0.2) !important;
    color: #38bdf8 !important;
}

[data-theme="dark"] .bmic-status-normal,
.dark-theme .bmic-status-normal,
body.dark-theme .bmic-status-normal {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #4ade80 !important;
}

[data-theme="dark"] .bmic-status-overweight,
.dark-theme .bmic-status-overweight,
body.dark-theme .bmic-status-overweight {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
}

[data-theme="dark"] .bmic-status-obese1,
.dark-theme .bmic-status-obese1,
body.dark-theme .bmic-status-obese1 {
    background: rgba(249, 115, 22, 0.2) !important;
    color: #fb923c !important;
}

[data-theme="dark"] .bmic-status-obese2,
.dark-theme .bmic-status-obese2,
body.dark-theme .bmic-status-obese2 {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
}

/* Print Area */
@media print {
    body * {
        visibility: hidden;
    }
    #bmic-print-area, #bmic-print-area * {
        visibility: visible;
    }
    #bmic-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
        background: #ffffff;
        color: #000000;
    }
    .bmic-actions, .bmic-tabs, .bmic-presets-bar {
        display: none !important;
    }
}
