.pomodoro-page {
    display: flex;
    gap: 24px;
    padding: 24px 20px;
    max-width: var(--medium-width);
    margin: 0 auto;
}

.column {
    flex: 1;
}

.settings-column {
    flex: 0 0 360px;
}

.settings-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 24px;
}

.settings-panel {
    max-height: 500px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
}

.setting-row:first-child {
    border-top: none;
}

.setting-label {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.setting-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    background: #f9fafb;
    transition: all 0.2s;
}

.setting-input:focus {
    outline: none;
    border-color: #ef4444;
    background: white;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .slider {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}

.timer-column {
    flex: 0 0 500px;
}

.mode-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.mode-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    color: #000000;
    background: #f3f4f6;
    transition: all 0.2s;
    gap: 4px;
}

.mode-tab:hover {
    background: #e5e7eb;
}

.mode-tab.active {
    background: #FBDADF;
    border: 2px solid #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.mode-icon-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mode-icon {
    font-size: 14px;
}

.mode-name {
    font-size: 14px;
    font-weight: 600;
}

.mode-time {
    font-size: 12px;
    opacity: 0.8;
}

.timer-display {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.timer-circle {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 32px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    stroke: rgba(0, 0, 0, 0.1);
}

.timer-progress {
    transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-time {
    font-size: 64px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Courier New', 'Consolas', monospace;
    line-height: 1.2;
    letter-spacing: -2px;
}

.timer-status {
    font-size: 16px;
    color: #6b7280;
    margin-top: 8px;
}

.timer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.timer-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f3f4f6;
    border: none;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.timer-control-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.timer-control-btn svg {
    width: 24px;
    height: 24px;
}

.timer-control-btn-primary {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.timer-control-btn-primary:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.timer-control-btn-primary svg {
    width: 28px;
    height: 28px;
}

.stats-row {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.stat-card {
    flex: 1;
    background: #f9fafb;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.stat-icon-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-icon {
    font-size: 20px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.tasks-column {
    flex: 1;
}

.tasks-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 20px 24px;
}

.tasks-section .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.tasks-list {
    min-height: 60px;
    margin-bottom: 16px;
}

.no-tasks {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    padding: 20px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.task-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.task-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
}

.task-checkbox input:checked + .checkmark {
    background: #ef4444;
    border-color: #ef4444;
}

.task-checkbox input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.task-text {
    flex: 1;
    font-size: 15px;
    color: #374151;
    transition: all 0.2s;
}

.task-text.completed {
    text-decoration: line-through;
    color: #9ca3af;
}

.task-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    opacity: 0;
}

.task-item:hover .task-delete-btn {
    opacity: 1;
}

.task-delete-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.task-delete-btn svg {
    width: 16px;
    height: 16px;
}

.add-task-row {
    display: flex;
    gap: 10px;
}

.task-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.2s;
}

.task-input:focus {
    outline: none;
    border-color: #ef4444;
    background: white;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.task-add-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.task-add-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

@media (max-width: 640px) {
    .pomodoro-page {
        flex-direction: column;
        padding: 16px 12px;
    }

    .column {
        flex: none !important;
        width: 100%;
    }

    .mode-tabs {
        padding: 4px;
    }

    .mode-tab {
        padding: 10px 6px;
    }

    .mode-icon {
        font-size: 18px;
    }

    .mode-name {
        font-size: 12px;
    }

    .mode-time {
        font-size: 10px;
    }

    .timer-display {
        padding: 24px 16px;
    }

    .timer-circle {
        width: 220px;
        height: 220px;
        margin-bottom: 24px;
    }

    .timer-time {
        font-size: 48px;
    }

    .timer-controls {
        gap: 16px;
    }

    .timer-control-btn {
        width: 48px;
        height: 48px;
    }

    .timer-control-btn svg {
        width: 20px;
        height: 20px;
    }

    .timer-control-btn-primary {
        width: 64px;
        height: 64px;
    }

    .timer-control-btn-primary svg {
        width: 24px;
        height: 24px;
    }

    .stats-row {
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-value {
        font-size: 24px;
    }

    .setting-row {
        padding: 12px 16px;
    }

    .setting-input {
        width: 60px;
    }

    .tasks-section {
        padding: 16px;
    }
}