/* ==========================================================================
   1. DESIGN SYSTEM VARIABLES & THEMES
   ========================================================================== */

:root {
  --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-arabic: 'Traditional Arabic', 'Amiri', 'Scheherazade', Georgia, serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  
  --sidebar-width: 280px;
  --topbar-height: 64px;
  --bottomnav-height: 68px;
  --max-content-width: 760px;
  
  /* Category Colors (Shared) */
  --prayer-color: #10b981;
  --meal-color: #f97316;
  --workout-color: #ef4444;
  --sleep-color: #8b5cf6;
  --work-color: #3b82f6;
  --height-color: #06b6d4;
  --stretch-color: #a855f7;
  --ibadah-color: #14b8a6;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg-app: #0C1418;
  --bg-card: #141E24;
  --bg-hover: #1C2730;
  --bg-elevated: #22303a;
  --bg-input: #10191F;
  
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #0C1418;
  
  --accent-teal: #2DD4BF;
  --accent-teal-hover: #14B8A6;
  --accent-teal-subtle: rgba(45, 212, 191, 0.1);
  --accent-teal-glow: rgba(45, 212, 191, 0.2);
  
  --accent-amber: #F59E0B;
  --accent-amber-hover: #D97706;
  --accent-amber-subtle: rgba(245, 158, 11, 0.1);
  
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  
  --glass-bg: rgba(20, 30, 36, 0.85);
  --glass-border: rgba(255, 255, 255, 0.06);
  --overlay-bg: rgba(6, 10, 12, 0.8);
  --scrollbar-thumb: #22303a;
}

/* --- Light Theme --- */
[data-theme="light"] {
  --bg-app: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-hover: #F5EFE7;
  --bg-elevated: #EFE9E0;
  --bg-input: #F3ECE2;
  
  --border-subtle: rgba(0, 0, 0, 0.03);
  --border-default: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.12);
  
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --text-inverse: #FFFFFF;
  
  --accent-teal: #0F766E;
  --accent-teal-hover: #115E59;
  --accent-teal-subtle: rgba(15, 118, 110, 0.08);
  --accent-teal-glow: rgba(15, 118, 110, 0.15);
  
  --accent-amber: #B45309;
  --accent-amber-hover: #92400E;
  --accent-amber-subtle: rgba(180, 83, 9, 0.08);
  
  --success: #059669;
  --error: #DC2626;
  --warning: #D97706;
  
  --glass-bg: rgba(250, 247, 242, 0.9);
  --glass-border: rgba(0, 0, 0, 0.05);
  --overlay-bg: rgba(40, 35, 30, 0.4);
  --scrollbar-thumb: #E5DED3;
}

/* ==========================================================================
   2. BASE STYLES & RESET
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

button {
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
}

input, select, textarea {
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   3. APP CONTAINER LAYOUT
   ========================================================================== */

#app {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}

/* --- Sidebar (Desktop) --- */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--bg-card);
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 100;
  transition: transform var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
}

.sidebar-brand {
  height: var(--topbar-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--accent-teal-subtle);
  color: var(--accent-teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -1px;
}

.sidebar-nav {
  flex: 1;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.nav-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

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

.nav-btn:hover svg {
  transform: translateX(2px);
}

.nav-btn.active {
  background: var(--accent-teal-subtle);
  color: var(--accent-teal);
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* --- Main Viewport --- */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* --- Top Bar --- */
.topbar {
  height: var(--topbar-height);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* --- View Container --- */
#view-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Navigation Views --- */
.view {
  display: none;
  width: 100%;
  max-width: var(--max-content-width);
  animation: view-fade-in var(--transition-normal) forwards;
}

.view.active {
  display: block;
}

@keyframes view-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Bottom Nav (Mobile) --- */
#bottom-nav {
  display: none;
  height: var(--bottomnav-height);
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}

.bnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.bnav-btn svg {
  width: 22px;
  height: 22px;
  transition: transform var(--transition-fast);
}

.bnav-btn.active {
  color: var(--accent-teal);
  font-weight: 600;
}

.bnav-btn.active svg {
  transform: translateY(-2px);
}

/* ==========================================================================
   4. TODAY VIEW UTILITIES & INTERFACES
   ========================================================================== */

/* --- Date Selector --- */
.date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.date-arrow {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.date-arrow:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.date-arrow svg {
  width: 18px;
  height: 18px;
}

.date-current {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.date-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-teal);
}

.date-full {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* --- Hero Focus Card --- */
.focus-card {
  width: 100%;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.focus-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-teal-subtle) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-teal-subtle);
  color: var(--accent-teal);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.focus-badge svg {
  width: 12px;
  height: 12px;
}

.focus-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}

.focus-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.focus-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 14px;
}

.focus-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.focus-time svg {
  width: 16px;
  height: 16px;
}

.focus-next {
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
}

.focus-next-label {
  font-weight: 700;
  color: var(--text-secondary);
}

/* --- Prayer Row --- */
.prayer-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
  padding: 4px 0;
}

