/* 番茄计时器样式 */
.pomodoro-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.timer-display {
    text-align: center;
    margin-bottom: 30px;
}

.mode-indicator {
    margin-bottom: 20px;
}

.mode-indicator span {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

#current-mode {
    font-size: 24px;
    color: #e74c3c;
}

#cycle-info {
    font-size: 16px;
    color: #7f8c8d;
}

.progress-ring {
    position: relative;
    width: 200px;
    height: 200px;
    display: inline-block;
}
.time-display {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#time-text {
    font-size: 48px;
    font-weight: 300;
    color: #2c3e50;
    font-variant-numeric: tabular-nums;
    z-index: 2;
}

.progress-ring {
    position: relative;
    display: inline-block;
}

.progress-circle { width: 100%; height: 100%; }

.progress-bg {
    fill: none;
    stroke: #ecf0f1;
    stroke-width: 8;
}

.progress-bar {
    fill: none;
    stroke: #e74c3c;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1s linear;
}

/* 不同模式的颜色 */
.work-mode .progress-bar {
    stroke: #e74c3c;
}

.short-break-mode .progress-bar {
    stroke: #3498db;
}

.long-break-mode .progress-bar {
    stroke: #2ecc71;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.control-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.control-btn.primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.control-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.control-btn.primary.paused {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.control-btn.secondary {
    background: #ecf0f1;
    color: #2c3e50;
    border: 2px solid #bdc3c7;
}

.control-btn.secondary:hover {
    background: #d5dbdb;
    transform: translateY(-1px);
}

.timer-settings {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.setting-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    font-weight: 500;
    color: #2c3e50;
}

.setting-group input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.setting-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.timer-stats {
    display: flex;
    justify-content: space-around;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pomodoro-container {
        padding: 15px;
    }
    
    #time-text {
        font-size: 36px;
    }
    
    .progress-circle {
        width: 150px;
        height: 150px;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 200px;
    }
    
    .setting-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .setting-group input {
        width: 100%;
    }
    
    .timer-stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .pomodoro-container {
        color: #ecf0f1;
    }
    
    .mode-indicator span {
        color: #ecf0f1;
    }
    
    #time-text {
        color: #ecf0f1;
    }
    
    .progress-bg {
        stroke: #34495e;
    }
    
    .timer-settings {
        background: #2c3e50;
    }
    
    .setting-group label {
        color: #ecf0f1;
    }
    
    .setting-group input {
        background: #34495e;
        border-color: #4a6741;
        color: #ecf0f1;
    }
    
    .timer-stats {
        background: #2c3e50;
    }
    
    .stat-label {
        color: #bdc3c7;
    }
    
    .stat-value {
        color: #ecf0f1;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.timer-display.working {
    animation: pulse 2s infinite;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2ecc71;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
