@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a24;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --accent-primary: #6366f1;
  --accent-primary-hover: #818cf8;
  --accent-primary-glow: rgba(99, 102, 241, 0.3);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.3);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.3);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.3);
  
  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --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 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--accent-primary-glow);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

.light {
  --bg-primary: #fafafa;
  --bg-secondary: #f4f4f5;
  --bg-tertiary: #e4e4e7;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8fa;
  
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* App Layout */
.app {
  min-height: 100vh;
  display: flex;
  background: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse at top, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
}

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 32px 40px;
  min-height: 100vh;
}

.main-content.mobile {
  margin-left: 0;
  padding: 20px 16px 100px;
}

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

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-primary), #a855f7);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 20px var(--accent-primary-glow);
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

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

.nav-item.active {
  background: linear-gradient(135deg, var(--accent-primary), #a855f7);
  color: white;
  box-shadow: 0 4px 20px var(--accent-primary-glow);
}

.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.nav-indicator {
  position: absolute;
  right: 12px;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
}

.stat-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-mini .stat-value {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-mini .stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
}

.mobile-nav-item.active {
  color: var(--accent-primary);
  background: var(--accent-primary-glow);
}

.mobile-nav-icon {
  font-size: 20px;
}

.mobile-nav-label {
  font-size: 10px;
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-base);
}

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

.card-glow {
  box-shadow: var(--shadow-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-md {
  padding: 12px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #a855f7);
  color: white;
  box-shadow: 0 4px 16px var(--accent-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-primary-glow);
}

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

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

.btn-success {
  background: var(--success);
  color: white;
  box-shadow: 0 4px 16px var(--success-glow);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--success-glow);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Input */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.input {
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.input::placeholder {
  color: var(--text-tertiary);
}

/* Avatar */
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  background: var(--avatar-color, var(--accent-primary));
  flex-shrink: 0;
}

.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-md { width: 40px; height: 40px; font-size: 15px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl { width: 72px; height: 72px; font-size: 26px; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

/* Chip */
.chip {
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.chip-selected {
  background: var(--chip-color, var(--accent-primary));
  border-color: transparent;
  color: white;
}

/* Progress */
.progress {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 100px;
  transition: width var(--transition-slow);
}

/* Page Styles */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Dashboard */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--accent-primary), #a855f7);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: white;
}

.dashboard-greeting h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.dashboard-greeting p {
  opacity: 0.85;
  font-size: 15px;
}

.dashboard-gauge {
  flex-shrink: 0;
}

.gauge-container {
  position: relative;
  width: 140px;
  height: 140px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
}

.gauge-progress {
  transition: stroke-dashoffset 1s ease;
}

.gauge-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.gauge-label {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

.ai-observation {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
}

.ai-observation-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--warning), #f97316);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.ai-observation-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--warning);
  display: block;
  margin-bottom: 4px;
}

.ai-observation-content p {
  color: var(--text-secondary);
  font-style: italic;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--stat-color, var(--border-hover));
  box-shadow: 0 0 20px color-mix(in srgb, var(--stat-color) 20%, transparent);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--stat-color, var(--accent-primary)) 15%, transparent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--stat-color, var(--accent-primary));
}

.stat-card-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.shame-hall {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), transparent);
}

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

.shame-icon {
  color: var(--danger);
  font-size: 20px;
}

.shame-hall h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--danger);
}

.shame-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shame-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.shame-item-name {
  font-weight: 600;
}

.shame-item-time {
  font-size: 12px;
  color: var(--danger);
}

/* Chores Page */
.chores-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filters-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.filter-chips {
  display: flex;
  gap: 8px;
}

.chores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* Chore Card */
.chore-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-base);
}

.chore-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.chore-card-overdue {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), transparent);
}

.chore-card-header {
  margin-bottom: 16px;
}

.chore-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.chore-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.chore-priority-badge {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.chore-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.chore-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.chore-assignees {
  display: flex;
  margin-right: auto;
}

.chore-assignees .avatar {
  margin-left: -8px;
  border: 2px solid var(--bg-card);
}

.chore-assignees .avatar:first-child {
  margin-left: 0;
}

.chore-due, .chore-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.chore-due.overdue {
  color: var(--danger);
  font-weight: 600;
}

.chore-insult {
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-style: italic;
  color: var(--danger);
  margin-bottom: 16px;
}

.chore-insult-quote {
  font-size: 18px;
  opacity: 0.5;
}

.chore-card-actions {
  display: flex;
  gap: 8px;
}

.chore-action-btn {
  flex: 1;
}

.chore-action-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chore-action-icon:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.chore-action-icon.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: var(--danger);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

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

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--danger);
  color: white;
}

