/* Custom mobile styling and iOS safe area padding */
:root {
    --bg-dark: #090d16;
    --card-dark: #111827;
    --card-border: #1f2937;
    --emerald-primary: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.2);
}

body {
    background-color: var(--bg-dark);
    color: #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: env(safe-area-inset-bottom, 80px);
}

/* Glassmorphism cards */
.glass-card {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-header {
    background: rgba(9, 13, 22, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
    background: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: env(safe-area-inset-bottom, 12px);
}

/* Water glass progress animation */
.water-fill {
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom range sliders */
input[type=range] {
    accent-color: #10b981;
}

/* Touch active state */
.btn-press:active {
    transform: scale(0.97);
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #090d16;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 9999px;
}

/* Pulsing badge */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.03); }
}
.pulse-badge {
    animation: pulse-subtle 2.5s infinite ease-in-out;
}
