/**
 * Pomodoro Timer - Complete Styles
 * Uses theme CSS variables for proper light/dark theme support
 */

/* ==================== CSS Variables ==================== */
.pomodoro-container {
    --pomo-primary: var(--primary-color, #e74c3c);
    --pomo-primary-rgb: var(--primary-rgb, 231, 76, 60);
    --pomo-secondary: var(--secondary-color, #3498db);
    --pomo-secondary-rgb: var(--secondary-rgb, 52, 152, 219);

    --pomo-bg: var(--card-bg-color, #ffffff);
    --pomo-surface: var(--background-color, #ffffff);
    --pomo-text: var(--text-color, #333333);
    --pomo-text-muted: #6c757d;
    --pomo-border: var(--border-color, rgba(52, 152, 219, 0.1));
    --pomo-shadow: var(--box-shadow, 0 4px 6px rgba(0, 0, 0, 0.1));

    --pomo-success: #27ae60;
    --pomo-warning: #f39c12;
    --pomo-info: #9b59b6;
    --pomo-danger: #e74c3c;

    --pomo-work: #e74c3c;
    --pomo-short-break: #27ae60;
    --pomo-long-break: #3498db;

    --pomo-radius: var(--border-radius-md, 8px);
    --pomo-radius-lg: var(--border-radius-lg, 16px);
    --pomo-transition: var(--transition-fast, 0.2s ease);
    --pomo-gradient: linear-gradient(135deg, var(--pomo-primary), var(--pomo-secondary));
}

/* Dark Theme - Using .dark-theme from parent */
.dark-theme .pomodoro-container {
    --pomo-text-muted: #9ca3af;
    --pomo-bg: var(--card-bg-color, #171a21);
    --pomo-surface: var(--background-color, #0f1115);
}

/* ==================== Container ==================== */
.pomodoro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: var(--font-family, 'Inter', sans-serif);
    color: var(--pomo-text);
}

/* ==================== Header ==================== */
.pomodoro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(var(--pomo-primary-rgb), 0.1), rgba(var(--pomo-secondary-rgb), 0.05));
    border-radius: var(--pomo-radius-lg);
    border: 1px solid rgba(var(--pomo-primary-rgb), 0.15);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--pomo-primary), var(--pomo-secondary));
    border-radius: var(--pomo-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 24px rgba(var(--pomo-primary-rgb), 0.35);
}

.header-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--pomo-text);
}

.header-text p {
    margin: 0.25rem 0 0;
    opacity: 0.7;
    font-size: 0.95rem;
    color: var(--pomo-text);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.pomodoro-container .btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--pomo-border);
    background: var(--pomo-bg);
    color: var(--pomo-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--pomo-transition);
}

.pomodoro-container .btn-icon:hover {
    border-color: var(--pomo-primary);
    color: var(--pomo-primary);
    background: rgba(var(--pomo-primary-rgb), 0.05);
}

.pomodoro-container .btn-icon.muted {
    opacity: 0.5;
}

/* ==================== Privacy Notice ==================== */
.pomodoro-container .privacy-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.05));
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: var(--pomo-radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--pomo-text);
}

.dark-theme .pomodoro-container .privacy-notice {
    background: rgba(39, 174, 96, 0.15);
}

.pomodoro-container .privacy-notice i {
    color: var(--pomo-success);
    font-size: 1.2rem;
}

/* ==================== Timer Main Section ==================== */
.timer-main-section {
    background: var(--pomo-bg);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--pomo-shadow);
}

/* Session Tabs */
.session-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.session-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--pomo-border);
    background: var(--pomo-surface);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pomo-text-muted);
    cursor: pointer;
    transition: var(--pomo-transition);
}

.session-tab:hover {
    border-color: var(--pomo-primary);
    color: var(--pomo-primary);
}

.session-tab.active[data-session="work"] {
    background: var(--pomo-work);
    border-color: var(--pomo-work);
    color: white;
}

.session-tab.active[data-session="short"] {
    background: var(--pomo-short-break);
    border-color: var(--pomo-short-break);
    color: white;
}

.session-tab.active[data-session="long"] {
    background: var(--pomo-long-break);
    border-color: var(--pomo-long-break);
    color: white;
}

/* Timer Display */
.timer-display-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.progress-ring-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--pomo-border);
    stroke-width: 12;
}

