/* Study Pomodoro Timer & Focus Soundboard Stylesheet */

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg: #0f172a;
    --bg-panel: #1e293b;
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg-panel: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding-top: 70px;
    min-height: 100vh;
}

.timer-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.tool-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tool-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Two-column Workspace */
.timer-workspace {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .timer-workspace {
        grid-template-columns: 1fr;
    }
}

/* Left Panel: Pomodoro Clock */
.timer-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.timer-modes {
    display: flex;
    gap: 0.5rem;
    background: var(--bg);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.mode-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
}

.mode-btn.active {
    background: var(--primary);
    color: white;
}

/* Circular Timer Display */
.timer-display-container {
    position: relative;
    width: 250px;
    height: 250px;
}

.timer-svg {
    transform: rotate(-90deg);
}

.timer-circle-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}

.timer-circle-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.timer-time {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    user-select: none;
}

/* Clock Controls */
.timer-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-ctrl {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-ctrl.play {
    width: 65px;
    height: 65px;
    background: var(--primary);
    border: none;
    color: white;
    font-size: 1.75rem;
}

.btn-ctrl.play:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Right Panel: Focus Sounds & Tasks */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.panel-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.panel-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

/* Focus Sound Mixer */
.sound-mixer {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sound-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sound-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 140px;
}

.sound-info i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.sound-info.active i {
    color: var(--primary);
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    background: var(--border);
    height: 6px;
    border-radius: 3px;
    outline: none;
}

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

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Simple Tasks Checklist */
.task-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}

.task-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.task-checkbox {
    margin-right: 8px;
    cursor: pointer;
}
