/* ============================================================
   AI Task NG — Main Stylesheet
   Design: Deep navy/indigo SaaS with electric accent
   ============================================================ */

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

/* ---- CSS Variables ---- */
:root {
  /* Brand palette */
  --primary:       #4f46e5;   /* indigo-600 */
  --primary-dark:  #3730a3;   /* indigo-800 */
  --primary-light: #818cf8;   /* indigo-400 */
  --accent:        #06b6d4;   /* cyan-500 */
  --accent-light:  #67e8f9;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;

  /* Neutrals */
  --bg:            #f8faff;
  --surface:       #ffffff;
  --border:        #e5e7f0;
  --text-primary:  #0f172a;
  --text-secondary:#64748b;
  --text-muted:    #94a3b8;

  /* Sidebar */
  --sidebar-bg:    #0f172a;
  --sidebar-w:     260px;
  --sidebar-hover: #1e293b;
  --sidebar-active:#4f46e5;

  /* Typography */
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;

  /* Spacing & radius */
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
  --shadow-sm:     0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:        0 4px 16px rgba(15,23,42,.08);
  --shadow-lg:     0 12px 40px rgba(15,23,42,.12);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ============================================================
   PUBLIC NAVBAR
   ============================================================ */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
}

.site-navbar .container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}

.nav-brand .brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: .9rem;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}

.nav-links .nav-link:hover {
  color: var(--primary);
  background: rgba(79,70,229,.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-toggler {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .4rem .6rem;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .875rem;
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,70,229,.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

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

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-sm { padding: .35rem .85rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .4rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form-control::placeholder { color: var(--text-muted); }

.form-control.form-control-lg { padding: .85rem 1.1rem; font-size: 1rem; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}
.input-icon-wrap .form-control { padding-left: 2.6rem; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-body { padding: 1.5rem; }
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-family: var(--font-display);
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}

.auth-left {
  width: 420px;
  min-height: 100vh;
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2.5rem;
  color: #fff;
  position: sticky;
  top: 0;
}

.auth-left .auth-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.auth-left .auth-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.auth-left .auth-sub {
  font-size: .95rem;
  opacity: .8;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.auth-features { list-style: none; padding: 0; margin: 0; width: 100%; }
.auth-features li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .9rem;
}
.auth-features li:last-child { border-bottom: none; }
.auth-features .feat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  overflow-y: auto;
}

.auth-box {
  width: 100%;
  max-width: 420px;
}

.auth-box .auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.auth-box .auth-subtitle {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: 2rem;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: .8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 40px);
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-footer-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--text-secondary);
}

/* OTP inputs */
.otp-group {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.otp-input {
  width: 50px;
  height: 58px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  color: var(--text-primary);
  font-family: var(--font-display);
}
.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* Password strength */
.pw-strength { margin-top: .5rem; }
.pw-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: .3rem;
}
.pw-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s, background .3s;
  width: 0%;
}
.pw-label { font-size: .75rem; color: var(--text-muted); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.sidebar-brand .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sidebar-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.sidebar-brand .brand-name small {
  display: block;
  font-size: .65rem;
  font-weight: 400;
  color: #64748b;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* User card inside sidebar */
.sidebar-user {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: .875rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-plan {
  font-size: .7rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Nav sections */
.sidebar-nav { flex: 1; padding: .75rem 0; }

.sidebar-section-label {
  font-size: .65rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 1rem 1.25rem .35rem;
}

.sidebar-nav a, .sidebar-nav .nav-item-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.25rem;
  color: #94a3b8;
  font-size: .875rem;
  font-weight: 500;
  border-radius: 0;
  transition: all .18s;
  text-decoration: none;
  position: relative;
  margin: 1px 0;
}

.sidebar-nav a .nav-icon { font-size: 1rem; flex-shrink: 0; }
.sidebar-nav a .nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 20px;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,.05);
  color: #e2e8f0;
}

.sidebar-nav a.active {
  background: rgba(79,70,229,.2);
  color: var(--primary-light);
  font-weight: 600;
}
.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--primary-light);
  border-radius: 0 3px 3px 0;
}

.sidebar-nav a.nav-danger { color: #f87171; }
.sidebar-nav a.nav-danger:hover { background: rgba(239,68,68,.15); color: #fca5a5; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.sidebar-credits {
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-sm);
  padding: .75rem;
  font-size: .8rem;
  color: #94a3b8;
}
.sidebar-credits .credit-amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
  display: block;
}
.sidebar-credits .credit-label { color: #64748b; font-size: .7rem; }
.credits-bar { height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; margin-top: .4rem; }
.credits-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--accent)); border-radius: 2px; }

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1039;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* Close button inside sidebar (mobile) */
.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: .25rem;
  line-height: 1;
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

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

/* Dashboard top bar */
.topbar {
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.75rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 900;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
}

.topbar-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .4rem .55rem;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1;
}

.topbar-page-title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: .95rem;
  transition: all .2s;
  position: relative;
}
.topbar-icon-btn:hover { background: var(--bg); color: var(--primary); }
.topbar-icon-btn .notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  border: 1.5px solid var(--surface);
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  font-family: var(--font-display);
}

.page-body {
  padding: 1.75rem;
  flex: 1;
}

/* ============================================================
   DASHBOARD COMPONENTS
   ============================================================ */

/* Page header */
.page-header { margin-bottom: 1.75rem; }
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 .25rem;
}
.page-header p { color: var(--text-secondary); margin: 0; font-size: .9rem; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-icon.blue   { background: rgba(79,70,229,.1);  color: var(--primary); }
.stat-icon.green  { background: rgba(16,185,129,.1); color: var(--success); }
.stat-icon.amber  { background: rgba(245,158,11,.1); color: var(--warning); }
.stat-icon.cyan   { background: rgba(6,182,212,.1);  color: var(--accent); }

.stat-info { flex: 1; }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .2rem;
}
.stat-label {
  font-size: .78rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stat-change {
  font-size: .75rem;
  margin-top: .2rem;
  font-weight: 600;
}
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.action-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.08), var(--shadow);
  transform: translateY(-2px);
  color: var(--text-primary);
}
.action-card .action-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}
.action-card .action-label { font-weight: 600; font-size: .85rem; }
.action-card .action-desc  { font-size: .75rem; color: var(--text-muted); }

/* Plan badge */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .7rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.plan-badge.free    { background: #f1f5f9; color: #64748b; }
.plan-badge.basic   { background: #dbeafe; color: #1d4ed8; }
.plan-badge.pro     { background: #ede9fe; color: #7c3aed; }
.plan-badge.premium { background: #fef3c7; color: #92400e; }

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-badge.active  { background: #d1fae5; color: #065f46; }
.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.blocked { background: #fee2e2; color: #991b1b; }

/* ============================================================
   RESPONSIVE: MOBILE
   ============================================================ */
@media (max-width: 991px) {
  .auth-left { display: none; }
  .auth-right { padding: 2rem 1.25rem; }

  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }

  .main-content { margin-left: 0; }

  .topbar-menu-btn { display: flex; }
  .topbar-page-title { display: none; }
}

@media (max-width: 767px) {
  .page-body { padding: 1rem; }
  .topbar { padding: 0 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: 1fr 1fr; }

  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex !important; }

  .site-navbar .nav-actions .btn-outline { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .otp-group { gap: .4rem; }
  .otp-input { width: 42px; height: 50px; font-size: 1.2rem; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.text-muted   { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-sm  { font-size: .85rem; }

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.sidebar::-webkit-scrollbar-thumb { background: #334155; }

/* Focus visible */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
