:root {
    --bg-dark: #121214;
    --bg-panel: #1c1c1f;
    --primary: #f59e0b; /* Amber */
    --primary-glow: rgba(245, 158, 11, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-border: rgba(255, 255, 255, 0.05);
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #0f0c29);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ambient glow orb behind app */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.8) translate(-10%, -10%); opacity: 0.1; }
    100% { transform: scale(1.2) translate(10%, 10%); opacity: 0.25; }
}

.app-container {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1050px;
    padding: 40px;
    background: rgba(15, 15, 20, 0.4);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        padding: 20px;
    }
}

/* Timer Section */
.timer-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--card-border);
    padding-right: 40px;
}
@media (max-width: 768px) {
    .timer-section {
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        padding-right: 0;
        padding-bottom: 30px;
    }
}

.logo {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.5rem;
    align-self: flex-start;
    margin-bottom: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}
.progress-ring__circle {
    transition: stroke-dashoffset 1s linear;
    stroke: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.timer-display {
    font-family: var(--font-mono);
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: -3px;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.2);
    z-index: 2;
}

.timer-modes {
    display: flex;
    background: rgba(0,0,0,0.4);
    padding: 6px;
    border-radius: 100px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-mode {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-mode.active {
    background: var(--bg-panel);
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.timer-controls {
    display: flex;
    gap: 15px;
}

.btn-control {
    border: none;
    border-radius: 14px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-control.main {
    background: var(--primary);
    color: #000;
    padding: 15px 40px;
    box-shadow: 0 10px 20px var(--primary-glow);
}
.btn-control.main:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px var(--primary-glow);
}

.btn-control.reset {
    background: var(--bg-panel);
    color: var(--text-main);
    padding: 15px 20px;
    border: 1px solid var(--card-border);
}
.btn-control.reset:hover {
    background: rgba(255,255,255,0.1);
}

/* Tasks Section */
.tasks-container {
    width: 100%;
    margin-top: 40px;
    background: var(--bg-panel);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
}
.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.tasks-header h3 {
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
}
#task-counter {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.task-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
#task-input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-main);
    font-family: var(--font-sans);
    outline: none;
    transition: 0.2s;
}
#task-input:focus {
    border-color: var(--primary);
}
#btn-add-task {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 8px;
    width: 40px;
    cursor: pointer;
    font-size: 1rem;
}

.task-list {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}
.task-list::-webkit-scrollbar { width: 4px; }
.task-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid transparent;
}
.task-item.completed {
    opacity: 0.5;
}
.task-item.completed span {
    text-decoration: line-through;
}
.task-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}
.task-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
}
.task-text {
    flex: 1;
    font-size: 0.95rem;
}
.btn-delete-task {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
}
.btn-delete-task:hover {
    color: var(--text-main);
}

/* Ambient Section */
.ambient-section {
    flex: 1;
    padding-left: 20px;
}
@media (max-width: 768px) {
    .ambient-section { padding-left: 0; }
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.mixer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mixer-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.mixer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.mixer-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.1);
}

.mixer-card:hover::before {
    opacity: 0.3;
}

.mixer-icon, .mixer-card h3, .vol-slider {
    z-index: 1;
}

.mixer-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.05);
}

.mixer-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.vol-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(0,0,0,0.5);
    border-radius: 3px;
    outline: none;
}
.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-main);
    cursor: pointer;
    transition: 0.2s;
}
.vol-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary);
}
