.theme-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.theme-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theme-button.active {
    transform: scale(1.2);
}

/* Focus Theme - Deep blues and purples for concentration */
[data-theme="focus"] {
    --primary: #4338ca;
    --danger: #dc2626;
    --success: #059669;
    --background: #1e1b4b;
    --surface: #312e81;
    --text: #e0e7ff;
}

/* Nature Theme - Earthy greens for calm */
[data-theme="nature"] {
    --primary: #166534;
    --danger: #b91c1c;
    --success: #15803d;
    --background: #f0fdf4;
    --surface: #ffffff;
    --text: #14532d;
}

/* Modern Theme - Monochrome with accent */
[data-theme="modern"] {
    --primary: #0f172a;
    --danger: #ef4444;
    --success: #10b981;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #334155;
}

/* Sunset Theme - Warm oranges and reds */
[data-theme="sunset"] {
    --primary: #c2410c;
    --danger: #b91c1c;
    --success: #b45309;
    --background: #fff7ed;
    --surface: #ffffff;
    --text: #7c2d12;
}

/* Ocean Theme - Calming blues */
[data-theme="ocean"] {
    --primary: #0369a1;
    --danger: #be123c;
    --success: #0891b2;
    --background: #f0f9ff;
    --surface: #ffffff;
    --text: #075985;
}

/* Layout Selector */
.layout-selector {
    position: fixed;
    top: 60px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.layout-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--surface);
}

.layout-button.active {
    background: var(--primary);
    color: white;
}

/* Standard Layout (Original) */
[data-layout="standard"] .timer-row {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 1rem;
}

/* Compact Layout */
[data-layout="compact"] .timer-row {
    display: grid;
    grid-template-columns: 3fr 1fr 80px 80px;
    gap: 8px;
    align-items: center;
    padding: 0.5rem;
    font-size: 0.9rem;
}

[data-layout="compact"] input,
[data-layout="compact"] button {
    padding: 4px 8px;
}

/* Narrow Layout */
[data-layout="narrow"] .timers-container {
    max-width: 400px;
    margin: 0 auto;
}

[data-layout="narrow"] .timer-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 1rem;
    border: 1px solid var(--primary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

[data-layout="narrow"] .timer-row .elapsed-time {
    font-size: 1.5rem;
}

/* Grid Layout */
[data-layout="grid"] .timers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

[data-layout="grid"] .timer-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-layout="grid"] .elapsed-time {
    font-size: 2rem;
    text-align: center;
}

/* Timeline Layout */
[data-layout="timeline"] .timers-container {
    position: relative;
    padding: 2rem 0;
}

[data-layout="timeline"] .timer-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 1rem;
    position: relative;
}

[data-layout="timeline"] .timer-row::before {
    content: '';
    position: absolute;
    left: 195px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

[data-layout="timeline"] .timer-row::after {
    content: '';
    position: absolute;
    left: 191px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    transform: translateY(-50%);
}