.dark-theme .progress-ring-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.progress-ring-progress {
    fill: none;
    stroke: url(#timerGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 879.65;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease;
}

.timer-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.session-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pomo-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.timer-display {
    font-size: 4.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: var(--pomo-text);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.session-count {
    font-size: 0.9rem;
    color: var(--pomo-text-muted);
}

/* Timer Controls */
.timer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-control {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--pomo-transition);
}

.btn-control.btn-secondary {
    width: 56px;
    height: 56px;
    background: var(--pomo-surface);
    border: 1px solid var(--pomo-border);
    color: var(--pomo-text-muted);
    font-size: 1.2rem;
}

.dark-theme .btn-control.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
}

.btn-control.btn-secondary:hover {
    background: rgba(var(--pomo-primary-rgb), 0.1);
    color: var(--pomo-primary);
    transform: scale(1.1);
}

.btn-control.btn-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: var(--pomo-shadow);
}

.btn-control.btn-large i {
    font-size: 2rem;
}

.btn-control.btn-primary {
    background: linear-gradient(135deg, var(--pomo-work), #c0392b);
    color: white;
}

.btn-control.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.btn-control.btn-primary.running {
    background: linear-gradient(135deg, var(--pomo-warning), #e67e22);
}

/* Quick Stats Bar */
.quick-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: var(--pomo-surface);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
}

.dark-theme .quick-stats-bar {
    background: rgba(255, 255, 255, 0.03);
}

.quick-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    text-align: center;
}

.quick-stat i {
    font-size: 1.25rem;
    color: var(--pomo-primary);
    margin-bottom: 0.25rem;
}

.quick-stat span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pomo-text);
}

.quick-stat label {
    font-size: 0.75rem;
    color: var(--pomo-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== Content Tabs ==================== */
.content-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--pomo-bg);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.content-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border: none;
    background: transparent;
    border-radius: var(--pomo-radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pomo-text-muted);
    cursor: pointer;
    transition: var(--pomo-transition);
    white-space: nowrap;
}

.content-tab:hover {
    background: var(--pomo-surface);
    color: var(--pomo-text);
}

.dark-theme .content-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.content-tab.active {
    background: var(--pomo-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--pomo-primary-rgb), 0.3);
}

/* ==================== Content Panels ==================== */
.content-panels {
    background: var(--pomo-bg);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--pomo-shadow);
}

.content-panel {
    display: none;
}

.content-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pomo-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-header h3 i {
    color: var(--pomo-primary);
}

.panel-description {
    color: var(--pomo-text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

/* ==================== Tasks Panel ==================== */
.task-input-section {
    margin-bottom: 1.5rem;
}

.task-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.task-input-wrapper input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    border: 2px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    font-size: 1rem;
    background: var(--pomo-surface);
    color: var(--pomo-text);
    transition: var(--pomo-transition);
}

.dark-theme .task-input-wrapper input[type="text"] {
    background: rgba(255, 255, 255, 0.05);
}

.task-input-wrapper input[type="text"]:focus {
    outline: none;
    border-color: var(--pomo-primary);
    box-shadow: 0 0 0 3px rgba(var(--pomo-primary-rgb), 0.1);
}

.task-input-wrapper input[type="text"]::placeholder {
    color: var(--pomo-text-muted);
}

.task-pomodoros-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-pomodoros-input label {
    font-size: 0.85rem;
    color: var(--pomo-text-muted);
    white-space: nowrap;
}

.task-pomodoros-input input {
    width: 60px;
    padding: 0.875rem 0.5rem;
    border: 2px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    font-size: 1rem;
    text-align: center;
    background: var(--pomo-surface);
    color: var(--pomo-text);
}

.dark-theme .task-pomodoros-input input {
    background: rgba(255, 255, 255, 0.05);
}

.tasks-list {
    max-height: 400px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--pomo-surface);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    margin-bottom: 0.75rem;
    transition: var(--pomo-transition);
}

.dark-theme .task-item {
    background: rgba(255, 255, 255, 0.03);
}

.task-item:hover {
    border-color: rgba(var(--pomo-primary-rgb), 0.3);
}

.task-item.active {
    border-color: var(--pomo-primary);
    background: rgba(var(--pomo-primary-rgb), 0.05);
}

.task-item.completed {
    opacity: 0.6;
}

.task-item.completed .task-name {
    text-decoration: line-through;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--pomo-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pomo-transition);
    flex-shrink: 0;
    background: transparent;
}

