/* Light Mode Variables */
:root.light-mode {
    --color-bg-dark: #f0f2f5;       /* Light gray background */
    --color-text-white: #333333;    /* Dark text */
    --color-text-gray: #666666;     /* Medium gray text */
    --gradient-glass: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.1);
}

/* Specific overrides for light mode */
.light-mode .input-field {
    background: rgba(255,255,255,0.8);
    border-color: rgba(0,0,0,0.1);
    color: #333;
}

.light-mode .input-field:focus {
    background: rgba(255,255,255,1);
    border-color: var(--color-primary);
}

.light-mode .glass-panel {
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Theme Toggle Button */
.app-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000; /* Force it on top of everything */
    pointer-events: none; /* Let clicks pass through empty areas */
}

.theme-toggle, .header-select {
    pointer-events: auto; /* Re-enable clicks on controls */
}

.theme-toggle {
    /* Reset position as it is now flex item */
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-white); /* Ensure visible icon */
}

.header-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 15px;
    color: var(--color-text-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none; /* Remove default arrow in some browsers for cleaner look */
    text-align: center;
    min-width: 100px;
}

.header-select option {
    background: #222;
    color: white;
    text-align: left;
}

.light-mode .header-select {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0,0,0,0.1);
    color: #333;
}

.light-mode .header-select option {
    background: white;
    color: #333;
}

.light-mode .theme-toggle {
    background: rgba(0,0,0,0.1);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Countdown Styles */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit .number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    text-shadow: 0 2px 10px rgba(227, 27, 35, 0.2);
}

.time-unit .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-gray);
    margin-top: 5px;
}

/* Select specific styling */
select.input-field option {
    background: #333; /* Dark background for options in dark mode */
    color: white;
}

.light-mode select.input-field option {
    background: white;
    color: #333;
}