.prayer-row::-webkit-scrollbar {
  display: none; /* Hide scrollbar on Chrome/Safari */
}

.prayer-pill {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: all var(--transition-fast);
}

.prayer-pill.done {
  border-color: var(--prayer-color);
  background: rgba(16, 185, 129, 0.05);
}

.prayer-pill.done .prayer-icon {
  background: var(--prayer-color);
  color: var(--text-inverse);
}

.prayer-pill.pending {
  border-color: var(--border-default);
}

.prayer-pill.pending .prayer-icon {
  background: var(--bg-input);
  color: var(--text-muted);
}

.prayer-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.prayer-icon svg {
  width: 12px;
  height: 12px;
}

.prayer-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.prayer-time {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- Status mini-strip --- */
.stats-strip {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
}

.stat-mini {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-mini-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-mini-icon svg {
  width: 16px;
  height: 16px;
}

.stat-mini-value {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-mini-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}


/* ==========================================================================
   4b. LIVE NUTRITION SUMMARY GRID
   ========================================================================== */

.nutrition-live {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.nutrition-live-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}

.nutrition-live-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nutrition-live-title svg {
  width: 16px;
  height: 16px;
  color: var(--accent-teal);
}

.nutrition-live-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.nutri-tile {
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  transition: all var(--transition-fast);
}

.nutri-tile:hover {
  border-color: var(--border-strong);
}

.nutri-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nutri-icon svg {
  width: 15px;
  height: 15px;
}

.nutri-icon.calories { background: rgba(249, 115, 22, 0.12); color: var(--meal-color); }
.nutri-icon.protein { background: rgba(239, 68, 68, 0.12); color: var(--workout-color); }
.nutri-icon.calcium { background: rgba(6, 182, 212, 0.12); color: var(--height-color); }
.nutri-icon.water { background: rgba(59, 130, 246, 0.12); color: var(--work-color); }

.nutri-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nutri-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.nutri-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}

.nutri-target {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nutri-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.nutri-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.water-tile {
  position: relative;
}

.water-add-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-teal);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px var(--accent-teal-glow);
}

.water-add-btn:hover {
  transform: scale(1.1);
  background: var(--accent-teal-hover);
}

.water-add-btn svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

/* ==========================================================================
   5. COLLAPSIBLE VIEW SECTIONS (NATIVE CARD DESIGNS)
   ========================================================================== */

