/*
Copyright © 2025 Kottoman. All rights reserved.
This code is proprietary and confidential. Unauthorized copying, distribution, or use is strictly prohibited.
*/

:root {
    --bg-color: #212121;
    --surface-color: #2E2E2E;
    --primary-text-color: #E0E0E0;
    --secondary-text-color: #BDBDBD;
    --accent-color: #E57373; /* A soft terracotta */
    --shadow-color: rgba(0, 0, 0, 0.2);
}

/* Theme Color Variables */
:root[data-theme="pink"] {
    --accent-color: #E57373;
}

:root[data-theme="turquoise"] {
    --accent-color: #4DD0E1;
}

:root[data-theme="green"] {
    --accent-color: #66BB6A;
}

:root[data-theme="purple"] {
    --accent-color: #9C66BB;
}

:root[data-theme="orange"] {
    --accent-color: #FF9800;
}

:root[data-theme="grey"] {
    --accent-color: #9E9E9E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack header, main, footer vertically */
    min-height: 100vh;
    overflow-x: hidden;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1595898103322-2f40f8b09b9f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1770&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

header {
    background-color: rgba(0,0,0,0.3); /* Semi-transparent dark background */
    color: var(--accent-color);
    padding: 2px 25px; /* Adjusted padding to maintain header height */
    text-align: left; /* Aligned title to the left */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
    box-sizing: border-box;
    display: flex; /* Use flexbox for vertical alignment */
    align-items: center; /* Center title vertically */
    justify-content: space-between; /* Space between title and homepage link */
}

header h1 {
    margin: 0;
    font-size: 1.6rem; /* Increased font size */
    font-weight: 600;
}

.homepage-link {
    color: var(--secondary-text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.homepage-link:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.main-content-panel {
    flex-grow: 1; /* Allows this panel to take up available space */
    /* width: 100%; Removed to allow margin to correctly size panel */
    /* max-width: 1600px; Removed for full-screen layout */
    margin: 20px; /* Adjusted for full-screen layout, keeps top/bottom margin */
    padding: 25px;
    background-color: rgba(40, 40, 40, 0.5); /* Darker, semi-transparent panel background */
    border-radius: 20px; /* Rounded corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    display: flex; /* To ensure app-container inside behaves well */
    flex-direction: column; /* Stack mode-switcher and mode-containers */
}

footer {
    background-color: rgba(0,0,0,0.2); /* Semi-transparent dark background */
    color: var(--secondary-text-color);
    text-align: center;
    padding: 15px 30px;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto; /* Pushes footer to the bottom if content is short */
}

.app-container {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items like mode-switcher */
    flex-grow: 1; /* Allows the app-container to fill the vertical space of the panel */
}

.hidden {
    display: none !important;
}

.mode-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 6px;
}

.mode-btn {
    flex-grow: 1;
    padding: 12px 20px;
    border: none;
    background: none;
    color: var(--secondary-text-color);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    border-radius: 12px;
    transition: background-color 0.3s, color 0.3s;
}

.mode-btn.active {
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(229, 115, 115, 0.2);
}

.timer-container {
    margin-bottom: 25px;
}

.timer-display {
    font-size: 4.5rem; /* Adjusted font size */
    font-weight: 700;
    color: var(--primary-text-color); /* Softer color, aligned with primary text */
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.3); /* Subtle shadow with accent color */
    margin: 20px 0; /* Standardized margin */
    padding: 10px 0; /* Standardized padding */
    letter-spacing: 2px; /* Standardized letter-spacing */
    font-family: 'Consolas', 'Courier New', monospace; /* Monospaced font for stable width */
    text-align: center; /* Ensure horizontal centering */
}

.controls, .pomodoro-phases {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Consistent spacing between buttons */
    margin-bottom: 20px; /* Space between control rows / sections */
}

.pomodoro-phases {
    margin-bottom: 25px; /* Slightly more space before cycle indicator */
}

.controls button, .btn {
    padding: 14px 30px;
    margin: 0; /* Remove individual button margins, rely on flex gap for horizontal spacing */
    border: 1px solid transparent;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-text-color);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.controls button:hover, .btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 115, 115, 0.25);
}

.controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.laps-container {
    margin-top: 25px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 15px;
    border-radius: 12px;
    background: rgba(0,0,0,0.1);
}

#lapsList {
    list-style: none;
    text-align: left;
}

#lapsList li {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.1rem;
}

#lapsList li:last-child {
    border-bottom: none;
}

#countdownSetup {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#countdownSetup input {
    width: 70px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--primary-text-color);
    font-size: 1.2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.presets {
    margin-bottom: 25px;
}

.world-clock-setup {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    align-items: center;
}

.searchable-dropdown {
    position: relative;
    width: 300px;
}

#timezoneSearchInput {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--primary-text-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

#timezoneSearchInput::placeholder {
    color: var(--secondary-text-color);
}

.timezone-results-container {
    display: none;
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 16px var(--shadow-color);
}

.timezone-results-container.visible {
    display: block;
}

.timezone-result-item {
    padding: 12px 15px;
    color: var(--primary-text-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.timezone-result-item:hover {
    background-color: var(--accent-color);
}

.world-clock-setup button {
    padding: 12px 20px;
}

#clocksGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    padding: 15px;
    width: 100%;
}

.clock-card {
    background: var(--surface-color);
    padding: 25px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    flex-grow: 1; /* Allow card to grow */
    flex-shrink: 1; /* Allow card to shrink */
    flex-basis: 300px; /* Ideal starting width */
    min-width: 280px; /* Minimum width before wrapping/shrinking further */
    /* max-width is removed to allow fewer items to fill the row */
    box-sizing: border-box;
}

.clock-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.clock-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-text-color);
}

.clock-card .time {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 5px 0;
}

.clock-card .date {
    font-size: 1rem;
}

.remove-clock-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.clock-card:hover .remove-clock-btn {
    opacity: 1;
    transform: scale(1);
}

.remove-clock-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* Pomodoro Section Specific Styles */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

/* Epic Settings Button Animation */
@keyframes settingsEpicSpin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1.2); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes settingsGlow {
    0%, 100% { 
        box-shadow: 
            0 0 10px var(--accent-color),
            0 0 20px var(--accent-color),
            0 0 30px var(--accent-color);
    }
    50% { 
        box-shadow: 
            0 0 20px var(--accent-color),
            0 0 40px var(--accent-color),
            0 0 60px var(--accent-color);
    }
}

@keyframes settingsPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.settings-btn {
    background: none;
    border: none;
    color: var(--secondary-text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: visible;
}

.settings-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    animation: 
        settingsEpicSpin 2s ease-in-out infinite,
        settingsGlow 1.5s ease-in-out infinite,
        settingsPulse 1s ease-in-out infinite;
    transform: scale(1.3);
    z-index: 10;
    border: 2px solid var(--accent-color);
}

.settings-btn:hover::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), transparent, var(--accent-color));
    animation: settingsEpicSpin 1s linear infinite reverse;
    z-index: -1;
}

.pomodoro-cycle-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
}

.cycle-dot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--surface-color); /* Default/pending state */
    color: var(--secondary-text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--secondary-text-color);
    transition: all 0.3s ease;
}

.cycle-dot.completed {
    background-color: var(--accent-color); /* Completed state */
    color: var(--bg-color);
    border-color: var(--accent-color);
    font-size: 1.5rem; /* To show checkmark nicely */
}

.cycle-dot.active {
    background-color: var(--primary-text-color); /* Active work/break state */
    color: var(--bg-color);
    border-color: var(--primary-text-color);
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--primary-text-color);
}

