/* 
  ╔═══════════════════════════════════════════════════════════════════════════╗
  ║                                                                           ║
  ║        🎨 KLIKZO ELITE UI SYSTEM - PRODUCTION-READY DESIGN TOKENS        ║
  ║                                                                           ║
  ║        Built for SaaS premium aesthetic (Stripe / Vercel / Linear)        ║
  ║        Copy-paste ready. Zero dependencies. Pure CSS.                    ║
  ║                                                                           ║
  ╚═══════════════════════════════════════════════════════════════════════════╝
*/

/* ═══════════════════════════════════════════════════════════════════════════
   1. COLOR & DESIGN TOKENS (Root CSS Variables)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ─── PRIMARY COLORS ─── */
  --primary: #00D4FF;              /* Cyan neon (main accent) */
  --primary-light: #3A7BFF;        /* Blue (secondary accent) */
  --primary-dark: #0097CC;         /* Dark cyan */
  --primary-dim: rgba(0, 212, 255, 0.1);
  
  /* ─── SEMANTIC COLORS ─── */
  --success: #1CE6A8;              /* Green neon */
  --success-dim: rgba(28, 230, 168, 0.1);
  --danger: #FF6B7A;               /* Red soft */
  --danger-dim: rgba(255, 107, 122, 0.1);
  --warning: #FFCE57;              /* Gold */
  --warning-dim: rgba(255, 206, 87, 0.1);
  --info: #667EFF;                 /* Indigo */
  --info-dim: rgba(102, 126, 255, 0.1);
  
  /* ─── PURPLE ACCENT (Tertiary) ─── */
  --purple: #9B5CFF;               /* Purple highlight */
  --purple-dim: rgba(155, 92, 255, 0.1);
  
  /* ─── NEUTRALS (Dark Mode Premium) ─── */
  --bg-base: #0B0F1A;              /* App background */
  --bg-surface: #121826;           /* Surface (panels, sidebars) */
  --bg-card: #151C2F;              /* Card background */
  --bg-hover: #1a2236;             /* Hover state bg */
  --bg-elevated: #1e2336;          /* Elevated surfaces */
  
  /* ─── BORDERS & DIVIDERS ─── */
  --border: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.03);
  --border-strong: rgba(255, 255, 255, 0.1);
  
  /* ─── TEXT COLORS ─── */
  --text-primary: #F5F7FB;         /* Main text */
  --text-secondary: #A8B2C1;       /* Secondary text */
  --text-tertiary: #7A8494;        /* Tertiary text */
  --text-inverse: #0B0F1A;         /* Inverse (on light) */
  
  /* ─── 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 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.6);
  
  /* ─── GLOW EFFECTS ─── */
  --glow-primary: 0 0 20px rgba(0, 212, 255, 0.15);
  --glow-primary-strong: 0 0 40px rgba(0, 212, 255, 0.25);
  --glow-primary-heavy: 0 0 60px rgba(0, 212, 255, 0.35);
  --glow-success: 0 0 20px rgba(28, 230, 168, 0.15);
  --glow-danger: 0 0 20px rgba(255, 107, 122, 0.15);
  --glow-purple: 0 0 20px rgba(155, 92, 255, 0.15);
  
  /* ─── TRANSITIONS ─── */
  --transition-fast: 100ms ease-out;
  --transition-normal: 180ms ease-out;
  --transition-slow: 250ms ease-out;
  --transition-slower: 350ms ease-out;
  
  /* ─── SPACING ─── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  
  /* ─── BORDER RADIUS ─── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  
  /* ─── TYPOGRAPHY ─── */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Monaco', 'Fira Code', monospace;
  
  /* ─── FONT SIZES ─── */
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 13px;
  --text-lg: 15px;
  --text-xl: 17px;
  --text-2xl: 20px;
  --text-3xl: 24px;
  --text-4xl: 32px;
  
  /* ─── LINE HEIGHTS ─── */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. GLOBAL RESETS & BASE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  font-size: var(--text-base);
}

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

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  transition: background var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. TYPOGRAPHY SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */

h1, .h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-tight);
}

h4, .h4 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-tight);
}

h5, .h5 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-normal);
}

