﻿/* ============================================================
   UmutCangaReklam — Header Navigation System v7.0 LIGHT
   Premium Light Theme with Clean Glassmorphism
   ============================================================ */

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

/* ─── CSS Variables ─── */
:root {
  --bg-base:        #f0f4ff;
  --bg-surface:     #e8edf8;
  --bg-card:        rgba(255,255,255,0.95);
  --bg-elevated:    #ffffff;
  --bg-hover:       rgba(99,102,241,0.06);

  --accent:         #6366f1;
  --accent-glow:    rgba(99,102,241,0.2);
  --accent-hover:   #4f46e5;
  --accent-blue:    #3b82f6;
  --accent-green:   #059669;
  --accent-amber:   #d97706;
  --accent-red:     #dc2626;
  --accent-purple:  #7c3aed;
  --accent-cyan:    #0891b2;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  --border:         rgba(0,0,0,0.08);
  --border-light:   rgba(0,0,0,0.12);
  --border-focus:   rgba(99,102,241,0.5);

  --header-h:       64px;
  --nav-h:          52px;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  --shadow-sm:      0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.05);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-glow:    0 0 24px rgba(99,102,241,0.15);

  --transition:     all 0.18s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Subtle Background ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(99,102,241,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(59,130,246,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ─── App Layout ─── */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   TOP HEADER BAR
   ═══════════════════════════════════════════ */
.top-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Brand / Logo */
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(59,130,246,0.1));
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(99,102,241,0.15);
}

.header-brand-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.header-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.header-brand-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 400;
}

.header-page-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding-left: 20px;
  border-left: 1px solid rgba(0,0,0,0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-page-title strong {
  color: var(--text-primary);
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Live indicator */
.live-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #059669;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.2);
  padding: 5px 12px;
  border-radius: 20px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
  animation: livePulse 2s infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5,150,105,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(5,150,105,0); }
}

/* ═══════════════════════════════════════════
   NAVIGATION BAR
   ═══════════════════════════════════════════ */
.nav-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 150;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: stretch;
  padding: 0 20px;
  gap: 2px;
  overflow-x: auto;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-bar::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link i { font-size: 13px; }

.nav-link:hover {
  color: var(--accent);
  background: rgba(99,102,241,0.05);
  border-bottom-color: rgba(99,102,241,0.3);
}

.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(99,102,241,0.06);
  font-weight: 600;
}

.nav-badge {
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

.nav-sep {
  width: 1px;
  background: rgba(0,0,0,0.08);
  margin: 12px 8px;
  align-self: stretch;
  flex-shrink: 0;
}

/* ─── Main Content ─── */
.main-content {
  flex: 1;
  padding: 28px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99,102,241,0.2);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon.blue   { background: rgba(59,130,246,0.1);   color: #2563eb;  }
.stat-icon.green  { background: rgba(5,150,105,0.1);    color: #059669;  }
.stat-icon.purple { background: rgba(124,58,237,0.1);   color: #7c3aed;  }
.stat-icon.amber  { background: rgba(217,119,6,0.1);    color: #d97706;  }
.stat-icon.cyan   { background: rgba(8,145,178,0.1);    color: #0891b2;  }
.stat-icon.red    { background: rgba(220,38,38,0.1);    color: #dc2626;  }

.stat-details .value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-details .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card:hover {
  border-color: rgba(0,0,0,0.1);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(248,250,255,0.8);
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.01em;
}

.card-title i { color: var(--accent); font-size: 14px; }

.card-body { padding: 20px 22px; }

.grid { display: grid; }

/* ═══════════════════════════════════════════
   SECTION HERO
   ═══════════════════════════════════════════ */
.section-hero {
  background: linear-gradient(135deg, rgba(99,102,241,0.07) 0%, rgba(59,130,246,0.05) 50%, rgba(255,255,255,0) 100%);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius-xl);
  padding: 26px 30px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  background-color: #fff;
  box-shadow: var(--shadow-sm);
}

.section-hero::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.section-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.section-hero-sub { font-size: 13px; color: var(--text-secondary); }

.section-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  font-family: 'Inter', system-ui, sans-serif;
}

.btn:focus { outline: 2px solid rgba(99,102,241,0.4); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border-color: rgba(79,70,229,0.3);
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

.btn-secondary {
  background: #fff;
  color: var(--text-secondary);
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
  background: #f8faff;
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.2);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border-color: rgba(5,150,105,0.3);
  box-shadow: 0 2px 8px rgba(5,150,105,0.2);
}

.btn-success:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(220,38,38,0.06);
  color: #dc2626;
  border-color: rgba(220,38,38,0.2);
}

.btn-danger:hover {
  background: rgba(220,38,38,0.12);
  border-color: rgba(220,38,38,0.35);
}

.btn-warning {
  background: rgba(217,119,6,0.08);
  color: #d97706;
  border-color: rgba(217,119,6,0.25);
}

.btn-warning:hover {
  background: rgba(217,119,6,0.15);
}

.btn-sm { padding: 5px 11px; font-size: 12px; gap: 5px; border-radius: var(--radius-sm); }
.btn-lg { padding: 12px 24px; font-size: 14px; }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ═══════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-online  { background: rgba(5,150,105,0.1);  color: #059669; border: 1px solid rgba(5,150,105,0.25); }
.badge-offline { background: rgba(100,116,139,0.1); color: #64748b; border: 1px solid rgba(100,116,139,0.2); }
.badge-primary { background: rgba(99,102,241,0.1);  color: #6366f1; border: 1px solid rgba(99,102,241,0.25); }
.badge-warning { background: rgba(217,119,6,0.1);   color: #d97706; border: 1px solid rgba(217,119,6,0.25); }
.badge-danger  { background: rgba(220,38,38,0.1);   color: #dc2626; border: 1px solid rgba(220,38,38,0.2); }
.badge-image   { background: rgba(59,130,246,0.1);  color: #2563eb; border: 1px solid rgba(59,130,246,0.25); }
.badge-video   { background: rgba(124,58,237,0.1);  color: #7c3aed; border: 1px solid rgba(124,58,237,0.25); }
.badge-youtube { background: rgba(220,38,38,0.1);   color: #dc2626; border: 1px solid rgba(220,38,38,0.2); }

/* ═══════════════════════════════════════════
   DATA TABLE
   ═══════════════════════════════════════════ */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive::-webkit-scrollbar { height: 4px; }
.table-responsive::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.data-table thead th {
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: #f8faff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  white-space: nowrap;
}

.data-table tbody tr { border-bottom: 1px solid rgba(0,0,0,0.05); transition: var(--transition); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(99,102,241,0.03); }

.data-table tbody td {
  padding: 13px 16px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tbody td strong { color: var(--text-primary); font-weight: 600; }

.data-table tbody td code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11.5px;
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.15);
  color: #4f46e5;
  padding: 2px 7px;
  border-radius: 5px;
}

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11.5px;
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.15);
  color: #4f46e5;
  padding: 2px 7px;
  border-radius: 5px;
}

.empty-state { text-align: center; padding: 60px 32px; color: var(--text-muted); }
.empty-state i { font-size: 40px; opacity: 0.25; display: block; margin-bottom: 14px; color: var(--text-secondary); }
.empty-state p { font-size: 13px; line-height: 1.6; }

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-control, .form-select {
  width: 100%;
  padding: 9px 13px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #fff;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option { background: #fff; color: var(--text-primary); }
textarea.form-control { resize: vertical; min-height: 80px; }
input[type="range"].form-control { padding: 4px 0; background: transparent; border: none; cursor: pointer; }
input[type="color"].form-control { padding: 3px; height: 40px; cursor: pointer; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ═══════════════════════════════════════════
   MEDIA GRID
   ═══════════════════════════════════════════ */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

.media-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.media-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.media-preview {
  position: relative;
  aspect-ratio: 16/9;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview img, .media-preview video { width: 100%; height: 100%; object-fit: cover; }
.media-info { padding: 12px; }
.media-title { font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.media-actions { padding: 10px 12px; border-top: 1px solid rgba(0,0,0,0.06); display: flex; gap: 6px; }

/* ═══════════════════════════════════════════
   PROFILE ITEMS
   ═══════════════════════════════════════════ */
.profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  transition: var(--transition);
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.profile-item:hover { background: #f8faff; border-color: rgba(99,102,241,0.25); }
.profile-item.active { background: rgba(99,102,241,0.06); border-color: rgba(99,102,241,0.35); }
.profile-item-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.profile-item-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-box {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.08);
  animation: slideUp 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #f8faff;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title i { color: var(--accent); }

.modal-close {
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(220,38,38,0.08);
  border-color: rgba(220,38,38,0.2);
  color: #dc2626;
}

.modal-body { padding: 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid rgba(0,0,0,0.08); display: flex; gap: 10px; justify-content: flex-end; background: #fafbff; }

.modal-section {
  background: #f8faff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.modal-section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ═══════════════════════════════════════════
   TOASTS
   ═══════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 280px;
  max-width: 420px;
  pointer-events: all;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  word-break: break-word;
}

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

.toast.toast-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.toast.toast-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.toast.toast-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.toast i { font-size: 15px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   SCHEDULE ITEMS
   ═══════════════════════════════════════════ */
.schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.07);
  background: #fff;
  margin-bottom: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.schedule-item:hover { background: #f8faff; border-color: rgba(99,102,241,0.2); }
.schedule-time { font-size: 13px; font-weight: 700; color: var(--accent); min-width: 80px; }
.schedule-info { flex: 1; min-width: 0; }
.schedule-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════
   SETTINGS SECTIONS
   ═══════════════════════════════════════════ */
.settings-section {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.settings-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: #f8faff;
}

.settings-section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.settings-section-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.settings-section-body { padding: 18px 20px; }

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  gap: 20px;
}

.settings-row:last-child { border-bottom: none; }
.settings-row-label { flex: 1; min-width: 0; }
.settings-row-label span { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.settings-row-label small { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; display: block; }
.settings-row-control { flex-shrink: 0; min-width: 200px; }

/* ═══════════════════════════════════════════
   TOGGLE SWITCH
   ═══════════════════════════════════════════ */
.toggle-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; }

.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { display: none; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #e2e8f0;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.12);
  transition: 0.25s;
  cursor: pointer;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider { background: #6366f1; border-color: #4f46e5; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px) translateY(-50%); }

/* ═══════════════════════════════════════════
   MISC
   ═══════════════════════════════════════════ */
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #059669; animation: livePulse 2s infinite; display: inline-block; }
.live-indicator { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #059669; }
.divider { height: 1px; background: rgba(0,0,0,0.07); margin: 16px 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */
.d-flex { display: flex; }
.d-grid { display: grid; }
.gap-8  { gap: 8px;  }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.flex-1  { flex: 1; }
.min-w-0 { min-width: 0; }
.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary   { color: var(--text-primary); }
.text-accent    { color: var(--accent); }
.text-green     { color: var(--accent-green); }
.text-red       { color: var(--accent-red); }
.text-amber     { color: var(--accent-amber); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fs-11  { font-size: 11px; }
.fs-12  { font-size: 12px; }
.fs-13  { font-size: 13px; }
.mb-0   { margin-bottom: 0; }
.mb-12  { margin-bottom: 12px; }
.mb-16  { margin-bottom: 16px; }
.mb-20  { margin-bottom: 20px; }
.mb-24  { margin-bottom: 24px; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mt-16  { margin-top: 16px; }
.p-0    { padding: 0; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.w-full { width: 100%; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .main-content { padding: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .header-page-title { display: none; }
  .header-brand-sub { display: none; }
}

@media (max-width: 600px) {
  .top-header { padding: 0 16px; }
  .nav-bar { padding: 0 8px; }
  .stat-grid { grid-template-columns: 1fr; }
  .main-content { padding: 12px; }
  .data-table { font-size: 12px; }
  .data-table thead th, .data-table tbody td { padding: 10px 10px; }
}