/* Settings Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background-color: var(--bg-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    overflow: hidden;
}

.modal-sidebar {
    width: 200px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    padding: 15px 25px;
    color: var(--secondary-text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-text-color);
}

.sidebar-item.active {
    color: var(--primary-text-color);
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-color);
}

.modal-main {
    flex-grow: 1;
    padding: 30px;
    position: relative;
    overflow-y: auto;
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--secondary-text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.close-modal-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.settings-section {
    display: block;
}

.settings-section.hidden {
    display: none;
}

.settings-section h2 {
    margin-bottom: 25px;
    color: var(--primary-text-color);
    font-size: 1.5rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--secondary-text-color);
    font-size: 1rem;
}

.form-group input[type="number"] {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--primary-text-color);
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    transition: all 0.3s ease;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(229, 115, 115, 0.2);
}

/* Sound Settings Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px var(--accent-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.volume-slider {
    -webkit-appearance: none;
    width: 100%;
    max-width: 300px;
    height: 8px;
    border-radius: 5px;  
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin-right: 15px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%; 
    background: var(--accent-color);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

#volumeValue {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    min-width: 40px;
    display: inline-block;
}

.sound-options {
    margin-top: 20px;
}

.sound-options h3 {
    font-size: 1.1rem;
    color: var(--primary-text-color);
    margin-bottom: 15px;
}

.sound-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--primary-text-color);
    font-size: 1rem;
    width: 150px;
    margin-right: 10px;
}

.sound-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.test-sound-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 15px;
    color: var(--secondary-text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-sound-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-text-color);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    gap: 15px;
}

.primary-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background-color: #d65c5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 115, 115, 0.3);
}

.pomodoro-phases {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 20px;
}

.phase-btn {
    padding: 10px 18px;
    font-size: 0.95rem;
    background-color: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s, border-color 0.3s;
}

.phase-btn.active-phase {
    background-color: var(--accent-color);
    color: var(--primary-text-color);
    border-color: var(--accent-color);
    font-weight: 600;
}

.phase-btn:not(.active-phase):hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Work Section Specific Styles */
.work-section-flex {
    display: flex;
    gap: 30px; /* Space between panels */
    align-items: flex-start; /* Align panels to the top */
}

.work-panel {
    padding: 20px;
    border-radius: 16px;
    background: rgba(0,0,0,0.1);
}

.work-panel-left {
    flex: 1; /* Equal width */
}

.work-panel-right {
    flex: 1; /* Equal width */
    min-height: 70vh; /* Ensure it has some height */
}

.work-panel .input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column; /* Stack label and input */
    align-items: flex-start; /* Align items to the left */
    text-align: left;
}

.create-project-group {
    flex-direction: row !important; /* Override column direction for this specific group */
    align-items: center;
    gap: 10px;
}

.create-project-group input {
    flex-grow: 1; /* Allow input to take up available space */
}

#projectManagementContainer .input-group {
    flex-direction: row; /* Align input and button side-by-side */
    align-items: center; /* Vertically align them */
    gap: 10px; /* Add space between input and button */
}

#projectManagementContainer .input-group input {
    flex-grow: 1; /* Allow input to take available space */
}

#projectManagementContainer .input-group label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

#projectManagementContainer .input-group input {
    width: 100%;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--primary-text-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

#newProjectNameInput, #projectSelect {
    width: 100%;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--primary-text-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.project-selector-with-delete {
    display: flex;
    gap: 10px;
    align-items: center;
}

.project-selector-with-delete select {
    flex: 1;
}

.delete-project-btn {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    color: #dc3545 !important;
    padding: 12px !important;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-project-btn:hover {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
    transform: translateY(-2px);
}

#projectSummaryContainer {
    padding: 15px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 20px;
}

#projectSummaryContainer p {
    margin-bottom: 8px;
    font-size: 1rem;
}

#projectSummaryContainer span {
    font-weight: 600;
    color: var(--accent-color);
}

#sessionsLogContainer {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
}

.session-item {
    background-color: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-color);
}

.session-item p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
}

.session-item .session-date {
    font-weight: bold;
}

.session-item .session-details {
    font-size: 0.85rem;
    color: var(--secondary-text-color);
}

