/* 倒计时定时器样式 */
.countdown-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    text-align: center;
}

.timer-title {
    font-size: 28px;
    color: #776e65;
    margin: 0 0 10px 0;
}

.timer-description {
    color: #776e65;
    margin: 0 0 20px 0;
}

.timer-display {
    font-size: 60px;
    font-weight: bold;
    color: #1e3c72;
    margin: 30px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.control-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background: #8f7a66;
    color: #f9f6f2;
    transition: all 0.3s ease;
    min-width: 100px;
}

.control-btn:hover {
    background: #7c6b5d;
    transform: translateY(-2px);
}

.control-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.timer-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group label {
    margin-bottom: 5px;
    color: #776e65;
    font-weight: bold;
}

.timer-input {
    width: 80px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.timer-input:focus {
    outline: none;
    border-color: #1e3c72;
}

.custom-timer {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.quick-timers {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    background: #6c757d;
    color: white;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.message-success {
    background: #d4edda;
    color: #155724;
}

.message-warning {
    background: #fff3cd;
    color: #856404;
}

.timer-history {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.history-title {
    font-size: 18px;
    color: #1e3c72;
    margin: 0 0 10px 0;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
}

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

.delete-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
    padding: 0 5px;
}

.delete-btn:hover {
    color: #a71e2a;
}

/* 隐藏按钮和工作模式 */
.hidden-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 9999;
    display: none;
}

.work-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.work-screen {
    background: #f0f0f0;
    width: 90%;
    height: 80%;
    border: 1px solid #ccc;
    padding: 20px;
    font-family: 'Courier New', monospace;
    overflow: auto;
}

.work-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.work-content {
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .countdown-container {
        margin: 10px;
        padding: 15px;
    }
    
    .timer-display {
        font-size: 40px;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .timer-inputs {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-timers {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-btn {
        width: 100%;
        max-width: 200px;
    }
}