.task-checkbox:hover {
    border-color: var(--pomo-success);
}

.task-checkbox.checked {
    background: var(--pomo-success);
    border-color: var(--pomo-success);
    color: white;
}

.task-content {
    flex: 1;
}

.task-name {
    font-weight: 600;
    color: var(--pomo-text);
    margin-bottom: 0.25rem;
}

.task-progress {
    font-size: 0.85rem;
    color: var(--pomo-text-muted);
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.task-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--pomo-bg);
    border: 1px solid var(--pomo-border);
    color: var(--pomo-text-muted);
    cursor: pointer;
    transition: var(--pomo-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-actions button:hover {
    background: var(--pomo-primary);
    border-color: var(--pomo-primary);
    color: white;
}

.task-actions button.btn-delete:hover {
    background: var(--pomo-danger);
    border-color: var(--pomo-danger);
}

.active-task-display {
    padding: 1rem;
    background: rgba(var(--pomo-primary-rgb), 0.1);
    border: 1px solid rgba(var(--pomo-primary-rgb), 0.2);
    border-radius: var(--pomo-radius);
    margin-top: 1rem;
    text-align: center;
}

.active-task-label {
    font-size: 0.85rem;
    color: var(--pomo-text-muted);
    margin-bottom: 0.25rem;
}

.active-task-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pomo-primary);
    margin-bottom: 0.25rem;
}

.active-task-progress {
    font-size: 0.9rem;
    color: var(--pomo-text-muted);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--pomo-text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
}

/* ==================== Multi-Timer Panel ==================== */
.timer-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.timer-category {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--pomo-surface);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    transition: var(--pomo-transition);
}

.dark-theme .timer-category {
    background: rgba(255, 255, 255, 0.03);
}

.timer-category:hover {
    border-color: rgba(var(--pomo-primary-rgb), 0.3);
}

.timer-category.active {
    border-color: var(--pomo-primary);
    background: rgba(var(--pomo-primary-rgb), 0.05);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--pomo-gradient);
    border-radius: var(--pomo-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--pomo-text);
}

.category-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pomo-primary);
}

.category-sessions {
    font-size: 0.85rem;
    color: var(--pomo-text-muted);
}

/* ==================== Statistics Panel ==================== */
.stats-period-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.period-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--pomo-border);
    background: transparent;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pomo-text-muted);
    cursor: pointer;
    transition: var(--pomo-transition);
}

.period-btn:hover {
    border-color: var(--pomo-primary);
    color: var(--pomo-primary);
}

.period-btn.active {
    background: var(--pomo-primary);
    border-color: var(--pomo-primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.pomodoro-container .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--pomo-surface);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    border-left: 4px solid var(--pomo-primary);
}

.dark-theme .pomodoro-container .stat-card {
    background: rgba(255, 255, 255, 0.03);
}

.pomodoro-container .stat-card.primary {
    border-left-color: var(--pomo-work);
}

.pomodoro-container .stat-card.success {
    border-left-color: var(--pomo-success);
}

.pomodoro-container .stat-card.info {
    border-left-color: var(--pomo-info);
}

.pomodoro-container .stat-card.warning {
    border-left-color: var(--pomo-warning);
}

.pomodoro-container .stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background: var(--pomo-bg);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.pomodoro-container .stat-card.primary .stat-icon {
    color: var(--pomo-work);
}

.pomodoro-container .stat-card.success .stat-icon {
    color: var(--pomo-success);
}

.pomodoro-container .stat-card.info .stat-icon {
    color: var(--pomo-info);
}

.pomodoro-container .stat-card.warning .stat-icon {
    color: var(--pomo-warning);
}

.pomodoro-container .stat-content {
    display: flex;
    flex-direction: column;
}

.pomodoro-container .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pomo-text);
}

.pomodoro-container .stat-label {
    font-size: 0.85rem;
    color: var(--pomo-text-muted);
}

