:root {
    --primary: #005faa;
    --primary-container: #0078d4;
    --secondary: #456084;
    --secondary-container: #b8d3fd;
    --background: #f9f9f9;
    --surface: #f9f9f9;
    --surface-dim: #dadada;
    --surface-bright: #f9f9f9;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f3f3f3;
    --surface-container: #eeeeee;
    --surface-container-high: #e8e8e8;
    --surface-container-highest: #e2e2e2;
    --on-surface: #1a1c1c;
    --on-surface-variant: #404752;
    --outline: #717783;
    --outline-variant: #c0c7d4;
    --error: #ba1a1a;
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    background-color: var(--background);
    color: var(--on-surface);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* Material Symbols configuration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* Glassmorphism & Mica Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 95, 170, 0.04);
}

.mica-effect {
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    backdrop-filter: blur(40px) saturate(200%);
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 40px rgba(0, 95, 170, 0.08);
}

.inner-glow {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.ghost-border {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Navigation Accents */
.active-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px 10px 0 0;
}

/* Windows-style Toggle */
.windows-toggle input:checked ~ .toggle-bg {
    background-color: var(--primary);
}
.windows-toggle input:checked ~ .toggle-dot {
    transform: translateX(100%);
    background-color: black;
}
.toggle-bg {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle-dot {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
.pulse-ring {
    box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(0, 120, 212, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 120, 212, 0); }
}

.text-glow {
    text-shadow: 0 0 20px rgba(0, 120, 212, 0.2);
}

/* Tab Management */
.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active.flex {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Conic Gradient for the Timer Ring */
.time-glass-ring {
    background: conic-gradient(from 0deg, var(--primary) 0%, transparent 40%);
}

/* Modal and Overlay styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

/* Toast Notification Styling */
#toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-container-lowest);
    color: var(--on-surface);
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    pointer-events: none;
    text-align: center;
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Input Overrides */
input:focus, select:focus, textarea:focus {
    outline: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--surface-container-highest);
    border-radius: 10px;
}

.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

