* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 0 15px;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #3498db;
}

/* 计时器显示区域 - 现在在顶部 */
.timer-display {
    background-color: #3498db;
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.current-status {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.exercise-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffff00; /* 黄色使其更醒目 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.time {
    font-size: 70px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1;
}

.progress-container {
    width: 100%;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: white;
    transition: width 0.1s linear;
}

.set-counter {
    font-size: 20px;
    font-weight: 600;
}

.next-up {
    text-align: center;
    font-size: 18px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
}

#next-label {
    font-weight: 600;
    margin-right: 5px;
}

#next-activity {
    font-weight: 600;
    color: #3498db;
}

#next-exercise-name {
    font-weight: 600;
    font-style: italic;
    margin-left: 5px;
    color: #e74c3c;
}

/* 控制按钮区域 */
.controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#start-btn {
    background-color: #2ecc71;
    color: white;
}

#pause-btn {
    background-color: #f39c12;
    color: white;
}

#reset-btn {
    background-color: #e74c3c;
    color: white;
}

.secondary-btn {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    margin-top: 10px;
    font-size: 14px;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* 设置区域切换按钮 */
.settings-toggle {
    margin-bottom: 15px;
    text-align: center;
}

#toggle-settings-btn {
    background-color: #7f8c8d;
    color: white;
    width: 100%;
}

/* 设置区域 - 现在在底部 */
.settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.setting-group {
    display: flex;
    flex-direction: column;
    grid-column: span 2;
}

label {
    margin-bottom: 5px;
    font-weight: 600;
}

input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* 锻炼动作输入框样式 */
.exercise-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.exercise-input-group input {
    flex: 1;
    margin-right: 10px;
}

.exercise-input-group .exercise-number {
    min-width: 30px;
    font-weight: 600;
    color: #3498db;
}

.remove-exercise-btn {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
}

/* 锻炼状态颜色 */
.workout-active .timer-display {
    background-color: #2ecc71;
}

.rest-active .timer-display {
    background-color: #f39c12;
}

.complete .timer-display {
    background-color: #9b59b6;
}

/* 默认隐藏设置区域 */
.settings-hidden .settings {
    display: none;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .setting-group {
        grid-column: span 1;
    }
} 