/* Chart */
.chart-container {
    background: var(--pomo-surface);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dark-theme .chart-container {
    background: rgba(255, 255, 255, 0.03);
}

.chart-container h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: var(--pomo-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container h4 i {
    color: var(--pomo-primary);
}

.weekly-chart {
    height: 200px;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    gap: 0.5rem;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    background: var(--pomo-gradient);
    border-radius: var(--pomo-radius) var(--pomo-radius) 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
    margin-top: auto;
}

.chart-label {
    font-size: 0.75rem;
    color: var(--pomo-text-muted);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Calendar */
.streak-calendar {
    background: var(--pomo-surface);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    padding: 1.5rem;
}

.dark-theme .streak-calendar {
    background: rgba(255, 255, 255, 0.03);
}

.streak-calendar h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--pomo-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.streak-calendar h4 i {
    color: var(--pomo-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 1rem;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 4px;
    background: var(--pomo-bg);
    border: 1px solid var(--pomo-border);
    transition: var(--pomo-transition);
}

.dark-theme .calendar-day {
    background: rgba(255, 255, 255, 0.05);
}

.calendar-day.level-1 {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.3);
}

.calendar-day.level-2 {
    background: rgba(231, 76, 60, 0.4);
    border-color: rgba(231, 76, 60, 0.5);
}

.calendar-day.level-3 {
    background: rgba(231, 76, 60, 0.6);
    border-color: rgba(231, 76, 60, 0.7);
}

.calendar-day.level-4 {
    background: var(--pomo-work);
    border-color: var(--pomo-work);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--pomo-text-muted);
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--pomo-bg);
    border: 1px solid var(--pomo-border);
}

.legend-box.level-1 {
    background: rgba(231, 76, 60, 0.2);
}

.legend-box.level-2 {
    background: rgba(231, 76, 60, 0.4);
}

.legend-box.level-3 {
    background: rgba(231, 76, 60, 0.6);
}

.legend-box.level-4 {
    background: var(--pomo-work);
}

/* ==================== Goals Panel ==================== */
.goals-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.goal-card {
    background: var(--pomo-surface);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    padding: 1.5rem;
}

.dark-theme .goal-card {
    background: rgba(255, 255, 255, 0.03);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.goal-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--pomo-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-header h4 i {
    color: var(--pomo-primary);
}

.goal-edit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-edit input {
    width: 60px;
    padding: 0.5rem;
    border: 2px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    font-size: 0.9rem;
    text-align: center;
    background: var(--pomo-bg);
    color: var(--pomo-text);
}

.dark-theme .goal-edit input {
    background: rgba(255, 255, 255, 0.05);
}

.goal-edit span {
    font-size: 0.85rem;
    color: var(--pomo-text-muted);
}

.goal-progress-container {
    margin-bottom: 0.5rem;
}

.goal-progress-bar {
    height: 12px;
    background: var(--pomo-bg);
    border: 1px solid var(--pomo-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.dark-theme .goal-progress-bar {
    background: rgba(255, 255, 255, 0.05);
}

.goal-progress-fill {
    height: 100%;
    background: var(--pomo-gradient);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.goal-progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--pomo-text-muted);
    font-weight: 600;
}

.goal-celebration {
    text-align: center;
    padding: 1rem;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: var(--pomo-radius);
    color: var(--pomo-success);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.streak-section {
    background: var(--pomo-surface);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    padding: 1.5rem;
}

.dark-theme .streak-section {
    background: rgba(255, 255, 255, 0.03);
}

.streak-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: var(--pomo-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.streak-section h4 i {
    color: var(--pomo-warning);
}

.streak-display {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.streak-current,
.streak-best {
    text-align: center;
}

.streak-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--pomo-primary);
}

.streak-best .streak-number {
    color: var(--pomo-warning);
}

.streak-label {
    font-size: 0.85rem;
    color: var(--pomo-text-muted);
}

/* ==================== History Panel ==================== */
.history-list {
    max-height: 500px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--pomo-surface);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    margin-bottom: 0.75rem;
}

.dark-theme .history-item {
    background: rgba(255, 255, 255, 0.03);
}

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.history-icon.work {
    background: rgba(231, 76, 60, 0.1);
    color: var(--pomo-work);
}

.history-icon.short {
    background: rgba(39, 174, 96, 0.1);
    color: var(--pomo-short-break);
}

.history-icon.long {
    background: rgba(52, 152, 219, 0.1);
    color: var(--pomo-long-break);
}

.history-content {
    flex: 1;
}

.history-type {
    font-weight: 600;
    color: var(--pomo-text);
    margin-bottom: 0.25rem;
}

.history-task {
    font-size: 0.85rem;
    color: var(--pomo-text-muted);
}

.history-meta {
    text-align: right;
}

.history-duration {
    font-weight: 600;
    color: var(--pomo-text);
}

.history-time {
    font-size: 0.75rem;
    color: var(--pomo-text-muted);
}

/* ==================== Modals ==================== */
.pomodoro-container .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--pomo-bg);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--pomo-border);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--pomo-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: var(--pomo-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--pomo-border);
    background: var(--pomo-surface);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--pomo-text-muted);
    cursor: pointer;
    transition: var(--pomo-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--pomo-danger);
    border-color: var(--pomo-danger);
    color: white;
}

