body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: #121212;
    color: #e0e0e0;
    padding: 20px;
    box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #2d2d2d;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.nav-links a {
    color: #00aaff;
    margin-right: 20px;
    text-decoration: none;
    font-weight: 500;
}

#theme-toggle-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: #00aaff;
    color: #ffffff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

#theme-toggle-btn:hover {
    background: #0088cc;
}

.timer-container {
    text-align: center;
    background: #1e1e1e;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 550px;
    border: 1px solid #333;
}

h1 {
    margin-bottom: 15px;
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
}

#current-timer-title {
    margin-bottom: 30px;
    font-size: 1.8em;
    color: #00aaff;
    font-weight: 600;
}

.input-container {
    margin-bottom: 30px;
}

.inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#title-input,
#time-input,
#time-unit {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #555;
    font-size: 1.1em;
    background: #2c2c2c;
    color: #e0e0e0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#title-input:focus,
#time-input:focus,
#time-unit:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#start-btn,
#pause-btn,
#stop-btn {
    padding: 14px 30px;
    border-radius: 10px;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#start-btn {
    background: #007bff;
    color: #ffffff;
}

#start-btn:hover {
    background: #0088cc;
    transform: translateY(-2px);
}

#pause-btn {
    background: #ffc107;
    color: #212529;
}

#pause-btn:hover {
    background: #cc8800;
    transform: translateY(-2px);
}

#stop-btn {
    background: #dc3545;
    color: #ffffff;
}

#stop-btn:hover {
    background: #cc2222;
    transform: translateY(-2px);
}

#timer-display {
    font-size: 5em;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 25px 0;
    color: #ffffff;
}

.saved-timers-container {
    margin-top: 40px;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 550px;
    text-align: left;
    border: 1px solid #333;
}

.saved-timers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#clear-btn,
#mute-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    color: #ffffff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#clear-btn {
    background: #dc3545;
}

#mute-btn {
    background: #6c757d;
    margin-right: 10px;
}

#clear-btn:hover {
    background: #cc2222;
    transform: translateY(-2px);
}

#saved-timers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#saved-timers-list li {
    background: #2c2c2c;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 1.1em;
    border-left: 4px solid #00aaff;
}

.main-footer {
    text-align: center;
    padding: 40px 20px;
    background: #2d2d2d;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.main-footer a {
    color: #00aaff;
    margin: 0 10px;
    text-decoration: none;
}

.main-footer p {
    margin-bottom: 15px;
    color: #888;
}

/* Light Theme */
body.light-mode {
    background: #f5f5f5;
    color: #333333;
}

body.light-mode .timer-container,
body.light-mode .saved-timers-container,
body.light-mode .main-nav,
body.light-mode .main-footer {
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .main-nav,
body.light-mode .main-footer {
    background: #e9ecef;
}

body.light-mode h1,
body.light-mode #timer-display {
    color: #333333;
}

body.light-mode #title-input,
body.light-mode #time-input,
body.light-mode #time-unit {
    background: #f0f0f0;
    color: #333333;
    border: 1px solid #ccc;
}

body.light-mode #saved-timers-list li {
    background: #f0f0f0;
    border-left: 4px solid #007bff;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding: 10px;
    }

    .timer-container,
    .saved-timers-container {
        width: 100%;
        padding: 20px;
    }

    .inputs {
        flex-direction: column;
        align-items: center;
    }

    #title-input,
    #time-input,
    #time-unit {
        width: 90%;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    #start-btn,
    #pause-btn,
    #stop-btn {
        width: 95%;
    }
}
