:root[data-theme="light"] {
    --bg-color: #f5f5f5;
    --text-color: #333;
    --container-bg: white;
    --item-bg: #f8f9fa;
    --accent-color: #3498db;
    --secondary-text: #666;
    --progress-bg: #eee;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --button-bg: white;
}

:root[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --container-bg: #2d2d2d;
    --item-bg: #3d3d3d;
    --accent-color: #61dafb;
    --secondary-text: #b0b0b0;
    --progress-bg: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --button-bg: #3d3d3d;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    background: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.target-date {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-text);
}

.countdown {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--item-bg);
    padding: 1.5rem;
    border-radius: 8px;
    min-width: 100px;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-item span {
    display: block;
}

.countdown-item span:first-child {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-text);
}

.progress-container {
    width: 100%;
    height: 8px;
    background: var(--progress-bg);
    border-radius: 4px;
    margin: 2rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

#message {
    font-size: 1.2rem;
    margin-top: 2rem;
    padding: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.info-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-container p {
    margin: 0;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.settings-toggle, .theme-toggle {
    position: fixed;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--button-bg);
    color: var(--text-color);
}

.settings-toggle {
    bottom: 20px;
    right: 20px;
}

.theme-toggle {
    bottom: 20px;
    right: 70px;
}

.settings-toggle:hover, .theme-toggle:hover {
    transform: rotate(30deg);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.settings-panel {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: var(--container-bg);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    z-index: 100;
    text-align: left;
    color: var(--text-color);
}

.settings-panel.visible {
    display: block;
}

.time-picker {
    background: var(--item-bg);
    border: 1px solid var(--secondary-text);
    border-radius: 4px;
    padding: 5px;
    font-family: inherit;
    width: 100px;
    margin-top: 0.5rem;
    color: var(--text-color);
}

@media (max-width: 600px) {
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        padding: 1rem;
        min-width: 80px;
    }
    
    .countdown-item span:first-child {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}