.modal-body {
    padding: 1.5rem;
}

/* Settings Modal */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section:last-of-type {
    margin-bottom: 0;
}

.settings-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--pomo-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--pomo-border);
}

.settings-section h4 i {
    color: var(--pomo-primary);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.setting-row label {
    color: var(--pomo-text-muted);
    font-size: 0.95rem;
}

.setting-row input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    font-size: 1rem;
    text-align: center;
    background: var(--pomo-surface);
    color: var(--pomo-text);
}

.dark-theme .setting-row input[type="number"] {
    background: rgba(255, 255, 255, 0.05);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pomo-bg);
    border: 2px solid var(--pomo-border);
    border-radius: 28px;
    transition: var(--pomo-transition);
}

.dark-theme .toggle-slider {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--pomo-text-muted);
    border-radius: 50%;
    transition: var(--pomo-transition);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--pomo-primary);
    border-color: var(--pomo-primary);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(22px);
    background: white;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pomo-border);
    margin-top: 1.5rem;
}

/* Break Modal */
.break-modal-content {
    max-width: 400px;
    text-align: center;
}

.break-message {
    color: var(--pomo-text-muted);
    margin-bottom: 1.5rem;
}

.break-activity {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--pomo-surface);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
    margin-bottom: 1rem;
    text-align: left;
}

.dark-theme .break-activity {
    background: rgba(255, 255, 255, 0.03);
}

.activity-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--pomo-success), #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.activity-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--pomo-text);
}

.activity-text p {
    font-size: 0.9rem;
    color: var(--pomo-text-muted);
    margin: 0;
}

/* Help Modal */
.help-section {
    margin-bottom: 2rem;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--pomo-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section h4 i {
    color: var(--pomo-primary);
}

.help-section p {
    color: var(--pomo-text-muted);
    line-height: 1.6;
}

.help-section ul {
    color: var(--pomo-text-muted);
    padding-left: 1.5rem;
    line-height: 1.8;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--pomo-surface);
    border: 1px solid var(--pomo-border);
    border-radius: var(--pomo-radius);
}

.dark-theme .shortcut-item {
    background: rgba(255, 255, 255, 0.03);
}

.shortcut-item kbd {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--pomo-bg);
    border: 1px solid var(--pomo-border);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pomo-text);
    min-width: 40px;
    text-align: center;
}

.shortcut-item span {
    font-size: 0.9rem;
    color: var(--pomo-text-muted);
}

/* ==================== Buttons ==================== */
.pomodoro-container .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--pomo-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pomo-transition);
}

.pomodoro-container .btn-primary {
    background: var(--pomo-gradient);
    color: white !important;
    box-shadow: 0 4px 15px rgba(var(--pomo-primary-rgb), 0.3);
}

.pomodoro-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--pomo-primary-rgb), 0.4);
}

.pomodoro-container .btn-outline {
    background: transparent;
    border: 2px solid var(--pomo-border);
    color: var(--pomo-text-muted);
}

.pomodoro-container .btn-outline:hover {
    border-color: var(--pomo-primary);
    color: var(--pomo-primary);
}

.pomodoro-container .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.pomodoro-container .btn-danger {
    border-color: var(--pomo-danger);
    color: var(--pomo-danger);
}

.pomodoro-container .btn-danger:hover {
    background: var(--pomo-danger);
    color: white;
}

.panel-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==================== Focus Mode ==================== */
.pomodoro-container.focus-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--pomo-surface);
}

.pomodoro-container.focus-mode .pomodoro-header,
.pomodoro-container.focus-mode .privacy-notice,
.pomodoro-container.focus-mode .quick-stats-bar,
.pomodoro-container.focus-mode .content-tabs,
.pomodoro-container.focus-mode .content-panels {
    display: none;
}

.pomodoro-container.focus-mode .timer-main-section {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 500px;
}

.pomodoro-container.focus-mode .progress-ring-container {
    width: 400px;
    height: 400px;
}

