/* BMR Calculator - Light Theme */

/* Base calculator styles (shared with BMI calculator) */

/* Gender Toggle */
.gender-toggle {
    display: flex;
    gap: 0.5rem;
}

.gender-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.gender-btn:hover {
    border-color: var(--primary-color);
    background: var(--hover-bg);
}

.gender-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--bg-primary);
}

.gender-icon {
    font-size: 1.2rem;
}

/* BMR Display */
.bmr-display {
    text-align: center;
    margin: 2rem 0;
}

.bmr-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.bmr-unit {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.bmr-description {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Energy Breakdown */
.bmr-breakdown {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.bmr-breakdown h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.breakdown-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breakdown-bar {
    flex: 1;
    height: 24px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.breakdown-fill {
    height: 100%;
    border-radius: 12px;
    position: relative;
    animation: fillAnimation 1s ease-out;
}

.breakdown-fill.brain {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.breakdown-fill.heart {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.breakdown-fill.liver {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.breakdown-fill.muscle {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.breakdown-fill.other {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

@keyframes fillAnimation {
    from { width: 0 !important; }
    to { width: var(--target-width); }
}

.breakdown-info {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

.breakdown-label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.breakdown-percentage {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Activity Multipliers */
.activity-multipliers {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.activity-multipliers h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.activity-multipliers p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.multiplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.multiplier-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.multiplier-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.multiplier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.activity-level {
    font-weight: 600;
    color: var(--text-color);
}

.multiplier {
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.activity-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.calculated-calories {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 6px;
}

/* Information Sections */
.info-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.info-section h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    line-height: 1.5;
}

.info-section li:last-child {
    border-bottom: none;
}

.info-section li strong {
    color: var(--text-color);
}

/* Formula Display */
.formula {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
}

.formula-item {
    font-family: 'Courier New', monospace;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.formula-item:last-child {
    margin-bottom: 0;
}

.formula-item strong {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gender-toggle {
        flex-direction: column;
    }
    
    .bmr-value {
        font-size: 2.5rem;
    }
    
    .breakdown-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .breakdown-info {
        min-width: auto;
        margin-top: 0.5rem;
    }
    
    .multiplier-grid {
        grid-template-columns: 1fr;
    }
    
    .multiplier-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .formula-item {
        font-size: 0.8rem;
        word-break: break-all;
    }
    
    .info-sections {
        gap: 1.5rem;
    }
}

/* Dark theme compatibility */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: var(--text-primary);
        --border-color: var(--text-secondary);
        --bg-secondary: var(--text-primary);
        --text-color: var(--bg-secondary);
        --text-muted: var(--text-muted);
        --hover-bg: var(--text-secondary);
    }
/* Dark mode overrides */
[data-theme="dark"] {
    --tool-bg: #0f172a;
    --tool-border: #334155;
    --tool-border-hover: #475569;
    --tool-text: #f8fafc;
    --tool-text-secondary: #94a3b8;
    --tool-input-bg: #1e293b;
    --tool-input-border: #334155;
    --tool-button-bg: #1e293b;
    --tool-button-hover: #334155;
    --tool-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --tool-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --surface-color: #1e293b;
    --surface-hover: #334155;
    --background-color: #0f172a;
    --text-color: #f8fafc;
    --status-info: rgba(96, 165, 250, 0.2);
    --status-success: rgba(34, 197, 94, 0.2);
    --status-error: rgba(248, 113, 113, 0.2);
    --bg-color: #0f172a;
}

/* Dark mode element overrides */
[data-theme="dark"] .tool-card {
    background: var(--bg-card, #1e293b);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] .tool-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--input-bg, #1e293b);
    color: var(--text-primary, #f8fafc);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .tab-btn.active {
    color: white;
}

[data-theme="dark"] label {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] p {
    color: var(--text-secondary, #cbd5e1);
}

}