.modal-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.category-btn {
  padding: 12px 8px;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

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

.category-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.priority-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.priority-btn {
  padding: 10px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.priority-btn.selected {
  color: white;
}

.assignee-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assignee-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.assignee-btn.selected {
  border-color: var(--accent-primary);
  background: var(--accent-primary-glow);
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding-top: 10px;
}

.modal-actions .btn {
  flex: 1;
}

/* Calendar */
.calendar-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.calendar-nav-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.calendar-title {
  font-size: 24px;
  font-weight: 700;
  min-width: 200px;
  text-align: center;
}

.calendar-card {
  overflow: hidden;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 12px;
}

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

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

.calendar-day:not(.empty):hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.calendar-day.today {
  background: var(--accent-primary-glow);
  border-color: var(--accent-primary);
}

.calendar-day.selected {
  background: var(--accent-primary);
  color: white;
}

.calendar-day-number {
  font-weight: 600;
  font-size: 14px;
}

.calendar-day-indicator {
  margin-top: 4px;
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.indicator-dot.normal {
  background: var(--success);
}

.indicator-dot.overdue {
  background: var(--danger);
}

.calendar-details h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.calendar-chores-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-chore-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.calendar-chore-icon {
  font-size: 18px;
}

.calendar-chore-name {
  flex: 1;
  font-weight: 500;
}

.calendar-empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: 20px;
}

/* Leaderboard */
.leaderboard-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  padding: 40px 20px;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.podium-place.first {
  order: 2;
}

.podium-place.second {
  order: 1;
}

.podium-place.third {
  order: 3;
}

.podium-crown {
  font-size: 32px;
  color: #fbbf24;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.podium-medal {
  font-size: 24px;
}

.podium-medal.gold {
  color: #fbbf24;
}

.podium-name {
  font-weight: 700;
  font-size: 16px;
}

.podium-points {
  font-size: 14px;
  color: var(--text-tertiary);
}

.achievements-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.achievement {
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.achievement.locked {
  opacity: 0.4;
}

.achievement.earned {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.achievement-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.achievement-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.achievement-desc {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Bulk Add */
.bulk-add-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bulk-input-card label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.bulk-textarea {
  width: 100%;
  height: 180px;
  padding: 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  resize: none;
  transition: all var(--transition-fast);
}

.bulk-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.bulk-parse-btn {
  margin-top: 16px;
  width: 100%;
}

.processing-state {
  text-align: center;
  padding: 60px 20px;
}

.processing-icon {
  font-size: 48px;
  animation: pulse 1.5s ease-in-out infinite;
  color: var(--accent-primary);
}

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

.processing-state p {
  margin-top: 16px;
  color: var(--text-tertiary);
}

.parsed-tasks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workload-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.workload-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workload-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.workload-bar-container {
  flex: 1;
}

.workload-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.tasks-table-card {
  overflow: hidden;
}

.tasks-table-wrapper {
  overflow-x: auto;
}

.tasks-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.tasks-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.tasks-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.table-input {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.table-input:focus {
  outline: none;
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
}

.table-input-small {
  width: 80px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
}

.table-select {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
}

.table-delete-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.table-delete-btn:hover {
  color: var(--danger);
}

.bulk-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Settings */
.settings-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-section h3 {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.member-name {
  flex: 1;
  font-weight: 500;
}

.member-remove {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.member-remove:hover {
  color: var(--danger);
}

.add-member {
  display: flex;
  gap: 12px;
}

.add-member .input {
  flex: 1;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.setting-label {
  font-weight: 500;
}

.setting-value {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-left: 12px;
}

.range-slider {
  width: 160px;
  height: 6px;
  background: linear-gradient(to right, #10b981, #f59e0b, #ef4444);
  border-radius: 100px;
  appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--bg-tertiary);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  padding: 4px;
  transition: all var(--transition-fast);
}

.toggle-switch.active {
  background: var(--accent-primary);
}

.toggle-thumb {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.toggle-switch.active .toggle-thumb {
  transform: translateX(24px);
}

.export-buttons {
  display: flex;
  gap: 12px;
}

.danger-zone {
  padding-top: 20px;
  border-top: 1px solid var(--danger);
}

.danger-zone h4 {
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.delete-confirm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delete-confirm p {
  font-size: 14px;
  color: var(--text-secondary);
}

.delete-input {
  border-color: var(--danger);
}

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

/* Celebration */
.celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  animation: fadeIn 0.3s ease;
}

.celebration-content {
  text-align: center;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.celebration-icon {
  font-size: 80px;
  color: #fbbf24;
  animation: spin 1s ease;
}

@keyframes spin {
  from { transform: rotate(0deg) scale(0); }
  to { transform: rotate(360deg) scale(1); }
}

.celebration-message {
  font-size: 24px;
  font-weight: 700;
  margin-top: 20px;
  color: white;
}

.celebration-points {
  font-size: 20px;
  color: var(--success);
  font-weight: 700;
  margin-top: 12px;
}

/* Footer */
.app-footer {
  margin-top: 40px;
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.app-footer p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.app-footer a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
}

.app-footer a:hover {
  text-decoration: underline;
}

.footer-note {
  font-size: 11px;
  margin-top: 4px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

/* Selection */
::selection {
  background: var(--accent-primary);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .chores-grid {
    grid-template-columns: 1fr;
  }
  
  .podium {
    gap: 12px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .priority-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}