.pomodoro-container.focus-mode .timer-display {
    font-size: 6rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 992px) {
    .pomodoro-container {
        padding: 1rem;
    }

    .quick-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pomodoro-header {
        flex-direction: column;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
    }

    .header-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .header-text h2 {
        font-size: 1.5rem;
    }

    .session-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .session-tab {
        justify-content: center;
    }

    .progress-ring-container {
        width: 250px;
        height: 250px;
    }

    .timer-display {
        font-size: 3.5rem;
    }

    .btn-control.btn-large {
        width: 100px;
        height: 100px;
    }

    .btn-control.btn-large i {
        font-size: 1.5rem;
    }

    .quick-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .quick-stat span {
        font-size: 1.25rem;
    }

    .content-tabs {
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .content-tab {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .content-tab span {
        display: none;
    }

    .task-input-wrapper {
        flex-direction: column;
    }

    .task-input-wrapper input[type="text"] {
        width: 100%;
    }

    .task-pomodoros-input {
        width: 100%;
        justify-content: center;
    }

    .task-input-wrapper .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-period-selector {
        justify-content: center;
    }

    .streak-display {
        gap: 2rem;
    }

    .streak-number {
        font-size: 2.5rem;
    }

    .modal-content {
        margin: 1rem;
    }

    .pomodoro-container.focus-mode .progress-ring-container {
        width: 280px;
        height: 280px;
    }

    .pomodoro-container.focus-mode .timer-display {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .pomodoro-container {
        padding: 0.75rem;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pomodoro-container .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timer-main-section {
        padding: 1.5rem 1rem;
    }

    .progress-ring-container {
        width: 220px;
        height: 220px;
    }

    .timer-display {
        font-size: 3rem;
    }

    .session-label {
        font-size: 0.8rem;
    }

    .timer-controls {
        gap: 0.75rem;
    }

    .btn-control.btn-secondary {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .btn-control.btn-large {
        width: 90px;
        height: 90px;
        font-size: 1rem;
    }

    .btn-control.btn-large i {
        font-size: 1.25rem;
    }

    .quick-stats-bar {
        padding: 0.75rem;
    }

    .quick-stat {
        padding: 0.5rem;
    }

    .quick-stat i {
        font-size: 1rem;
    }

    .quick-stat span {
        font-size: 1.1rem;
    }

    .quick-stat label {
        font-size: 0.65rem;
    }

    .content-panels {
        padding: 1rem;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .goals-section {
        grid-template-columns: 1fr;
    }

    .timer-categories {
        grid-template-columns: 1fr;
    }

    .history-item {
        flex-wrap: wrap;
    }

    .history-meta {
        width: 100%;
        text-align: left;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--pomo-border);
    }
}

/* ==================== Animations ==================== */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.btn-control.btn-primary.running {
    animation: pulse 2s infinite;
}

.task-item.shake {
    animation: shake 0.3s ease;
}

/* Celebration animation */
@keyframes celebration {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.goal-celebration {
    animation: celebration 0.5s ease;
}

/* Scrollbar styling */
.tasks-list::-webkit-scrollbar,
.history-list::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.tasks-list::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: var(--pomo-bg);
    border-radius: 4px;
}

.tasks-list::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: var(--pomo-text-muted);
    border-radius: 4px;
}

.tasks-list::-webkit-scrollbar-thumb:hover,
.history-list::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--pomo-primary);
}

/* ==================== Focus Mode Overlay ==================== */
.focus-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--pomo-surface);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family, 'Inter', sans-serif);
}

.dark-theme .focus-mode-overlay {
    background: #0a0a0f;
}

/* Focus Mode Header */
.focus-mode-header {
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
}

.focus-exit-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--pomo-text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .focus-exit-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.focus-exit-btn:hover {
    background: var(--pomo-danger);
    border-color: var(--pomo-danger);
    color: white;
    transform: scale(1.05);
}

.focus-exit-btn i {
    font-size: 1.1rem;
}

/* Focus Mode Content */
.focus-mode-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
}