.no-sessions-message {
    text-align: center;
    color: var(--secondary-text-color);
    padding: 20px;
}

#saveSessionBtn.hidden,
#logManualSessionBtn.hidden,
#projectSummaryContainer.hidden {
    display: none !important;
}
.work-setup {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.input-group label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.work-setup input,
.work-setup select {
    width: 150px;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--primary-text-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.earnings-display {
    margin-top: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(0,0,0,0.15);
    border-radius: 12px;
}

.earnings-display h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-text-color);
    margin-bottom: 8px;
}

#workEarningsDisplay, #manualEarningsDisplay {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent-color);
    text-align: center;
}

.section-title {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    width: 100%;
}

.section-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

#manualCalcContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#manualCalcContainer .inputs-container {
    display: flex;
    gap: 15px;
    width: 100%;
}

#manualCalcContainer input {
    width: 100%;
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--primary-text-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

#manualCalcContainer .btn {
    width: 100%;
}

.manual-earnings {
    margin-top: 10px;
}

.timer-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    margin: 0 auto; /* Center the container horizontally */
}

#countdownSetup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.time-adjusters {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.time-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.time-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--secondary-text-color);
    text-transform: uppercase;
}

.time-adjuster {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 8px 15px;
}

.adj-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-text-color);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adj-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.adj-btn:active {
    transform: scale(0.95);
}

.time-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-text-color);
    min-width: 40px;
    text-align: center;
    font-family: 'Consolas', 'Courier New', monospace;
}

.clickable-time {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 4px 8px;
    position: relative;
}

.clickable-time::after {
    content: '⊙';
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.7rem;
    color: var(--accent-color);
    opacity: 0.6;
}

.clickable-time:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.clickable-time:hover::after {
    opacity: 0;
}

/* Time Dial Picker Styles */
.dial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dial-overlay.visible {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.dial-container {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.dial-overlay.visible .dial-container {
    transform: scale(1);
}

.dial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#dialTitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-text-color);
}

.close-dial-btn {
    background: none;
    border: none;
    color: var(--secondary-text-color);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-dial-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-text-color);
}

.dial-wheel {
    position: relative;
    width: 360px;
    height: 360px;
    margin: 0 auto;
}

.dial-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.dial-numbers {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.dial-number {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: translate(-50%, -50%);
}

.dial-number:hover {
    background: var(--accent-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dial-number.selected {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--accent-color);
}

.quick-timers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.quick-timers-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--secondary-text-color);
    text-transform: uppercase;
    margin: 0;
}

.quick-timer-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-timer-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--primary-text-color);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 65px;
}

.quick-timer-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.inputs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.presets-container {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ecf0f1;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: background-color 0.3s;
}

.preset-btn:hover {
    background: #3498db;
}

#countdownSetup input {
    width: 70px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ecf0f1;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    text-align: center;
    border-radius: 10px;
    padding: 5px;
}

#countdownSetup input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.timer-display {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--primary-text-color);
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
    margin: 20px 0;
    padding: 10px 0;
    letter-spacing: 2px;
    font-family: 'Consolas', 'Courier New', monospace;
}

.timer-controls .btn {
    background-color: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif;
    margin: 0.5rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    outline: none;
}

.timer-controls .btn:hover {
    background-color: #3498db;
    color: #fff;
    box-shadow: 0 0 15px #3498db;
}

.timer-controls .btn:disabled {
    color: #555;
    border-color: #555;
    cursor: not-allowed;
}

.timer-controls .btn:disabled:hover {
    background-color: transparent;
    box-shadow: none;
}

.laps-container {
    margin-top: 2rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 15px; /* for scrollbar */
}

#lapsList {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#lapsList li {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    margin-bottom: 8px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    animation: slideIn 0.3s ease;
    gap: 20px;
}

