
nav {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- FULLSCREEN SCALING LOGIC --- */

:fullscreen {
    background-color: #f8fafc !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

#timer-app:fullscreen {
    padding: 0 !important;
    margin: 0 !important;
    max-height: 100vh; /* Ensures it never goes taller than the screen */
}

/* Target the specific cards when in Fullscreen */
#sw-app:fullscreen, #timer-app:fullscreen, #cd-app:fullscreen {
    background-color: white !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Enlarge the Timer Digits in Fullscreen */
#sw-app:fullscreen #display, 
#timer-app:fullscreen #display, 
#cd-app:fullscreen #display {
    font-size: 20vh !important; /* Scaled based on screen height */
    margin: 20px 0 !important;
    font-weight: 800;
}

/* Enlarge Milliseconds specifically for the Stopwatch */
#sw-app:fullscreen #millisec {
    font-size: 8vh !important;
    color: var(--primary);
}

/* Enlarge the Start/Stop/Reset Buttons */
#sw-app:fullscreen .btn, 
#timer-app:fullscreen .btn, 
#cd-app:fullscreen .btn {
    font-size: 4vh !important;
    padding: 2vh 6vh !important;
    border-radius: 20px !important;
}

/* Enlarge Input Fields for the Timer */
/* #timer-app:fullscreen .timer-inputs input {
    font-size: 10vh !important;
    width: 15vh !important;
    height: 12vh !important;
} */

/* #timer-app:fullscreen .timer-inputs label {
    font-size: 3vh !important;
} */

#timer-app:fullscreen .input-group input {
    width: 15vh !important;
    height: 15vh !important;
    font-size: 8vh !important;
    border-radius: 25px !important;
}

#timer-app:fullscreen .unit-label {
    font-size: 3vh !important;
    padding: 1vh 3vh !important;
    margin-top: 2vh !important;
}

/* Enlarge Preset Buttons for the Countdown */
#cd-app:fullscreen .btn-preset {
    font-size: 3vh !important;
    padding: 1.5vh 4vh !important;
}

/* Enlarge Headings */
#timer-app:fullscreen h1, 
#cd-app:fullscreen h1 {
    font-size: 6vh !important;
    margin-bottom: 4vh !important;
}

/* Keep the fullscreen icon in the corner even in FS mode */
.fs-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Container for all three input groups */
.input-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Individual group styling */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Styled Input Box */
.input-group input {
    width: 90px;
    height: 70px;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    border: none;
    background: #f1f5f9;
    color: var(--text);
    border-radius: 12px;
    cursor: default;
}

/* The Plus/Minus Buttons */
.adjust-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.adjust-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.adjust-btn:active {
    transform: scale(0.9);
}

/* Style the unit labels */
.unit-label {
    font-size: 0.7rem;
    font-weight: 900;
    color: #94a3b8;
    letter-spacing: 1px;
}

/* Visual feedback on focus */
.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
    transform: translateY(-2px);
}

/* Interesting Label Styling */
.unit-label {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(46, 204, 113, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chrome/Safari/Edge: Remove arrows from number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}