/**
 * Steps to Calories Calculator Stylesheet
 * 
 * High-contrast theme styling, popular step chips,
 * horizontal quick presets, and goal progress bars.
 */

.apple-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dark .apple-glass {
    background: rgba(18, 18, 20, 0.65);
}

.apple-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(228, 228, 231, 0.9);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dark .apple-card {
    background: rgba(24, 24, 27, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.apple-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 25px -10px rgba(16, 185, 129, 0.15);
}

.text-glow {
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.progress-bar-indicator {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Unit Switcher Tabs (Matches standard health toolbar) */
.unit-tab {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.5rem;
    color: #52525b;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.dark .unit-tab {
    color: #a1a1aa;
}

.unit-tab:hover {
    color: #18181b;
}

.dark .unit-tab:hover {
    color: #f4f4f5;
}

.unit-tab.active {
    color: #047857;
    background-color: #d1fae5;
    border-color: #a7f3d0;
}

.dark .unit-tab.active {
    color: #34d399;
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Step Goal Chips (5k, 8k, 10k, 15k, 20k) */
.step-chip {
    min-height: 38px;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.75rem;
    background-color: #f4f4f5;
    border: 1px solid #e4e4e7;
    color: #3f3f46;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dark .step-chip {
    background-color: rgba(24, 24, 27, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
}

/* Hover State - High Contrast in both light and dark mode */
.step-chip:hover {
    background-color: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
    transform: translateY(-1px);
}

.dark .step-chip:hover {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    transform: translateY(-1px);
}

/* Active Step Chip */
.step-chip.active-step-chip {
    background-color: #d1fae5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15);
}

.dark .step-chip.active-step-chip {
    background-color: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #34d399 !important;
    box-shadow: 0 1px 6px rgba(16, 185, 129, 0.25);
}

/* Horizontal Quick Presets Bar */
.top-preset-btn {
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.top-preset-btn:hover {
    transform: translateY(-1px);
}

.top-preset-btn.active-preset {
    background-color: #d1fae5 !important;
    border-color: #10b981 !important;
    color: #047857 !important;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15);
}

.dark .top-preset-btn.active-preset {
    background-color: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    color: #34d399 !important;
    box-shadow: 0 1px 6px rgba(16, 185, 129, 0.2);
}

.ht-hint {
    margin: .25rem 0 0;
    font-size: 11px;
    color: #b45309;
}

.dark .ht-hint {
    color: #fbbf24;
}

input.ht-range {
    color: #10b981;
}

