/* ============================================================
   SIMPATEL STUDIOS - main.css
   Global styles, variables, reset, utility classes
   ============================================================ */

:root {
  /* Color palette */
  --primary:       #6C47FF;
  --primary-dark:  #5035CC;
  --primary-light: #EEE9FF;
  --accent:        #00D4AA;
  --accent-dark:   #009E7F;
  --danger:        #FF4757;
  --danger-light:  #FFF0F1;
  --warning:       #FFA502;
  --warning-light: #FFF8EE;
  --success:       #2ED573;
  --success-light: #EDFFF4;
  --info:          #1E90FF;
  --info-light:    #EAF4FF;

  /* Neutrals */
  --white:     #FFFFFF;
  --gray-50:   #F8F9FC;
  --gray-100:  #F1F3F9;
  --gray-200:  #E4E8F1;
  --gray-300:  #CDD2E0;
  --gray-400:  #9BA6BC;
  --gray-500:  #6B7896;
  --gray-600:  #4A5568;
  --gray-700:  #2D3748;
  --gray-800:  #1A202C;
  --gray-900:  #0F1320;

  /* Typography */
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,.1);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.12);
  --shadow-card: 0 2px 8px rgba(108,71,255,.06);

  /* Transitions */
  --tr:    all .18s ease;
  --tr-md: all .28s ease;

  /* Layout */
  --sidebar-w: 240px;
  --topbar-h:  60px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
}

h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--gray-600); }

.text-sm  { font-size: .85rem; }
.text-xs  { font-size: .75rem; }
.text-lg  { font-size: 1.1rem; }
.text-xl  { font-size: 1.3rem; }
.fw-600   { font-weight: 600; }
.fw-700   { font-weight: 700; }
.text-muted { color: var(--gray-400); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── SPACING ─────────────────────────────────────────────── */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-16  { padding: 16px; }
.p-24  { padding: 24px; }

/* ─── CARD ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1rem;
}

/* ─── STAT CARDS ─────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.stat-icon.purple { background: var(--primary-light); color: var(--primary); }
.stat-icon.green  { background: var(--success-light); color: var(--accent-dark); }
.stat-icon.red    { background: var(--danger-light); color: var(--danger); }
.stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-icon.blue   { background: var(--info-light); color: var(--info); }

.stat-info { flex: 1; min-width: 0; }
.stat-label { font-size: .78rem; color: var(--gray-400); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-top: 2px; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  transition: var(--tr);
  white-space: nowrap;
  border: 1.5px solid transparent;
  line-height: 1;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108,71,255,.3);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.btn-success:hover:not(:disabled) {
  filter: brightness(0.9);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  filter: brightness(0.9);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
  color: var(--gray-800);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover:not(:disabled) {
  background: var(--primary-light);
}

.btn-sm { padding: 6px 14px; font-size: .8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

.btn-wa {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-wa:hover:not(:disabled) {
  background: #1DA851;
  border-color: #1DA851;
  transform: translateY(-1px);
}

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: .7;
}
.btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: 6px;
}

/* ─── FORMS ──────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--tr);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,71,255,.12);
}

.form-control::placeholder { color: var(--gray-400); }

.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255,71,87,.1);
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7896' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
  padding-right: 36px;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.form-hint { font-size: .78rem; color: var(--gray-400); }
.form-error { font-size: .78rem; color: var(--danger); font-weight: 500; }

/* ─── BADGE / CHIP ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: #1a9952; }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: #c07000; }
.badge-info    { background: var(--info-light); color: var(--info); }
.badge-gray    { background: var(--gray-100); color: var(--gray-500); }

/* ─── TABLES ─────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

thead {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

.td-mono { font-family: var(--font-mono); font-size: .8rem; }

/* ─── ALERTS ─────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-success { background: var(--success-light); color: #1a9952; border: 1px solid #a8f0c3; }
.alert-error   { background: var(--danger-light); color: var(--danger); border: 1px solid #ffc9ce; }
.alert-warning { background: var(--warning-light); color: #c07000; border: 1px solid #ffdfa0; }
.alert-info    { background: var(--info-light); color: var(--info); border: 1px solid #b8d8ff; }

/* ─── PROGRESS BAR ───────────────────────────────────────── */
.progress-wrap {
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
  height: 10px;
}

.progress-bar {
  height: 100%;
  border-radius: 99px;
  transition: width .5s ease;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.progress-bar.low    { background: var(--danger); }
.progress-bar.medium { background: var(--warning); }
.progress-bar.high   { background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.97);
  transition: transform .2s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-size: 1.1rem; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--tr);
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-700); }