/* Lap label styling */
.lap-label {
    color: var(--secondary-text-color) !important;
    font-weight: 500 !important;
    min-width: 80px !important;
    text-align: left !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Lap time styling */
.lap-time {
    color: var(--primary-text-color) !important;
    font-family: 'Consolas', 'Courier New', monospace !important;
    font-weight: 600 !important;
    text-align: right !important;
    flex-shrink: 0 !important;
    min-width: 100px !important;
    display: inline-block !important;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Section Header for Title + Settings Button */
.section-header {
    display: flex;
    justify-content: space-between; /* Puts title left, button right */
    align-items: center;
    width: 100%; /* Ensure it takes full width within its container */
    margin-bottom: 15px; /* Space below header */
}

.section-title {
    margin: 0; /* Remove default h2 margin */
}

.settings-btn {
    background: none;
    border: none;
    color: var(--secondary-text-color);
    font-size: 1.8rem; /* Adjust size as needed */
    cursor: pointer;
    padding: 5px;
    line-height: 1; /* Ensure icon aligns well */
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.settings-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-text-color);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.modal-dialog {
    background-color: var(--surface-color); /* Similar to panel backgrounds */
    padding: 30px;
    border-radius: 20px; /* Consistent rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 550px; /* Max width similar to reference */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-dialog {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary-text-color);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--secondary-text-color);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--primary-text-color);
}

.modal-body {
    margin-bottom: 25px;
    /* Styles for form elements will go here later */
}

.modal-footer {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 15px;
}

/* Specific button styling for modal footer if needed, using existing .btn classes for now */
.modal-footer .btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary-text-color); /* Ensure text is visible */
}
.modal-footer .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}
.modal-footer .btn-primary { /* Assuming .btn-primary will be like an accent save button */
    background-color: var(--accent-color);
    color: #fff;
}
.modal-footer .btn-primary:hover {
    background-color: #c62828; /* Darker shade of the accent color */
}

/* ===== MOBILE RESPONSIVENESS ===== */