/* Focus Session Tabs */
.focus-session-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.focus-session-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--pomo-text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .focus-session-tab {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.focus-session-tab:hover {
    border-color: var(--pomo-primary);
    color: var(--pomo-primary);
}

.focus-session-tab.active[data-session="work"] {
    background: var(--pomo-work);
    border-color: var(--pomo-work);
    color: white;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.focus-session-tab.active[data-session="short"] {
    background: var(--pomo-short-break);
    border-color: var(--pomo-short-break);
    color: white;
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.4);
}

.focus-session-tab.active[data-session="long"] {
    background: var(--pomo-long-break);
    border-color: var(--pomo-long-break);
    color: white;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

/* Focus Timer Container */
.focus-timer-container {
    position: relative;
    width: 380px;
    height: 380px;
}

.focus-progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.focus-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 14;
}

.dark-theme .focus-ring-bg {
    stroke: rgba(255, 255, 255, 0.08);
}

.focus-ring-progress {
    fill: none;
    stroke: url(#focusTimerGradient);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 1130.97;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease;
}

.focus-timer-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.focus-session-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pomo-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.dark-theme .focus-session-label {
    color: rgba(255, 255, 255, 0.5);
}

.focus-timer-display {
    font-size: 5.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: var(--pomo-text);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.dark-theme .focus-timer-display {
    color: #ffffff;
}

.focus-session-count {
    font-size: 1rem;
    color: var(--pomo-text-muted);
    font-weight: 500;
}

.dark-theme .focus-session-count {
    color: rgba(255, 255, 255, 0.5);
}

/* Focus Controls */
.focus-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.focus-control-btn {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.focus-control-btn.focus-secondary {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--pomo-text-muted);
    font-size: 1.25rem;
}

.dark-theme .focus-control-btn.focus-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.focus-control-btn.focus-secondary:hover {
    background: rgba(var(--pomo-primary-rgb), 0.2);
    border-color: var(--pomo-primary);
    color: var(--pomo-primary);
    transform: scale(1.1);
}

.focus-control-btn.focus-primary {
    width: 140px;
    height: 140px;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--pomo-work), #c0392b);
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 10px 40px rgba(231, 76, 60, 0.4);
}

.focus-control-btn.focus-primary i {
    font-size: 2.5rem;
}

.focus-control-btn.focus-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(231, 76, 60, 0.5);
}

.focus-control-btn.focus-primary.running {
    background: linear-gradient(135deg, var(--pomo-warning), #e67e22);
    box-shadow: 0 10px 40px rgba(243, 156, 18, 0.4);
}

.focus-control-btn.focus-primary.running:hover {
    box-shadow: 0 15px 50px rgba(243, 156, 18, 0.5);
}

/* Focus Active Task */
.focus-active-task {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(var(--pomo-primary-rgb), 0.1);
    border: 1px solid rgba(var(--pomo-primary-rgb), 0.2);
    border-radius: 50px;
}

.focus-task-label {
    font-size: 0.9rem;
    color: var(--pomo-text-muted);
}

.focus-task-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pomo-primary);
}

/* Focus Mode Footer */
.focus-mode-footer {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
}

.focus-shortcuts {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.focus-shortcuts span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--pomo-text-muted);
}

.dark-theme .focus-shortcuts span {
    color: rgba(255, 255, 255, 0.5);
}

.focus-shortcuts kbd {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pomo-text);
}

.dark-theme .focus-shortcuts kbd {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Focus Mode Responsive */
@media (max-width: 768px) {
    .focus-mode-header {
        padding: 1rem;
    }

    .focus-exit-btn span {
        display: none;
    }

    .focus-exit-btn {
        padding: 0.75rem;
        border-radius: 50%;
    }

    .focus-session-tabs {
        gap: 0.5rem;
    }

    .focus-session-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .focus-timer-container {
        width: 280px;
        height: 280px;
    }

    .focus-timer-display {
        font-size: 4rem;
    }

    .focus-session-label {
        font-size: 0.9rem;
    }

    .focus-control-btn.focus-secondary {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }

    .focus-control-btn.focus-primary {
        width: 110px;
        height: 110px;
        font-size: 1rem;
    }

    .focus-control-btn.focus-primary i {
        font-size: 2rem;
    }

    .focus-shortcuts {
        gap: 1rem;
    }

    .focus-shortcuts span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .focus-timer-container {
        width: 240px;
        height: 240px;
    }

    .focus-timer-display {
        font-size: 3.5rem;
    }

    .focus-controls {
        gap: 1rem;
    }

    .focus-control-btn.focus-secondary {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .focus-control-btn.focus-primary {
        width: 100px;
        height: 100px;
    }

    .focus-control-btn.focus-primary i {
        font-size: 1.75rem;
    }

    .focus-active-task {
        flex-direction: column;
        text-align: center;
        border-radius: 16px;
    }
}