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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.current-task-section {
    margin-bottom: 2rem;
}

.task-card {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    margin-top: 1rem;
    color: var(--text-color);
}

.task-input-section {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.task-input {
    flex: 1;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.task-input::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

.btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-hover);
}

.playlist {
    background: var(--section-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    color: var(--text-color);
}

.playlist.hidden {
    display: none;
    margin-bottom: 2rem;
}

.task-list {
    margin-top: 1rem;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: var(--bg-color);
    margin-bottom: 0.5rem;
    border-radius: 4px;
    cursor: move;
    color: var(--text-color);
}

.playlist-item:hover {
    background: var(--primary-hover);
    color: white;
}

.playlist-item .delete-task {
    margin-left: auto;
    background: #ff4444;
    padding: 0.4rem 0.8rem;
}

.playlist-item .delete-task:hover {
    background: #cc0000;
}

.completed-tasks-section {
    background: var(--section-bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    margin-bottom: 2rem;
    color: var(--text-color);
}

.completed-task-item {
    padding: 1rem;
    border-bottom: 1px solid var(--completed-border);
    background-color: var(--section-bg);
    margin-bottom: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--completed-border);
}

.completed-task-item:last-child {
    border-bottom: none;
}

.timer {
    margin: 1rem 0;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

.no-task-message {
    text-align: center;
    color: var(--text-color);
    font-style: italic;
    opacity: 0.7;
}

.task-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--notification-bg);
    color: white;
    padding: 1rem;
    border-radius: 4px;
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.noscript-message {
    background-color: #ff4444;
    color: white;
    padding: 1rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

:root {
    --primary-color: #4CAF50;
    --primary-hover: #45a049;
    --bg-color: #f4f4f4;
    --text-color: #333;
    --section-bg: white;
    --input-border: #ddd;
    --task-hover: #f0f0f0;
    --completed-border: #eee;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --notification-bg: #4CAF50;
}

.pink-theme {
    --primary-color: #df998b;
    --primary-hover: #dd8a7a;
    --bg-color: #f1cfc8;
    --text-color: #4a4a4a;
    --section-bg: #fabeb2;
    --input-border: #f4d3d3;
    --task-hover: #ffeaea;
    --completed-border: #8d6962;
    --shadow-color: rgba(223, 153, 139, 0.2);
    --notification-bg: #df998b;
}

.blue-theme {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --bg-color: #f0f8ff;
    --text-color: #2c3e50;
    --section-bg: #f8fbff;
    --input-border: #bde0ff;
    --task-hover: #e6f3ff;
    --completed-border: #e1f0ff;
    --shadow-color: rgba(52, 152, 219, 0.2);
    --notification-bg: #3498db;
}

.dark-theme {
    --primary-color: #6c5ce7;
    --primary-hover: #5b4bc4;
    --bg-color: #2d3436;
    --text-color: #f5f6fa;
    --section-bg: #34495e;
    --input-border: #576574;
    --task-hover: #3d3d3d;
    --completed-border: #2c3e50;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --notification-bg: #6c5ce7;
}

.theme-toggle {
    margin: 1rem 0;
    width: 100%;
}

.themes-section {
    background: var(--section-bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    margin-bottom: 2rem;
    color: var(--text-color);
}

.theme-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.theme-btn {
    flex: 1;
    min-width: 120px;
}

.theme-btn.active {
    outline: 3px solid var(--primary-color);
    background-color: var(--primary-hover);
}

.playlist-controls {
    margin-bottom: 2rem;
}