.section-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.section-header {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.section-header-left, .section-header-right {
  display: flex;
  align-items: center;
}

.section-header-left {
  gap: 16px;
  flex: 1;
}

.section-header-right {
  gap: 12px;
}

.section-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-icon svg {
  width: 18px;
  height: 18px;
}

.section-icon.meal { background: rgba(249, 115, 22, 0.08); color: var(--meal-color); }
.section-icon.workout { background: rgba(239, 68, 68, 0.08); color: var(--workout-color); }
.section-icon.height { background: rgba(6, 182, 212, 0.08); color: var(--height-color); }
.section-icon.stretch { background: rgba(168, 85, 247, 0.08); color: var(--stretch-color); }
.section-icon.food-totals { background: rgba(245, 158, 11, 0.08); color: var(--accent-amber); }
.section-icon.timeline { background: rgba(59, 130, 246, 0.08); color: var(--work-color); }

.section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-summary {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mini-progress {
  width: 48px;
  height: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mini-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
}

.chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

/* Expansion Transitions */
.section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card.open .section-body {
  max-height: none;
  border-top: 1px solid var(--border-subtle);
  overflow: visible;
}

.section-card.open .chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   6. INNER ITEM INTERFACES (MEALS, WORKOUTS, TIMELINE)
   ========================================================================== */

/* --- Universal Check Buttons --- */
.check-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all var(--transition-fast);
}

.check-btn svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.check-btn:hover {
  border-color: var(--accent-teal);
}

.check-btn.checked {
  background: var(--success);
  border-color: var(--success);
  color: var(--text-inverse);
}

/* --- Meals --- */
.meal-block {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.meal-block:last-child {
  border-bottom: none;
}

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

.meal-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-teal);
  background: var(--accent-teal-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.meal-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.meal-status {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.meal-status.done {
  color: var(--success);
}

.meal-status svg {
  width: 14px;
  height: 14px;
}

.meal-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0;
}

.meal-item-info {
  flex: 1;
}

.meal-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.meal-item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.meal-item.checked .meal-item-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Serving Adjuster */
.serving-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.serving-btn {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

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

.serving-btn svg {
  width: 10px;
  height: 10px;
}

.serving-value {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.add-extra-btn {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-teal);
  margin-top: 6px;
}

.add-extra-btn svg {
  width: 14px;
  height: 14px;
}

/* --- Exercises (Workout Lists) --- */
.exercise-list {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
}

.exercise-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.exercise-row:last-child {
  border-bottom: none;
}

.exercise-info {
  flex: 1;
}

.exercise-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exercise-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.exercise-row.checked .exercise-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.info-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

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

.info-btn svg {
  width: 16px;
  height: 16px;
}

/* Progressive overload box */
.overload-tip {
  margin: 0 20px 20px;
  padding: 14px 16px;
  background: var(--accent-amber-subtle);
  border: 1px dashed var(--accent-amber);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--accent-amber);
  font-size: 0.83rem;
  font-weight: 600;
}

.overload-tip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Event substitute note badge */
.event-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  color: var(--accent-amber);
  font-size: 0.76rem;
  font-weight: 600;
}

.event-note svg {
  width: 12px;
  height: 12px;
}

/* Compact specific tweaks */
.exercise-list.compact .exercise-row {
  padding: 8px 0;
}

.show-more-btn {
  align-self: center;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* ==========================================================================
   7. COMPANION REMINDER CARD (ISLAMIC CONTENT)
   ========================================================================== */

.islamic-card {
  width: 100%;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(20, 184, 166, 0.05) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.islamic-header {
  margin-bottom: 16px;
}

.islamic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--ibadah-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.islamic-badge svg {
  width: 12px;
  height: 12px;
}

.islamic-arabic {
  font-family: var(--font-arabic);
  font-size: 1.65rem;
  text-align: right;
  line-height: 1.6;
  color: var(--accent-teal);
  margin-bottom: 14px;
}

.islamic-translation {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 6px;
}

.islamic-source {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.islamic-link {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  gap: 6px;
}

.islamic-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.islamic-link:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   8. COMPACT RUNNING FOOD TOTALS
   ========================================================================== */

.food-total-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.food-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
}

.food-total-row.done {
  border-color: rgba(16, 185, 129, 0.15);
  background: rgba(16, 185, 129, 0.03);
}

.food-total-row.partial {
  border-color: rgba(245, 158, 11, 0.15);
}

.food-total-row.pending {
  opacity: 0.6;
}

.food-total-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.food-total-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.food-total-row.done .food-total-value {
  color: var(--success);
}

/* ==========================================================================
   9. CHRONOLOGICAL daily THREAD (TIMELINE)
   ========================================================================== */

.timeline {
  padding: 16px 20px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border-default);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 3px solid var(--border-strong);
  z-index: 2;
  margin-top: 4px;
  transition: all var(--transition-fast);
}

.timeline-item.done .timeline-dot {
  background: var(--success);
  border-color: var(--success);
}

.timeline-item.current .timeline-dot {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 4px var(--accent-teal-subtle);
}

.timeline-time {
  min-width: 60px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.timeline-item.gap {
  opacity: 0.6;
}

.timeline-item.gap .timeline-dot {
  border-style: dashed;
  background: transparent;
}

.timeline-item.gap .timeline-title {
  font-style: italic;
  font-weight: 400;
}

/* ==========================================================================
   10. FLOATING QUICK NOTE CONTAINER
   ========================================================================== */

.quick-note-bar {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.quick-note-bar svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.quick-note-bar input {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.quick-note-bar input::placeholder {
  color: var(--text-muted);
}

/* ==========================================================================
   11. PROGRESS, PLAN, & MORE VIEWS
   ========================================================================== */

/* Page Headers */
.page-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Stat Card Grids */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
  line-height: 1.2;
}

.stat-card-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
}

.stat-card-change.positive { color: var(--success); }
.stat-card-change.negative { color: var(--error); }
.stat-card-change.neutral { color: var(--text-muted); }

.stat-card-change svg {
  width: 12px;
  height: 12px;
}

/* Swipeable Charts Layout */
.chart-wrapper {
  width: 100%;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: none;
}

.chart-wrapper::-webkit-scrollbar {
  display: none;
}

.chart-card {
  flex-shrink: 0;
  width: 290px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.chart-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.chart-placeholder {
  height: 160px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Tabs */
.tab-bar {
  display: flex;
  width: 100%;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Plan Lists */
.plan-section {
  width: 100%;
}

.plan-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.plan-section-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

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

.plan-item {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.plan-item-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-teal);
  background: var(--accent-teal-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.plan-item-body {
  flex: 1;
}

.plan-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.plan-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* More Page Menu */
.more-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.more-item {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.more-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.more-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-item-icon svg {
  width: 18px;
  height: 18px;
}

.more-item-body {
  flex: 1;
}

.more-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.more-item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.more-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.more-item.danger {
  border-color: rgba(239, 68, 68, 0.15);
}

.more-item.danger .more-item-icon {
  background: rgba(239, 68, 68, 0.08);
  color: var(--error);
}

.more-item.danger .more-item-title {
  color: var(--error);
}

/* ==========================================================================
   12. INTERACTIVE GENERAL COMPONENTS & UTILITIES
   ========================================================================== */

/* Universal Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--accent-teal);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--accent-teal-hover);
}

.btn-secondary {
  background: var(--accent-teal-subtle);
  color: var(--accent-teal);
}

.btn-secondary:hover {
  background: rgba(45, 212, 191, 0.15);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn svg {
  width: 14px;
  height: 14px;
}

/* Icon Buttons */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

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

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.ghost-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  width: 100%;
}

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

.ghost-btn svg {
  width: 18px;
  height: 18px;
}

/* Table Wrappers */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.data-table th {
  padding: 12px 16px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tag-prayer { background: rgba(16, 185, 129, 0.08); color: var(--prayer-color); }
.tag-food { background: rgba(249, 115, 22, 0.08); color: var(--meal-color); }
.tag-exercise { background: rgba(239, 68, 68, 0.08); color: var(--workout-color); }
.tag-sleep { background: rgba(139, 92, 246, 0.08); color: var(--sleep-color); }
.tag-work { background: rgba(59, 130, 246, 0.08); color: var(--work-color); }
.tag-height { background: rgba(6, 182, 212, 0.08); color: var(--height-color); }
.tag-stretch { background: rgba(168, 85, 247, 0.08); color: var(--stretch-color); }

/* ==========================================================================
   13. ADAPTIVE MEDIA QUERIES (STRICT RESPONSIVENESS)
   ========================================================================== */


@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }
  
  #main {
    margin-left: 0;
  }
}


@media (max-width: 768px) {
  #bottom-nav {
    display: flex;
  }
  
  #view-container {
    padding: 16px 16px calc(var(--bottomnav-height) + 24px);
  }
  
  .page-title {
    font-size: 1.15rem;
  }
  
  .focus-title {
    font-size: 1.4rem;
  }
  
  .chart-card {
    width: 260px;
  }

    .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nutri-value {
    font-size: 1.2rem;
  }

}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  

    .prayer-row {
    gap: 5px;
  }
  
  .prayer-pill {
    padding: 8px 2px;
    gap: 4px;
  }
  
  .prayer-icon {
    width: 20px;
    height: 20px;
  }
  
  .prayer-icon svg {
    width: 10px;
    height: 10px;
  }
  
  .prayer-name {
    font-size: 0.72rem;
    font-weight: 700;
  }
  
  .prayer-time {
    font-size: 0.6rem;
    letter-spacing: -0.02em;
  }

  .stats-strip {
    flex-direction: column;
    gap: 8px;
  }
  
  .focus-card {
    padding: 18px;
  }
  
  .focus-title {
    font-size: 1.25rem;
  }
  
  .islamic-arabic {
    font-size: 1.4rem;
  }


    .nutri-tile {
    padding: 12px 10px;
    gap: 8px;
  }
  
  .nutri-value {
    font-size: 1.15rem;
  }
  
  .nutri-target {
    font-size: 0.68rem;
  }

}


/* ==========================================================================
   14. LOGIN SCREEN
   ========================================================================== */

.login-screen {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--bg-app);
}

.login-screen.active {
  display: flex;
}

.login-container {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.login-brand .brand-mark.large {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
}

.login-brand .brand-mark.large svg {
  width: 28px;
  height: 28px;
}

.login-brand h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.login-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px var(--accent-teal-subtle);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.btn-full {
  width: 100%;
}

.login-error {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: 0.85rem;
  text-align: center;
}

/* ==========================================================================
   15. UTILITIES: HIDDEN, SKELETONS, TOAST, MODAL, SAVE INDICATOR
   ========================================================================== */

.hidden {
  display: none !important;
}

/* Skeleton loader */
.skeleton-loader {
  width: 100%;
  max-width: var(--max-content-width);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-block {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-hover) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: calc(var(--bottomnav-height) + 20px);
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

@media (min-width: 769px) {
  #toast-container {
    bottom: 20px;
  }
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s forwards;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.success svg { color: var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.error svg { color: var(--error); }
.toast.info { border-left: 3px solid var(--accent-teal); }
.toast.info svg { color: var(--accent-teal); }

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

@keyframes toast-out {
  to { opacity: 0; transform: translateY(20px); }
}

/* Save Indicator */
.save-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.save-indicator.saving {
  background: var(--accent-teal-subtle);
  color: var(--accent-teal);
  opacity: 1;
}

.save-indicator.saved {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  opacity: 1;
}

.save-indicator.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  opacity: 1;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade 0.2s ease;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modal-slide 0.3s ease;
}

@keyframes modal-slide {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Empty state */
.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.empty-state-sub {
  font-size: 0.85rem;
}