/* ========================================
   工作台 V2 - Modern Design System
   ======================================== */

:root {
  /* Colors */
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --bg-tertiary: #27272a;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent-violet: #8b5cf6;
  --accent-violet-light: #a78bfa;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  
  /* Spacing */
  --sidebar-w: 280px;
  --header-h: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-glow-violet: 0 0 40px rgba(139,92,246,0.3);
  --shadow-glow-pink: 0 0 40px rgba(236,72,153,0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========================================
   Layout
   ======================================== */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow-violet);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* User Profile Card */
.user-card {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
}

.user-avatar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-secondary);
  border-radius: 50%;
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.user-status {
  font-size: 12px;
  color: var(--text-muted);
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 16px;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(139,92,246,0.15);
  color: var(--accent-violet-light);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent-violet);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-badge {
  margin-left: auto;
  background: var(--accent-violet);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.energy-level {
  display: flex;
  align-items: center;
  gap: 12px;
}

.energy-icon {
  font-size: 20px;
}

.energy-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.energy-fill {
  height: 100%;
  background: var(--gradient-success);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.energy-text {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 40px;
  text-align: right;
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* Header */
.main-header {
  height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-greeting {
  font-size: 13px;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 18px;
}

.header-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.focus-mode-btn {
  padding: 0 16px;
  width: auto;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.focus-mode-btn.active {
  background: var(--accent-violet);
  border-color: var(--accent-violet);
  color: white;
}

/* Page Content */
.page-content {
  padding: 32px;
}

/* ========================================
   Cards
   ======================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--border-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-icon {
  font-size: 18px;
}

/* ========================================
   Hero Stats Section
   ======================================== */

.hero-section {
  margin-bottom: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

/* Main Progress Card */
.progress-main {
  background: linear-gradient(135deg, rgba(139,92,246,0.2) 0%, rgba(236,72,153,0.2) 100%);
  border: 1px solid rgba(139,92,246,0.3);
  position: relative;
  overflow: hidden;
}

.progress-main::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.progress-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.progress-date {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.progress-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.progress-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.progress-ring-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.progress-ring {
  position: relative;
  width: 140px;
  height: 140px;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 10;
}

.progress-ring-fill {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 1s ease;
}

.progress-ring-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-percent {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.progress-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.progress-breakdown {
  flex: 1;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.breakdown-color {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.breakdown-label {
  flex: 1;
  font-size: 13px;
}

.breakdown-value {
  font-size: 13px;
  font-weight: 600;
}

/* Stat Cards */
.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-card .card-header {
  margin-bottom: auto;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.stat-icon.pomodoro { background: rgba(239,68,68,0.2); }
.stat-icon.tasks { background: rgba(16,185,129,0.2); }
.stat-icon.time { background: rgba(59,130,246,0.2); }
.stat-icon.streak { background: rgba(245,158,11,0.2); }

.stat-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.stat-trend.up {
  background: rgba(16,185,129,0.15);
  color: var(--accent-emerald);
}

.stat-trend.down {
  background: rgba(239,68,68,0.15);
  color: var(--accent-rose);
}

/* ========================================
   Pomodoro Timer
   ======================================== */

.pomodoro-section {
  margin-bottom: 32px;
}

.pomodoro-card {
  display: flex;
  align-items: center;
  gap: 40px;
}

.pomodoro-display {
  position: relative;
  width: 160px;
  height: 160px;
}

.pomodoro-ring {
  width: 100%;
  height: 100%;
}

.pomodoro-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.05);
  stroke-width: 8;
}

.pomodoro-ring-fill {
  fill: none;
  stroke: var(--accent-violet);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 10px rgba(139,92,246,0.5));
}

.pomodoro-time {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.pomodoro-minutes {
  font-size: 42px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pomodoro-seconds {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
}

.pomodoro-status {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.pomodoro-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pomodoro-presets {
  display: flex;
  gap: 8px;
}

.preset-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.preset-btn.active {
  background: rgba(139,92,246,0.2);
  border-color: var(--accent-violet);
  color: var(--accent-violet-light);
}

.pomodoro-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow-violet);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 50px rgba(139,92,246,0.5);
}

.btn-secondary {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.pomodoro-sessions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 4px;
}

.session-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
}

.session-dot.completed {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.session-dot.current {
  background: var(--accent-violet);
  border-color: var(--accent-violet);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* ========================================
   Learning Paths
   ======================================== */

.paths-section {
  margin-bottom: 32px;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.path-card.ai::before { background: var(--accent-violet); }
.path-card.xz::before { background: var(--accent-pink); }
.path-card.sl::before { background: var(--accent-emerald); }
.path-card.js::before { background: var(--accent-amber); }

.path-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.path-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.path-card.ai .path-icon { background: rgba(139,92,246,0.15); }
.path-card.xz .path-icon { background: rgba(236,72,153,0.15); }
.path-card.sl .path-icon { background: rgba(16,185,129,0.15); }
.path-card.js .path-icon { background: rgba(245,158,11,0.15); }

.path-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.path-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.path-progress {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.path-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.path-card.ai .path-progress-fill { background: var(--accent-violet); }
.path-card.xz .path-progress-fill { background: var(--accent-pink); }
.path-card.sl .path-progress-fill { background: var(--accent-emerald); }
.path-card.js .path-progress-fill { background: var(--accent-amber); }

.path-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* ========================================
   Todo List
   ======================================== */

.todo-section {
  margin-bottom: 32px;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.todo-item:hover {
  background: var(--bg-card-hover);
}

.todo-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.todo-checkbox:hover {
  border-color: var(--accent-violet);
}

.todo-checkbox.checked {
  background: var(--accent-violet);
  border-color: var(--accent-violet);
}

.todo-checkbox.checked::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.todo-text {
  flex: 1;
  font-size: 14px;
}

.todo-text.done {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.todo-tag.ai { background: rgba(139,92,246,0.15); color: var(--accent-violet-light); }
.todo-tag.xz { background: rgba(236,72,153,0.15); color: var(--accent-pink); }
.todo-tag.sl { background: rgba(16,185,129,0.15); color: var(--accent-emerald); }
.todo-tag.js { background: rgba(245,158,11,0.15); color: var(--accent-amber); }

.todo-delete {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.15s ease;
}

.todo-item:hover .todo-delete {
  opacity: 1;
}

.todo-delete:hover {
  background: rgba(239,68,68,0.15);
  color: var(--accent-rose);
}

/* ========================================
   News Section
   ======================================== */

.news-section {
  margin-bottom: 32px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.news-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.news-info {
  flex: 1;
}

.news-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.news-time {
  font-size: 12px;
  color: var(--text-muted);
}

.news-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-tag {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.news-tag:hover {
  background: rgba(139,92,246,0.2);
  color: var(--accent-violet-light);
}

/* ========================================
   Weekly Chart
   ======================================== */

.chart-section {
  margin-bottom: 32px;
}

.chart-container {
  padding: 20px 0;
}

.bar-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 200px;
  gap: 12px;
}

.chart-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chart-bar {
  width: 100%;
  max-width: 48px;
  border-radius: 8px 8px 0 0;
  transition: height 0.5s ease;
  position: relative;
  cursor: pointer;
}

.chart-bar:hover {
  filter: brightness(1.2);
}

.chart-bar::after {
  content: attr(data-hours);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.chart-bar:hover::after {
  opacity: 1;
}

.chart-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.chart-label.today {
  color: var(--accent-violet-light);
  font-weight: 600;
}

/* ========================================
   Focus Mode Overlay
   ======================================== */

.focus-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9,9,11,0.98);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.focus-overlay.active {
  display: flex;
}

.focus-content {
  text-align: center;
}

.focus-timer {
  font-size: 120px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.focus-status {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.focus-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.focus-exit {
  position: absolute;
  top: 32px;
  right: 32px;
}

/* ========================================
   Modals
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 28px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}

/* ========================================
   Empty States
   ======================================== */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 14px;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.3s ease forwards;
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1400px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .paths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-content {
    padding: 20px;
  }
  
  .paths-grid {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .pomodoro-card {
    flex-direction: column;
    text-align: center;
  }
}
