/* public/assets/css/tools/daily/timer.css */
.tm-wrapper { background: var(--bg-surface); border-radius: 24px; padding: 24px; border: 1px solid var(--border-color); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); }
.tm-header-main { font-size: 1.6rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; text-align: center; }
.tm-subtitle { color: var(--text-muted); font-size: 0.95rem; padding-bottom: 20px; text-align: center; }

/* 顶部状态栏 */
.tm-top-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--border-color); padding-bottom: 20px; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.tm-current-time { background: rgba(239, 68, 68, 0.1); color: #EF4444; padding: 8px 16px; border-radius: 12px; font-weight: 700; font-family: monospace; font-size: 1.1rem; letter-spacing: 1px; }
.tm-sound-toggle { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-muted); cursor: pointer; }

/* 模式切换 */
.tm-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tm-tab-btn { background: var(--bg-body); border: 1px solid var(--border-color); padding: 10px 24px; border-radius: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: 0.2s; font-size: 0.95rem; }
.tm-tab-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(0,102,204,0.2); }

/* 主显示区 */
.tm-display-board { text-align: center; margin-bottom: 30px; }
.tm-timer-text { font-size: 5rem; font-weight: 800; color: var(--primary-color); font-family: 'Courier New', monospace; font-variant-numeric: tabular-nums; line-height: 1; text-shadow: 0 4px 15px rgba(0,102,204,0.15); transition: color 0.3s; }
.tm-timer-text .ms { font-size: 2.5rem; color: var(--text-muted); }
.tm-timer-text.warning { color: #EF4444; animation: pulse 1s infinite; text-shadow: 0 4px 15px rgba(239,68,68,0.2); }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }

.tm-status-msg { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-top: 10px; padding: 6px 16px; background: var(--bg-body); border-radius: 20px; display: inline-block; border: 1px solid var(--border-color); }
.tm-status-msg.running { color: #10B981; border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.05); }

/* 控制按钮区 */
.tm-controls { display: flex; justify-content: center; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.tm-btn { background: var(--bg-body); color: var(--text-main); border: 2px solid var(--border-color); padding: 12px 28px; border-radius: 16px; font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.tm-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.05); border-color: var(--primary-color); }
.tm-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.tm-btn-primary { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.tm-btn-primary:hover:not(:disabled) { background: var(--primary-hover); }

/* 设置输入区 */
.tm-settings-panel { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; margin-bottom: 24px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; align-items: flex-end; transition: 0.3s; }
.tm-input-group { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.tm-input-group label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.tm-input { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 10px; border-radius: 8px; color: var(--text-main); font-size: 1.1rem; text-align: center; outline: none; transition: 0.2s; width: 80px; }
.tm-input[type="date"], .tm-input[type="time"] { width: auto; min-width: 140px; }
.tm-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }

/* 计次记录区 */
.tm-laps { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; max-height: 250px; overflow-y: auto; }
.tm-laps-title { font-weight: 700; color: var(--text-main); margin-bottom: 12px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.tm-lap-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border-color); font-family: monospace; font-size: 1.1rem; }
.tm-lap-item:last-child { border-bottom: none; }
.tm-lap-num { color: var(--text-muted); font-weight: 600; }
.tm-lap-val { color: var(--primary-color); font-weight: 700; }

[data-theme="dark"] .tm-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .tm-tab-btn, [data-theme="dark"] .tm-status-msg, [data-theme="dark"] .tm-settings-panel, [data-theme="dark"] .tm-laps { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .tm-btn { background: #1e293b; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .tm-input { background: #1e293b; border-color: #475569; color: #f8fafc; }