/* ===== Pomodoro Timer - Modern Styles ===== */
.tmr-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.tmr-main { min-width: 0; }
.tmr-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 18px; padding: 28px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.tmr-sidebar { display: flex; flex-direction: column; gap: 20px; }

.tmr-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.tmr-left { display: flex; flex-direction: column; align-items: center; }
.tmr-right { display: flex; flex-direction: column; gap: 20px; }

/* Timer circle (SVG) */
.timer-container { display: flex; justify-content: center; margin-bottom: 24px; }
.timer-circle { position: relative; width: 260px; height: 260px; }
.timer-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-bg-circle { fill: none; stroke: var(--bg-muted); stroke-width: 8; }
.timer-progress-circle { fill: none; stroke: var(--danger); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 282.7; stroke-dashoffset: 0; transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease; }
.timer-circle.break .timer-progress-circle { stroke: #22c55e; }
.timer-circle.long-break .timer-progress-circle { stroke: #3b82f6; }
body[data-theme="dark"] .timer-bg-circle { stroke: var(--border); }

.timer-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.timer-time { font-size: 56px; font-weight: 800; color: var(--text); font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace; line-height: 1.1; letter-spacing: -2px; }
.timer-label { font-size: 15px; font-weight: 600; color: var(--text-muted); margin-top: 6px; }

/* Controls */
.timer-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.btn-control { padding: 10px 20px; background: var(--bg-soft); color: var(--text-secondary); border: 1px solid var(--border-light); border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-control:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.tmr-start-btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px; border: none; border-radius: 14px; font-size: 17px; font-weight: 700; cursor: pointer; transition: all 0.25s; font-family: inherit; background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,0.3); }
.tmr-start-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,0.4); }
.tmr-start-btn.running { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 14px rgba(239,68,68,0.3); }
.tmr-start-btn.running:hover { box-shadow: 0 8px 24px rgba(239,68,68,0.4); }

/* Mode tabs */
.timer-modes { display: flex; gap: 8px; margin-bottom: 20px; width: 100%; }
.mode-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; background: var(--bg-soft); color: var(--text-muted); border: 2px solid var(--border-light); border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.mode-btn:hover { border-color: var(--border); color: var(--text); }
.mode-btn.active { color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.mode-btn.pomodoro.active { background: linear-gradient(135deg, #ef4444, #dc2626); }
.mode-btn.shortBreak.active { background: linear-gradient(135deg, #22c55e, #16a34a); }
.mode-btn.longBreak.active { background: linear-gradient(135deg, #3b82f6, #2563eb); }

/* Session bar */
.session-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.session-dots { display: flex; gap: 8px; }
.session-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border-light); transition: all 0.2s; }
.session-dot.active { background: var(--primary); transform: scale(1.2); }
.session-text { font-size: 14px; font-weight: 700; color: var(--text); }

/* Quick actions */
.quick-actions { display: flex; gap: 10px; width: 100%; }
.quick-actions .btn-secondary { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; background: var(--bg-soft); color: var(--text-secondary); border: 1px solid var(--border-light); border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.quick-actions .btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

/* Settings */
.settings-box { background: var(--bg-soft); border-radius: 14px; border: 1px solid var(--border-light); padding: 20px; }
.settings-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.settings-title i { color: var(--primary); }
.settings-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.settings-row:last-child { border-bottom: none; }
.settings-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.settings-label small { color: var(--text-muted); font-size: 11px; }
.settings-row input { width: 70px; padding: 8px 10px; border: 2px solid var(--border-light); border-radius: 8px; font-size: 14px; font-weight: 600; background: var(--bg-card); color: var(--text); text-align: center; outline: none; transition: all 0.2s; font-family: inherit; }
.settings-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }
body[data-theme="dark"] .settings-box { background: var(--bg-muted); }
body[data-theme="dark"] .settings-row input { background: var(--bg-card); border-color: var(--border); }

/* Info box */
.info-box { padding: 20px; background: var(--bg-soft); border-radius: 14px; border: 1px solid var(--border-light); }
.info-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.info-title i { color: var(--primary); }
.info-box p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0; }
.tips { margin-top: 14px; }
.tips-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.tips ul { list-style: none; padding: 0; margin: 0; }
.tips li { font-size: 13px; color: var(--text-secondary); padding: 4px 0; }
body[data-theme="dark"] .info-box { background: var(--bg-muted); border-color: var(--border); }

/* Sidebar */
.sidebar-section { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.sidebar-header { text-align: center; padding: 28px 20px !important; background: linear-gradient(135deg,#667eea 0%,#764ba2 100%) !important; border-color: transparent !important; }
.sidebar-header h1 { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.sidebar-header p { font-size: 0.82rem; color: rgba(255,255,255,0.85); }
body[data-theme="dark"] .sidebar-header { background: linear-gradient(135deg,#667eea 0%,#764ba2 100%) !important; }
.sidebar-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sidebar-title i { color: var(--primary); font-size: 0.9rem; }
.sidebar-tools { display: flex; flex-direction: column; gap: 8px; }
.sidebar-tool { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; transition: all 0.2s; text-decoration: none; background: var(--bg-soft); }
.sidebar-tool:hover { background: var(--primary-50); transform: translateX(3px); }
.sidebar-tool-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 16px; flex-shrink: 0; background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; }
.sidebar-tool-info { flex: 1; min-width: 0; }
.sidebar-tool-name { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.sidebar-tool-desc { font-size: 0.78rem; color: var(--text-muted); }
.ad-placeholder { width: 300px; height: 250px; flex-shrink: 0; margin: 0 auto; background: var(--bg-card); border: 2px dashed var(--border); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }
.ad-placeholder .ad-icon { font-size: 1.8rem; color: var(--text-muted); margin-bottom: 10px; opacity: 0.4; }
.ad-placeholder .ad-label { font-weight: 600; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.ad-placeholder .ad-size { font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; }

/* SEO */
.calc-seo { margin-top: 24px; padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.calc-seo p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* Dark mode */
body[data-theme="dark"] .sidebar-section { background: var(--bg-card); border-color: var(--border); }
body[data-theme="dark"] .sidebar-tool { background: var(--bg-muted); }
body[data-theme="dark"] .sidebar-tool:hover { background: var(--primary-50); }
body[data-theme="dark"] .ad-placeholder { background: var(--bg-card); border-color: var(--border); }
body[data-theme="dark"] .calc-seo { background: var(--bg-card); border-color: var(--border); }
body[data-theme="dark"] .tmr-card { background: var(--bg-card); border-color: var(--border); }

/* Responsive */
@media (max-width: 1024px) { .tmr-layout { grid-template-columns: 1fr 280px; gap: 20px; } }
@media (max-width: 860px) { .tmr-layout { grid-template-columns: 1fr; } .tmr-grid { grid-template-columns: 1fr; } .tmr-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 768px) {
  .tmr-card { padding: 20px; }
  .timer-circle { width: 220px; height: 220px; }
  .timer-time { font-size: 44px; }
  .timer-modes { flex-direction: column; }
}
@media (max-width: 640px) { .tmr-sidebar { grid-template-columns: 1fr; } }