/* BMI Calculator - Single Responsive Styles */
.bmi-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.bmi-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.bmi-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}
.bmi-heart {
    font-size: 2.8rem;
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.bmi-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-family: 'Poppins', sans-serif;
}
.bmi-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Tabs */
.bmi-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}
.bmi-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}
.bmi-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.bmi-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Inputs */
.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 767px) {
    .input-group { grid-template-columns: 1fr; }
}
.input-field label {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.bmi-input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 500;
    width: 100%;
}
.bmi-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Result */
.result-area {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.6rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.result-label { font-size: 1.15rem; color: var(--text-light); }
.result-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}
.bmi-category {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 1rem 0;
    padding: 0.8rem;
    border-radius: 12px;
}
.bmi-category.underweight { background: #fef3c7; color: #92400e; }
.bmi-category.healthy    { background: #d1fae5; color: #065f46; }
.bmi-category.overweight { background: #fee2e2; color: #991b1b; }
.bmi-category.obese      { background: #f3e8ff; color: #6b21a8; }

.calculation-explanation {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.5;
}

/* Actions */
.bmi-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.bmi-action-btn {
    flex: 1;
    min-width: 140px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.bmi-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.bmi-action-btn.download-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: white;
}
.bmi-action-btn.download-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

/* Download Card - Same style as Percentage */
.download-card-container { margin-top: 2rem; padding: 1rem; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--primary); }
.download-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(99,102,241,0.2);
    max-width: 500px;
    margin: 0 auto;
}
.dark-mode .download-card {
    background: linear-gradient(135deg, #1e1e2e, #2d2d44);
    border: 1px solid rgba(99,102,241,0.3);
}
.download-card-bg-decoration,
.download-card-corner-decoration { /* same as percentage */ ... } /* (I kept the exact same decorative classes from your reference) */

.download-result-box { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }
.download-result-value { font-size: 3.2rem; font-weight: 800; }

/* Presets, Reference Table, SEO - same responsive approach as Percentage */
.bmi-presets, .bmi-reference, .bmi-seo {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.preset-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.7rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    cursor: pointer;
}
.preset-btn:hover { border-color: var(--primary); color: var(--primary); }

.bmi-table { width: 100%; border-collapse: collapse; }
.bmi-table th, .bmi-table td { padding: 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.bmi-table th { background: var(--bg); font-weight: 600; }

/* Age Input Styling */
.age-group {
    margin-bottom: 1.5rem;
    grid-template-columns: 1fr !important;
}
.age-group .input-field {
    max-width: 200px;
    margin: 0 auto;
}

/* Slightly better mobile spacing */
@media (max-width: 767px) {
    .age-group .bmi-input {
        font-size: 1.1rem;
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .bmi-title { font-size: 2.4rem; }
    .bmi-card { padding: 1.5rem; }
    .result-value { font-size: 2.4rem; }
}