h6, .h6 {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. BUTTON SYSTEM (Primary, Secondary, Danger, Ghost)
   ═══════════════════════════════════════════════════════════════════════════ */

button, .btn {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

/* ─── PRIMARY BUTTON (Gradient + Glow) ─── */
.btn-primary, button.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-inverse);
  box-shadow: var(--glow-primary);
  font-weight: 600;
}

.btn-primary:hover, button.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary-strong);
}

.btn-primary:active, button.primary:active {
  transform: translateY(0) scale(0.97);
}

.btn-primary:disabled, button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── SECONDARY BUTTON (Border + Subtle Hover) ─── */
.btn-secondary, button.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover, button.secondary:hover {
  background: var(--primary-dim);
  box-shadow: var(--glow-primary);
  transform: translateY(-1px);
}

.btn-secondary:active, button.secondary:active {
  transform: translateY(0) scale(0.97);
}

/* ─── SUCCESS BUTTON ─── */
.btn-success, button.success {
  background: linear-gradient(135deg, var(--success) 0%, #00d878 100%);
  color: var(--text-inverse);
  box-shadow: var(--glow-success);
  font-weight: 600;
}

.btn-success:hover, button.success:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(28, 230, 168, 0.25);
}

/* ─── DANGER BUTTON ─── */
.btn-danger, button.danger {
  background: linear-gradient(135deg, var(--danger) 0%, #ff5568 100%);
  color: white;
  box-shadow: var(--glow-danger);
  font-weight: 600;
}

.btn-danger:hover, button.danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 107, 122, 0.25);
}

/* ─── GHOST BUTTON (Transparent) ─── */
.btn-ghost, button.ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

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

/* ─── SIZE VARIANTS ─── */
.btn-sm {
  padding: 8px 12px;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 12px 24px;
  font-size: var(--text-lg);
}

/* ─── ICON BUTTONS ─── */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. CARD SYSTEM (Premium, Elevated, Gradient, Interactive)
   ═══════════════════════════════════════════════════════════════════════════ */

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

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

/* ─── CARD WITH GLOW EFFECT ─── */
.card-glow {
  box-shadow: var(--glow-primary);
}

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

/* ─── CARD WITH GRADIENT BORDER ─── */
.card-gradient-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1px;
}

.card-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
}

.card-gradient-border > * {
  position: relative;
  z-index: 1;
}

/* ─── STAT CARD ─── */
.card-stat {
  padding: var(--space-xl);
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(155, 92, 255, 0.05) 100%);
}

.card-stat-value {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-md) 0;
  font-variant-numeric: tabular-nums;
}

.card-stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-stat-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. INPUT SYSTEM (Text, Select, Textarea with Glow Focus)
   ═══════════════════════════════════════════════════════════════════════════ */

input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='search'],
input[type='url'],
input[type='date'],
select,
textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  transition: all var(--transition-normal);
}

input[type='text']::placeholder,
input[type='email']::placeholder,
input[type='password']::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
}

input[type='text']:focus,
input[type='email']:focus,
input[type='password']:focus,
input[type='number']:focus,
input[type='search']:focus,
input[type='url']:focus,
input[type='date']:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

/* ─── INPUT VARIANTS ─── */
.input-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
}