/* Mobile and Tablet Styles */
@media screen and (max-width: 768px) {
    /* Header adjustments - make more compact */
    header {
        padding: 10px 15px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    /* Main content panel adjustments - reduce margins */
    .main-content-panel {
        margin: 5px;
        padding: 15px 10px;
        border-radius: 12px;
    }
    
    /* Mode switcher - more compact and better scrolling */
    .mode-switcher {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        justify-content: flex-start;
        margin-bottom: 20px;
        padding: 3px;
        white-space: nowrap;
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 12px;
    }
    
    .mode-switcher::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .mode-btn {
        flex-shrink: 0;
        padding: 8px 10px;
        font-size: 0.8rem;
        min-width: 60px;
        white-space: nowrap;
        border-radius: 9px;
        font-weight: 500;
    }
    
    /* Timer display - smaller and more compact */
    .timer-display {
        font-size: 2.8rem !important;
        margin: 10px 0 !important;
        letter-spacing: 1px !important;
        padding: 5px 0 !important;
    }
    
    /* Controls - more compact spacing */
    .controls {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .controls button, .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-height: 40px;
        min-width: 80px;
        border-radius: 10px;
    }
    
    /* Pomodoro phases - more compact */
    .pomodoro-phases {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .phase-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        min-height: 40px;
        min-width: 80px;
        border-radius: 10px;
    }
    
    /* Section headers more compact */
    .section-header {
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    /* Countdown setup adjustments */
    #countdownSetup {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .time-adjusters {
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .time-section {
        gap: 10px;
    }
    
    .time-adjuster {
        gap: 10px;
        padding: 6px 12px;
    }
    
    .adj-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .time-value {
        font-size: 1.6rem;
        min-width: 35px;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    .quick-timer-buttons {
        gap: 10px;
    }
    
    .quick-timer-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 55px;
    }

    /* Mobile adjustments for dial */
    .dial-container {
        margin: 20px;
        padding: 15px;
        width: calc(100vw - 40px);
        max-width: 350px;
    }
    
    .dial-wheel {
        width: 280px;
        height: 280px;
    }
    
    .dial-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .clickable-time::after {
        font-size: 0.6rem;
        top: -1px;
        right: -1px;
    }
    
    .presets {
        flex-wrap: wrap;
        gap: 6px;
        margin: 10px 0;
        justify-content: center;
    }
    
    .preset-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
        min-height: 40px;
        min-width: 70px;
    }
    
    /* Work section - stack panels vertically with less spacing */
    .work-section-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .work-panel-left,
    .work-panel-right {
        flex: none;
        width: 100%;
        margin-bottom: 0;
    }
    
    .work-setup {
        margin-bottom: 15px;
    }
    
    .input-group {
        margin-bottom: 10px;
    }
    
    .earnings-display {
        margin: 10px 0;
        padding: 10px;
    }
    
    .earnings-display h3 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    #workEarningsDisplay, #manualEarningsDisplay {
        font-size: 1.4rem;
        text-align: center;
    }
    
    /* Project management adjustments */
    .create-project-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .create-project-group input {
        margin-bottom: 8px;
        width: 100%;
    }
    
    .project-selector-with-delete {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    .project-selector-with-delete select {
        flex: 1;
        margin-bottom: 0;
    }
    
    /* World clock adjustments */
    #clocksGrid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .clock-card {
        padding: 12px;
    }
    
    /* Modal adjustments */
    .modal-dialog {
        margin: 15px;
        max-height: calc(100vh - 30px);
        width: calc(100vw - 30px);
        max-width: none;
        padding: 15px;
    }
    
    /* Settings button adjustments */
    .settings-btn {
        font-size: 1.4rem;
        padding: 6px;
    }
    
    /* Cycle indicator adjustments */
    .pomodoro-cycle-indicator {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .cycle-dot {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    /* Reduce overall vertical spacing */
    .mode-container {
        padding-top: 0;
    }
    
    /* Center timer sections horizontally only */
    #pomodoroContainer,
    #countdownContainer,
    #stopwatchContainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    /* Ensure all content within timer sections is centered */
    #pomodoroContainer > *,
    #countdownContainer > *,
    #stopwatchContainer > * {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    /* Even more compact for small screens */
    .main-content-panel {
        margin: 3px;
        padding: 12px 8px;
    }
    
    .timer-display {
        font-size: 2.4rem !important;
        margin: 8px 0 !important;
    }
    
    .mode-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
        min-width: 50px;
    }
    
    .controls button, .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 70px;
        min-height: 38px;
    }
    
    .phase-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        min-width: 70px;
        min-height: 38px;
    }
    
    #countdownSetup input {
        width: 60px;
        padding: 6px;
        font-size: 0.85rem;
    }
    
    /* Extra small dial adjustments */
    .dial-wheel {
        width: 240px;
        height: 240px;
    }
    
    .dial-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .dial-center {
        width: 16px;
        height: 16px;
    }
    
    .time-adjusters {
        gap: 20px;
    }
    
    .time-adjuster {
        gap: 8px;
        padding: 4px 10px;
    }
    
    .adj-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .time-value {
        font-size: 1.4rem;
        min-width: 30px;
    }
    
    .earnings-display {
        padding: 8px;
    }
    
    #workEarningsDisplay, #manualEarningsDisplay {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .clock-card {
        padding: 10px;
    }
    
    .cycle-dot {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    header {
        padding: 8px 12px;
    }
    
    header h1 {
        font-size: 1.1rem;
    }
    
    /* Make preset buttons more compact */
    .preset-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        min-width: 60px;
        min-height: 36px;
    }
    
    /* Enhanced spacing for very small screens */
    #pomodoroContainer,
    #countdownContainer,
    #stopwatchContainer {
        padding-top: 15px;
    }
}