.modal-body { padding: 20px 24px 24px; }

/* ─── TOAST NOTIFICATIONS ────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--gray-900);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  animation: slideUp .3s ease;
  pointer-events: all;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info    { border-left: 4px solid var(--info); }

.toast.removing { animation: slideDown .3s ease forwards; }

/* ─── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
}

.empty-state .empty-icon {
  font-size: 3rem;
  opacity: .3;
}

.empty-state p {
  color: var(--gray-400);
  font-size: .9rem;
}

/* ─── LOADING SKELETON ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform .25s ease;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}

.logo-text { font-size: .9rem; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.logo-sub  { font-size: .7rem; color: var(--gray-400); font-weight: 400; }

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

.nav-section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-300);
  padding: 8px 8px 4px;
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--gray-500);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--tr);
  margin-bottom: 2px;
}

.nav-item:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-item .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--gray-100);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--tr);
}

.user-info:hover { background: var(--gray-100); }

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.user-email {
  flex: 1;
  min-width: 0;
  font-size: .78rem;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  font-size: .75rem;
  color: var(--danger);
  font-weight: 600;
  padding: 4px;
}

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

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Page content */
.page-content {
  padding: 28px;
  flex: 1;
}

.page-header {
  margin-bottom: 28px;
}

.page-header h2 { color: var(--gray-900); }
.page-header p  { color: var(--gray-500); margin-top: 4px; font-size: .9rem; }

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 1.1rem;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: var(--tr);
}

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

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Campaign card grid */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.campaign-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--tr-md);
  box-shadow: var(--shadow-sm);
}

.campaign-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.campaign-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--gray-100);
}

.campaign-thumb-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light), #e8f4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.campaign-body { padding: 16px; }
.campaign-title { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--gray-900); }
.campaign-desc  { font-size: .8rem; color: var(--gray-500); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.campaign-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.price-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}

.budget-section { margin-bottom: 14px; }
.budget-label { font-size: .73rem; color: var(--gray-400); margin-bottom: 5px; font-weight: 500; }

/* File upload */
.file-upload-wrap {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--tr);
}

.file-upload-wrap:hover,
.file-upload-wrap.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.file-upload-wrap input { display: none; }
.file-upload-icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload-text { font-size: .85rem; color: var(--gray-500); }
.file-upload-hint { font-size: .75rem; color: var(--gray-400); margin-top: 4px; }

.image-preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 12px;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 20px 0;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 16px;
  font-size: .75rem;
  color: var(--gray-300);
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

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

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

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

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 99;
  }

  .sidebar-overlay.open { display: block; }

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

  .mobile-menu-btn { display: flex; }

  .page-content { padding: 16px; }
  .topbar { padding: 0 16px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .stat-card { flex-direction: row; }

  .tabs { flex-direction: column; }

  .modal-backdrop { padding: 12px; }
  .modal { max-height: 85vh; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 12px 20px; }
  .campaign-grid { grid-template-columns: 1fr; }
}

/* ─── LUCIDE ICON HELPERS ─────────────────────────────────── */
.empty-icon-svg {
  width: 56px;
  height: 56px;
  opacity: .25;
  color: var(--gray-500);
}

.nav-icon svg,
.nav-icon i {
  display: flex;
}

/* Spin animation untuk loader icon */
@keyframes spin {
  to { transform: rotate(360deg); }
}