.input-lg {
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--text-lg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. TABLE SYSTEM (Modern, Dark, Hover Highlight)
   ═══════════════════════════════════════════════════════════════════════════ */

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

thead {
  background-color: rgba(0, 212, 255, 0.05);
  border-bottom: 1px solid var(--border);
}

th {
  padding: var(--space-lg);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

tbody tr {
  transition: background-color var(--transition-normal);
}

tbody tr:hover {
  background-color: var(--bg-hover);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. BADGE & TAG SYSTEM (Status Indicators)
   ═══════════════════════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background-color: var(--success-dim);
  color: var(--success);
}

.badge-danger {
  background-color: var(--danger-dim);
  color: var(--danger);
}

.badge-warning {
  background-color: var(--warning-dim);
  color: var(--warning);
}

.badge-info {
  background-color: var(--info-dim);
  color: var(--info);
}

.badge-primary {
  background-color: var(--primary-dim);
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. MODAL SYSTEM (Centered, Blur, Animation)
   ═══════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 200ms ease-out;
}

.modal {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 500px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 250ms ease-out;
  position: relative;
}

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

.modal-title {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-normal);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   10. TOAST NOTIFICATION SYSTEM (Auto-Dismiss, Slide In)
   ═══════════════════════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.toast {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  min-width: 320px;
  max-width: 400px;
  animation: toastSlideIn 250ms ease-out;
  box-shadow: var(--shadow-lg);
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-success .toast-icon {
  color: var(--success);
}

.toast-error {
  border-left: 3px solid var(--danger);
}

.toast-error .toast-icon {
  color: var(--danger);
}

.toast-info {
  border-left: 3px solid var(--info);
}

.toast-info .toast-icon {
  color: var(--info);
}

.toast-warning {
  border-left: 3px solid var(--warning);
}

.toast-warning .toast-icon {
  color: var(--warning);
}

.toast-message {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. SIDEBAR & NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.sidebar {
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border);
  min-height: 100vh;
  padding: var(--space-lg);
  width: 280px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: var(--text-base);
}

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

.nav-item.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(155, 92, 255, 0.1) 100%);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: calc(var(--space-lg) - 3px);
  box-shadow: var(--glow-primary);
}

.nav-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
  font-weight: 500;
}

.nav-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-inverse);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. TABS & PANELS
   ═══════════════════════════════════════════════════════════════════════════ */

.tabs {
  display: flex;
  gap: var(--space-md);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}

.tab {
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-normal);
}

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

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 200ms ease-out;
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. LOADING STATES (Skeleton, Spinner, Shimmer)
   ═══════════════════════════════════════════════════════════════════════════ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-hover) 0%,
    rgba(0, 212, 255, 0.1) 50%,
    var(--bg-hover) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.skeleton-text {
  height: 12px;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-sm {
  width: 16px;
  height: 16px;
}

.spinner-lg {
  width: 32px;
  height: 32px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. GRID & LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* ═══════════════════════════════════════════════════════════════════════════
   15. ANIMATIONS & KEYFRAMES
   ═══════════════════════════════════════════════════════════════════════════ */

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

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

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: var(--glow-primary);
  }
  50% {
    box-shadow: var(--glow-primary-strong);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   16. UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-primary-accent { color: var(--primary); }

.bg-surface { background-color: var(--bg-surface); }
.bg-card { background-color: var(--bg-card); }
.bg-hover { background-color: var(--bg-hover); }
.bg-elevated { background-color: var(--bg-elevated); }

.border-primary { border-color: var(--primary); }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-l { border-left: 1px solid var(--border); }
.border-r { border-right: 1px solid var(--border); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: 9999px; }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.glow { box-shadow: var(--glow-primary); }
.glow-strong { box-shadow: var(--glow-primary-strong); }
.glow-hover:hover { box-shadow: var(--glow-primary-strong); }

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

.font-mono { font-family: var(--font-mono); }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.line-through { text-decoration: line-through; }
.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }

.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

.transition-none { transition: none; }
.transition-fast { transition: all var(--transition-fast); }
.transition-normal { transition: all var(--transition-normal); }
.transition-slow { transition: all var(--transition-slow); }

/* ═══════════════════════════════════════════════════════════════════════════
   17. RESPONSIVE UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .mobile-hidden { display: none; }
  .mobile-block { display: block; }
  
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    width: 280px;
    height: 100vh;
  }
  
  .tab {
    font-size: var(--text-sm);
    padding: var(--space-sm) var(--space-md);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 12px;
  }
  
  h1, .h1 { font-size: var(--text-2xl); }
  h2, .h2 { font-size: var(--text-xl); }
  
  .modal {
    width: 95vw;
    padding: var(--space-lg);
  }
  
  .toast-container {
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: var(--space-sm);
  }
  
  .toast {
    min-width: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   18. DARK MODE (Already Active by Default)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Everything is dark mode by default. Light mode can be added if needed. */

html.light-mode {
  --bg-base: #FFFFFF;
  --bg-surface: #F8FAFB;
  --bg-card: #F1F3F5;
  --bg-hover: #E8EAEF;
  --text-primary: #0B0F1A;
  --text-secondary: #4A5568;
  --text-tertiary: #A0A9B8;
}

/* ═══════════════════════════════════════════════════════════════════════════
   END OF DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */
