/* ============================================================
   BulkSTK Pro – Custom Stylesheet
   Primary: Navy #0D2B55  |  Secondary: Green #00A651
   ============================================================ */

:root {
  --primary:        #0D2B55;
  --primary-light:  #1B4A8A;
  --primary-dark:   #071729;
  --secondary:      #00A651;
  --secondary-light:#00C462;
  --secondary-dark: #007A3D;
  --success:        #00A651;
  --danger:         #DC2626;
  --warning:        #F59E0B;
  --info:           #0EA5E9;
  --bg:             #F0F4F8;
  --card-bg:        #FFFFFF;
  --text:           #1E293B;
  --text-muted:     #64748B;
  --border:         #E2E8F0;
  --sidebar-width:  260px;
  --topbar-height:  64px;
  --radius:         10px;
  --shadow:         0 2px 12px rgba(13,43,85,0.10);
  --shadow-lg:      0 8px 32px rgba(13,43,85,0.15);
  --transition:     all 0.2s ease;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4cdd6; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ─── Layout ────────────────────────────────────────────── */
.app-wrapper { display: flex; min-height: 100vh; }

/* ─── Sidebar ───────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.25);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}

.sidebar-brand .brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,166,81,0.35);
}

.sidebar-brand .brand-text .app-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.sidebar-brand .brand-text .app-sub {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }

.nav-section-title {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px 22px 6px;
  margin-top: 6px;
}

.nav-item { margin: 1px 10px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.65);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(0,166,81,0.25), rgba(0,166,81,0.10));
  border-left: 3px solid var(--secondary);
  padding-left: 11px;
}
.nav-link .nav-icon {
  width: 20px;
  font-size: 15px;
  text-align: center;
  flex-shrink: 0;
}
.nav-link .nav-badge {
  margin-left: auto;
  background: var(--secondary);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 14px 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user .user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.sidebar-user .user-info { flex: 1; overflow: hidden; }
.sidebar-user .user-name  { color: #fff; font-size: 13px; font-weight: 600; truncate: overflow; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .user-role  { color: rgba(255,255,255,0.4); font-size: 11px; }

/* ─── Main Content ──────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ─── Topbar ────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.topbar-left { display: flex; align-items: center; gap: 16px; flex: 1; }
.topbar-title { font-size: 20px; font-weight: 700; color: var(--primary); }
.topbar-breadcrumb { font-size: 12px; color: var(--text-muted); }
.topbar-breadcrumb a { color: var(--text-muted); }
.topbar-breadcrumb a:hover { color: var(--secondary); }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.topbar-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
}
.topbar-btn:hover { background: var(--bg); color: var(--primary); border-color: var(--primary); }

.topbar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 40px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.topbar-user:hover { background: var(--bg); border-color: var(--primary); }
.topbar-user .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}

/* ─── Page Content ──────────────────────────────────────── */
.page-content { padding: 28px; flex: 1; }
.page-header  { margin-bottom: 24px; }
.page-header h1 { font-size: 24px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.page-header p  { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
}
.card-title  { font-size: 15px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.card-body   { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--bg); }

/* ─── Stat Cards ────────────────────────────────────────── */
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
  display: flex; align-items: flex-start; gap: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  height: 3px; width: 100%;
  background: var(--stat-color, var(--primary));
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: var(--stat-icon-bg, rgba(13,43,85,0.08));
  color: var(--stat-color, var(--primary));
}
.stat-value   { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-label   { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.stat-change  { font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); border: 2px solid transparent; white-space: nowrap; }
.btn-sm  { padding: 6px 14px; font-size: 13px; }
.btn-lg  { padding: 12px 24px; font-size: 15px; }
.btn-xl  { padding: 14px 32px; font-size: 16px; }
.btn-icon { padding: 9px; }

.btn-primary   { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover   { background: var(--primary-light); border-color: var(--primary-light); }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); }
.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-outline-secondary { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn-outline-secondary:hover { background: var(--secondary); color: #fff; }
.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-light     { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-light:hover { background: #e2e8f0; }
.btn-success   { background: var(--success); color: #fff; border-color: var(--success); }
.btn-warning   { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-info      { background: var(--info); color: #fff; border-color: var(--info); }

.btn:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ─── Badges ────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; }
.badge-success   { background: #DCFCE7; color: #15803D; }
.badge-danger    { background: #FEE2E2; color: #DC2626; }
.badge-warning   { background: #FEF3C7; color: #B45309; }
.badge-info      { background: #E0F2FE; color: #0369A1; }
.badge-primary   { background: rgba(13,43,85,0.12); color: var(--primary); }
.badge-secondary { background: #F1F5F9; color: var(--text-muted); }
.badge-purple    { background: #EDE9FE; color: #6D28D9; }

/* ─── Forms ─────────────────────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-label  { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: var(--transition);
  outline: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0,166,81,0.12);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }
.form-hint    { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error   { font-size: 12px; color: var(--danger); margin-top: 5px; }
textarea.form-control { resize: vertical; min-height: 90px; }

.input-group { display: flex; }
.input-group .form-control { border-radius: 8px 0 0 8px; flex: 1; }
.input-group .btn { border-radius: 0 8px 8px 0; border-left: none; }
.input-group-text {
  display: flex; align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  border-radius: 0;
  white-space: nowrap;
}
.input-group .input-group-text:first-child { border-radius: 8px 0 0 8px; border-right: none; }
.input-group .form-control:not(:first-child) { border-radius: 0 8px 8px 0; }

/* ─── Tables ────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(0,166,81,0.03); }
.table .actions { display: flex; gap: 6px; align-items: center; }

/* ─── Alerts ────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: 8px; font-size: 14px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.alert-success { background: #DCFCE7; color: #15803D; border-left: 4px solid var(--success); }
.alert-danger  { background: #FEE2E2; color: #DC2626; border-left: 4px solid var(--danger); }
.alert-warning { background: #FEF3C7; color: #92400E; border-left: 4px solid var(--warning); }
.alert-info    { background: #E0F2FE; color: #0369A1; border-left: 4px solid var(--info); }

/* ─── Progress ──────────────────────────────────────────── */
.progress { background: #E2E8F0; border-radius: 10px; overflow: hidden; }
.progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}
.progress-bar.bg-success { background: var(--success); }
.progress-bar.bg-danger  { background: var(--danger); }
.progress-bar.bg-primary { background: var(--primary); }
.progress-bar.bg-warning { background: var(--warning); }
.progress-bar.bg-info    { background: var(--info); }

.progress-lg { height: 16px; }
.progress-md { height: 10px; }
.progress-sm { height: 6px; }

/* ─── Login Page ────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(0,166,81,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
}
.login-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 42px 40px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo .logo-mark {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0,166,81,0.35);
}
.login-logo h2 { font-size: 24px; font-weight: 800; color: var(--primary); }
.login-logo p  { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.login-card .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,43,85,0.12); }

/* ─── Campaign Run Screen ───────────────────────────────── */
.campaign-run-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 28px;
  color: #fff;
  margin-bottom: 24px;
}
.campaign-run-header h2 { font-size: 22px; font-weight: 700; }
.campaign-run-header p  { opacity: 0.75; font-size: 14px; margin-top: 4px; }
.campaign-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.campaign-stat-item { background: rgba(255,255,255,0.12); border-radius: 10px; padding: 14px 16px; text-align: center; }
.campaign-stat-item .value { font-size: 28px; font-weight: 800; color: #fff; }
.campaign-stat-item .label { font-size: 11px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* ─── Progress Ring ─────────────────────────────────────── */
.progress-ring { display: inline-flex; align-items: center; justify-content: center; }
.progress-ring-circle { transition: stroke-dashoffset 0.5s ease; transform-origin: 50% 50%; transform: rotate(-90deg); }

/* ─── Upload Zone ───────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #FAFAFA;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--secondary);
  background: rgba(0,166,81,0.04);
}
.upload-zone .upload-icon { font-size: 40px; color: var(--text-muted); margin-bottom: 12px; }
.upload-zone p { color: var(--text-muted); font-size: 14px; }
.upload-zone span { color: var(--secondary); font-weight: 600; }

/* ─── Empty State ───────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 56px; color: #CBD5E1; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text-muted); }
.empty-state p  { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

/* ─── Pagination ────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 4px; }
.page-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
}
.page-link:hover { border-color: var(--secondary); color: var(--secondary); background: #fff; }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ─── Modals ────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s ease;
}
.modal-backdrop.show .modal { transform: scale(1) translateY(0); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title  { font-size: 17px; font-weight: 700; color: var(--primary); }
.modal-body   { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.modal-close  { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 20px; padding: 4px; border-radius: 4px; line-height: 1; }
.modal-close:hover { color: var(--danger); background: #FEE2E2; }

/* ─── Tabs ──────────────────────────────────────────────── */
.tab-list { display: flex; border-bottom: 2px solid var(--border); gap: 0; margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
  padding: 10px 20px;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--secondary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── Spinners ──────────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Utilities ─────────────────────────────────────────── */
.d-flex     { display: flex; }
.d-none     { display: none; }
.align-center { align-items: center; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 18px; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-primary { color: var(--primary) !important; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mt-1 { margin-top: 6px; }  .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; }
.mb-1 { margin-bottom: 6px; }.mb-2 { margin-bottom: 12px; }.mb-3 { margin-bottom: 18px; }
.p-0 { padding: 0 !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.w-100 { width: 100%; }

/* ─── Toast ─────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 280px; max-width: 380px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex; align-items: flex-start; gap: 12px;
  border-left: 4px solid var(--primary);
  animation: slideInRight 0.3s ease;
  font-size: 14px;
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title   { font-weight: 700; color: var(--text); font-size: 13px; }
.toast-message { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.toast-close   { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 16px; padding: 0; line-height: 1; margin-left: auto; align-self: flex-start; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(10px); } }

/* ─── Customer Badge ────────────────────────────────────── */
.customer-cell { display: flex; align-items: center; gap: 10px; }
.customer-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.customer-name  { font-weight: 600; color: var(--text); font-size: 14px; }
.customer-phone { font-size: 12px; color: var(--text-muted); }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main-content { margin-left: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .campaign-stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-content { padding: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .campaign-stat-row { grid-template-columns: repeat(2,1fr); }
  .table th, .table td { padding: 10px 12px; }
  .login-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .campaign-stat-row { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 16px; }
}