/* Landscape orientation adjustments for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .timer-display {
        font-size: 2.2rem !important;
        margin: 5px 0 !important;
    }
    
    .main-content-panel {
        margin: 3px;
        padding: 10px;
    }
    
    .mode-switcher {
        margin-bottom: 15px;
    }
    
    .controls {
        margin-bottom: 8px;
    }
    
    .pomodoro-phases {
        margin-bottom: 10px;
    }
    
    header {
        padding: 6px 12px;
    }
    
    .section-header {
        margin-bottom: 8px;
    }
    
    /* Landscape spacing adjustments */
    #pomodoroContainer,
    #countdownContainer,
    #stopwatchContainer {
        padding-top: 10px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .controls button, .btn {
        min-height: 44px; /* Larger touch target */
        min-width: 44px;
    }
    
    .mode-btn {
        min-height: 40px;
    }
    
    .phase-btn {
        min-height: 44px;
    }
    
    .preset-btn {
        min-height: 44px;
    }
}

/* Theme Options Styling */
.theme-options {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 80px;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.theme-option.active {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.pink-theme {
    background-color: #E57373;
    background-image: linear-gradient(135deg, #E57373 0%, #F48FB1 100%);
}

.turquoise-theme {
    background-color: #4DD0E1;
    background-image: linear-gradient(135deg, #4DD0E1 0%, #26C6DA 100%);
}

.green-theme {
    background-color: #66BB6A;
    background-image: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
}

.purple-theme {
    background-color: #9C66BB;
    background-image: linear-gradient(135deg, #9C66BB 0%, #8E24AA 100%);
}

.orange-theme {
    background-color: #FF9800;
    background-image: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.grey-theme {
    background: linear-gradient(135deg, #9E9E9E, #757575);
}

/* Mode containers - ensure proper centering for all screen sizes */
#pomodoroContainer,
#countdownContainer,
#stopwatchContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Ensure all content within timer sections is centered */
#pomodoroContainer > *,
#countdownContainer > *,
#stopwatchContainer > * {
    margin-left: auto;
    margin-right: auto;
}

/* Epic Notification System */
.epic-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    max-width: 90vw;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
                0 0 50px rgba(var(--accent-color-rgb), 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.epic-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.epic-notification-content {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    gap: 20px;
    position: relative;
}

.epic-notification-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), rgba(var(--accent-color-rgb), 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(var(--accent-color-rgb), 0.4);
    animation: notificationPulse 2s infinite ease-in-out;
}

.notification-emoji {
    font-size: 28px;
    animation: notificationBounce 1s infinite alternate;
}

.epic-notification-text {
    flex: 1;
    min-width: 0;
}

.epic-notification-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.epic-notification-message {
    font-size: 1rem;
    color: var(--secondary-text-color);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.epic-notification-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.epic-notification-duration {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    background: rgba(var(--accent-color-rgb), 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(var(--accent-color-rgb), 0.2);
}

.epic-notification-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-text-color);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epic-notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-text-color);
    transform: scale(1.1);
}

.epic-notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), rgba(var(--accent-color-rgb), 0.6));
    border-radius: 0 0 20px 20px;
    animation: notificationProgress 8s linear forwards;
}

/* Notification type variations */
.epic-notification.countdown .epic-notification-icon {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

.epic-notification.pomodoro .epic-notification-icon {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.epic-notification.break .epic-notification-icon {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.epic-notification.work .epic-notification-icon {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

/* Confetti effect */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: confettiFall linear forwards;
}

/* Notification animations */
@keyframes notificationPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(var(--accent-color-rgb), 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(var(--accent-color-rgb), 0.6);
    }
}

@keyframes notificationBounce {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-5px); }
}

@keyframes notificationProgress {
    0% { width: 100%; }
    100% { width: 0%; }
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Mobile responsive notifications */
@media screen and (max-width: 768px) {
    .epic-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        transform: translateY(-200px);
    }
    
    .epic-notification.show {
        transform: translateY(0);
    }
    
    .epic-notification-content {
        padding: 20px;
        gap: 15px;
    }
    
    .epic-notification-icon {
        width: 50px;
        height: 50px;
    }
    
    .notification-emoji {
        font-size: 24px;
    }
    
    .epic-notification-title {
        font-size: 1.2rem;
    }
    
    .epic-notification-message {
        font-size: 0.9rem;
    }
}
