body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
    margin: 0;
    padding: 0;
    transition: background 0.3s, color 0.3s;
}
.main-layout {
    display: flex;
    flex-direction: row;
    gap: 32px;
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 32px;
}
.controls-panel {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 260px;
}
.timers-panel {
    flex: 2 1 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 320px;
    max-height: calc(100vh - 120px);
    overflow: hidden;
}
.timer-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    flex: 1;
    padding-right: 8px;
}
.timer {
    background: #d4d4d3;
    border-radius: 8px;
    box-shadow: 0 2px 8px #d4d4d3;
    padding: 24px 16px 16px 16px;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 180px;
    position: relative;
    transition: box-shadow 0.3s, background 0.3s;
    box-sizing: border-box;
    overflow: hidden;
}
.timer .remove-timer {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.timer .remove-timer:hover {
    background: #c82333;
}
.timer-active {
    box-shadow: 0 4px 16px #d4d4d3;
    background: #d4d4d3;
    pointer-events: auto;
}
.timer-disabled {
    opacity: 0.7;
    background: #d4d4d3;
    pointer-events: none;
}
.timer .timer-options {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}
.timer .auto-advance-timer {
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #555;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}
.timer .auto-advance-timer input[type="checkbox"] {
    margin: 0;
}
.timer .countdown {
    font-weight: bold;
    font-size: 2em;
    color: #d9534f;
    min-width: 100px;
    text-align: center;
    margin: 24px 0 24px 0;
}
.timer .timer-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 0;
}
.timer input[type="text"] {
    width: 120px;
    margin-right: 8px;
}
.timer input[type="number"] {
    width: 60px;
    margin-right: 8px;
}

.timer-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
button {
    background: #0078d7;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    margin-right: 8px;
    transition: background 0.2s;
}
button:hover {
    background: #005fa3;
}
button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}
button.stop {
    background: #dc3545;
    color: white;
}
button.stop:hover {
    background: #c82333;
}
button.stop:disabled {
    background: #ccc;
    color: #666;
}
.share-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.share-control label {
    font-weight: bold;
    font-size: 0.9em;
}
#shareInput {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-family: inherit;
    font-size: 0.9em;
}
.alarm-sound-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.alarm-sound-control label {
    font-weight: bold;
    font-size: 0.9em;
}
.alarm-sound-control select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-family: inherit;
}
.dark-theme {
    background: #222;
    color: #f4f4f4;
}
.dark-theme .main-layout {
    background: #333;
    color: #f4f4f4;
}
.dark-theme .controls-panel {
    background: #333;
    color: #f4f4f4;
}
.dark-theme .timers-panel {
    background: #333;
    color: #f4f4f4;
}
.dark-theme .timer {
    background: #444;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.dark-theme .timer-active {
    background: #555;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}
.dark-theme .timer .countdown {
    color: #ffb74d;
}
@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    .controls-panel, .timers-panel {
        min-width: 0;
        width: 100%;
    }
    .timer-list {
        gap: 16px;
    }
}
.dark-theme button {
    background: #444;
    color: #f4f4f4;
}
.dark-theme button:hover {
    background: #222;
}
.dark-theme button:disabled {
    background: #333;
    color: #666;
}
.dark-theme button.stop {
    background: #dc3545;
    color: white;
}
.dark-theme button.stop:hover {
    background: #c82333;
}
.dark-theme button.stop:disabled {
    background: #333;
    color: #666;
}
.dark-theme .timer .remove-timer {
    background: #dc3545;
    color: white;
}
.dark-theme .timer .remove-timer:hover {
    background: #c82333;
}
.dark-theme .alarm-sound-control select {
    background: #444;
    color: #f4f4f4;
    border: 1px solid #666;
}
.dark-theme .alarm-sound-control label {
    color: #f4f4f4;
}
.dark-theme .timer .auto-advance-timer {
    color: #f4f4f4;
}
.dark-theme .share-control label {
    color: #f4f4f4;
}
.dark-theme #shareInput {
    background: #444;
    color: #f4f4f4;
    border: 1px solid #666;

/* Thanks Page Styles */
.thanks-content {
    max-width: 600px;
}

.thanks-content h2 {
    color: #333;
    margin-bottom: 16px;
}

.thanks-content p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.credit-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 4px solid #007bff;
}

.credit-item h3 {
    margin: 0 0 8px 0;
    color: #007bff;
}

.credit-item p {
    margin: 4px 0;
}

.freesound-info {
    background: #e7f3ff;
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
    border-left: 4px solid #17a2b8;
}

.freesound-info h3 {
    margin: 0 0 8px 0;
    color: #17a2b8;
}

.navigation {
    margin-top: 24px;
}

.back-link {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.back-link:hover {
    background: #0056b3;
}

/* Dark theme for thanks page */
.dark-theme .thanks-content h2 {
    color: #f4f4f4;
}

.dark-theme .credit-item {
    background: #444;
    border-left-color: #4dabf7;
}

.dark-theme .credit-item h3 {
    color: #4dabf7;
}

.dark-theme .freesound-info {
    background: #444;
    border-left-color: #17a2b8;
}

.dark-theme .freesound-info h3 {
    color: #17a2b8;
}

.acknowledgments-link {
    text-align: center;
    margin-top: 8px;
}

.acknowledgments-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.acknowledgments-link a:hover {
    color: #007bff;
    text-decoration: underline;
}

.dark-theme .acknowledgments-link a {
    color: #aaa;
}

.dark-theme .acknowledgments-link a:hover {
    color: #4dabf7;
}
