/* =============================================
   SISTEM MANAJEMEN EVENT & SERTIFIKAT
   Professional Design System v2.0
   ============================================= */

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

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand Colors */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;

  --green-50:  #f0fdf4;
  --green-500: #22c55e;
  --green-600: #16a34a;

  --red-50:   #fef2f2;
  --red-500:  #ef4444;
  --red-600:  #dc2626;

  --amber-50:  #fffbeb;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  /* Semantic */
  --primary:       #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --success:       #16a34a;
  --success-light: #f0fdf4;
  --danger:        #dc2626;
  --danger-light:  #fef2f2;
  --warning:       #d97706;
  --warning-light: #fffbeb;

  /* Neutrals — slate palette */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Aliases */
  --bg:       var(--slate-50);
  --surface:  #ffffff;
  --border:   var(--slate-200);
  --text:     var(--slate-900);
  --text-2:   var(--slate-600);
  --text-3:   var(--slate-400);
  --muted:    var(--slate-500);

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.06), 0 1px 2px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-2xl:  24px;
  --r-full: 999px;

  /* Typography */
  --font:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Menlo', 'Monaco', 'Courier New', monospace;

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:    120ms;
  --t-base:    200ms;
  --t-slow:    300ms;
}

/* ===== BASE RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ===== PUBLIC NAVBAR ===== */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}
.navbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.navbar-logo {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.navbar-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.navbar-title span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
}

/* ===== PUBLIC SEARCH BAR ===== */
.search-wrap {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  background: var(--slate-100);
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  color: var(--text);
  font-size: 13.5px;
  transition: all var(--t-base) var(--ease);
}
.search-wrap input::placeholder { color: var(--text-3); }
.search-wrap input:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 15px;
  pointer-events: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
  padding: 40px 24px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.2) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  color: #93c5fd;
  padding: 3px 12px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.hero-title {
  color: #fff;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.hero-title span {
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  color: var(--slate-400);
  font-size: 14px;
  max-width: 420px;
  margin: 0 auto;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 24px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== MAIN CONTAINER ===== */
.main-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
  display: inline-block;
}

/* ===== EVENTS GRID ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== EVENT CARD ===== */
.event-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
  border: 1px solid var(--border);
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Banner */
.card-banner {
  position: relative;
  overflow: hidden;
  background: var(--slate-100);
}
.card-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--t-slow) var(--ease);
}
.event-card:hover .card-banner img { transform: scale(1.04); }

.card-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  backdrop-filter: blur(8px);
}
.badge-active {
  background: rgba(22,163,74,0.9);
  color: #fff;
}
.badge-ended {
  background: rgba(100,116,139,0.82);
  color: #fff;
}

.card-event-id {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15,23,42,0.65);
  color: rgba(255,255,255,0.75);
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
}

/* Card Body */
.card-body { padding: 16px; }
.card-event-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-time-info {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  font-size: 12.5px;
  color: var(--text-2);
}
.card-time-info .icon { font-size: 13px; }

/* Time status box */
.card-time-status {
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 7px 12px;
  margin: 10px 0;
  text-align: center;
}
.card-time-status.active-status {
  background: var(--green-50);
  border-color: rgba(22,163,74,0.2);
}
.card-time-status.ended-status {
  background: var(--slate-50);
  border-color: var(--border);
}
.card-time-status-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.active-status .card-time-status-label { color: var(--success); }
.ended-status .card-time-status-label { color: var(--muted); }
.card-time-status-val {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
}

/* Action buttons */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--t-fast) var(--ease);
  border: none;
  cursor: pointer;
  flex: 1;
  min-width: 88px;
  justify-content: center;
  white-space: nowrap;
}
.btn-hadir {
  background: var(--primary);
  color: #fff;
}
.btn-hadir:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-sertifikat {
  background: var(--amber-500);
  color: #fff;
}
.btn-sertifikat:hover { background: var(--amber-600); transform: translateY(-1px); }
.btn-materi {
  background: var(--success);
  color: #fff;
}
.btn-materi:hover { background: var(--green-600); transform: translateY(-1px); }
.btn-zoom {
  background: var(--blue-500);
  color: #fff;
}
.btn-zoom:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn-disabled {
  background: var(--slate-100);
  color: var(--text-3);
  cursor: not-allowed;
  border: 1px solid var(--border);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--surface);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.22s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  background: var(--primary);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal-title { color: #fff; font-size: 15px; font-weight: 700; }
.modal-subtitle { color: rgba(255,255,255,0.65); font-size: 12px; margin-top: 2px; }
.modal-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  transition: background var(--t-fast);
  flex-shrink: 0;
}
.modal-close:hover { background: rgba(255,255,255,0.22); }
.modal-body { padding: 22px; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 5px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 10px 13px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--t-fast) var(--ease);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.btn-secondary {
  background: var(--surface);
  color: var(--slate-700);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
}
.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-success:hover { background: var(--green-600); }
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover { background: var(--red-600); transform: translateY(-1px); }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-xs { padding: 4px 10px; font-size: 11.5px; border-radius: var(--r-sm); }

/* ===== SUCCESS SCREEN ===== */
.success-screen { text-align: center; padding: 20px 0; }
.success-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--green-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 36px;
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.success-title { font-size: 18px; font-weight: 800; color: var(--success); margin-bottom: 6px; }
.success-message { color: var(--text-2); font-size: 13.5px; line-height: 1.6; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--slate-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-lg);
  font-size: 13.5px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  animation: toastIn 0.3s var(--ease);
  border-left: 3px solid var(--primary);
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* ===== SPINNER ===== */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state-icon { font-size: 52px; margin-bottom: 14px; opacity: 0.4; }
.empty-state-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--slate-700); }
.empty-state-text { font-size: 13.5px; color: var(--text-2); }

/* ===== FILTER TABS ===== */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: all var(--t-fast);
}
.filter-tab.active, .filter-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.badge-success {
  background: var(--green-50);
  color: var(--success);
  border: 1px solid rgba(22,163,74,0.2);
}
.badge-danger {
  background: var(--red-50);
  color: var(--danger);
  border: 1px solid rgba(220,38,38,0.2);
}
.badge-primary {
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid rgba(37,99,235,0.2);
}
.badge-warning {
  background: var(--amber-50);
  color: var(--amber-600);
  border: 1px solid rgba(217,119,6,0.2);
}
.badge-gray {
  background: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--border);
}

/* ===== ADMIN LAYOUT ===== */
.admin-sidebar {
  width: 248px;
  background: var(--slate-900);
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-slow) var(--ease);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }
.sidebar-logo {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 11px;
}
.sidebar-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.sidebar-logo-text { color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.sidebar-logo-text span { display: block; font-size: 10.5px; font-weight: 400; color: var(--slate-400); }
.sidebar-nav { padding: 14px 10px; flex: 1; }
.sidebar-nav-label {
  color: var(--slate-500);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 8px 3px;
  margin-top: 6px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: var(--r-md);
  color: var(--slate-400);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--t-fast);
  margin-bottom: 1px;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-nav a.active { background: rgba(37,99,235,0.2); color: #93c5fd; }
.sidebar-nav a .nav-icon { font-size: 17px; flex-shrink: 0; }
.sidebar-footer {
  padding: 14px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.admin-content { margin-left: 248px; min-height: 100vh; background: var(--bg); }
.admin-topbar {
  background: var(--surface);
  padding: 0 26px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar-title { font-size: 16px; font-weight: 700; color: var(--text); }
.admin-page-content { padding: 24px 26px; }

/* ===== STATS CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow var(--t-base);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.bg-primary { background: var(--blue-50); }
.stat-icon.bg-success { background: var(--green-50); }
.stat-icon.bg-warning { background: var(--amber-50); }
.stat-icon.bg-danger  { background: var(--red-50); }
.stat-num { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ===== ADMIN CARDS ===== */
.admin-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}
.admin-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-card-title { font-size: 15px; font-weight: 700; color: var(--text); }
.admin-card-body { padding: 0; }

/* ===== TABLE ===== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--slate-50);
  padding: 11px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 13px 18px;
  font-size: 13.5px;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--slate-50); }

/* ===== FORM ROW ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ===== TOGGLE SECTION (Form Config) ===== */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  background: var(--slate-50);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  margin-bottom: 8px;
  transition: border-color var(--t-fast);
}
.toggle-wrap:hover { border-color: var(--slate-300); }
.toggle-label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.toggle-desc { font-size: 12px; color: var(--muted); margin-top: 1px; }
.toggle-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--slate-300);
  border-radius: 24px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.toggle-switch input:checked + .toggle-slider { background: var(--success); }
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast);
}
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  background: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(37,99,235,0.25) 0%, transparent 70%);
}
.login-bg-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.12; }
.login-bg-orb.orb1 { width: 380px; height: 380px; background: var(--primary); top: -100px; right: -100px; }
.login-bg-orb.orb2 { width: 280px; height: 280px; background: var(--blue-500); bottom: -80px; left: -80px; }
.login-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.45);
  position: relative;
  z-index: 1;
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
  box-shadow: 0 10px 24px rgba(37,99,235,0.4);
}
.login-logo-title { color: #fff; font-size: 20px; font-weight: 800; }
.login-logo-sub { color: var(--slate-400); font-size: 13px; margin-top: 3px; }
.login-card .form-label { color: rgba(255,255,255,0.75); }
.login-card .form-control { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: #fff; }
.login-card .form-control:focus { background: rgba(255,255,255,0.1); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
.login-card .form-control::placeholder { color: rgba(255,255,255,0.28); }
.login-error {
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.25);
  color: #fca5a5;
  padding: 9px 13px;
  border-radius: var(--r-md);
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== FILE UPLOAD ===== */
.upload-area {
  border: 1.5px dashed var(--slate-300);
  border-radius: var(--r-md);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
  background: var(--slate-50);
  position: relative;
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary);
  background: var(--blue-50);
}
.upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 28px; margin-bottom: 7px; }
.upload-text { font-size: 13px; color: var(--muted); }
.upload-hint { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.upload-preview { width: 100%; max-height: 190px; object-fit: contain; border-radius: var(--r-md); margin: 8px 0; }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 18px; }
.page-btn {
  padding: 7px 13px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== HAMBURGER ===== */
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--slate-600); border-radius: 2px; transition: var(--t-fast); }

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--border), 0 -4px 20px rgba(0,0,0,0.06);
  z-index: 800;
  padding: 0 8px;
  border-top: 1px solid var(--border);
  justify-content: space-around;
  align-items: center;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  gap: 3px;
  transition: color var(--t-fast);
  padding: 6px 10px;
  border-radius: var(--r-md);
  flex: 1;
  min-width: 0;
}
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item .icon { font-size: 19px; }

/* ===== FAB ===== */
.fab {
  position: fixed;
  bottom: 80px;
  right: 18px;
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  z-index: 700;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.fab:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37,99,235,0.5); }

/* ===== ANDROID HEADER ===== */
.android-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  justify-content: space-between;
}

/* ===== QUICK ACTION CARDS (Dashboard) ===== */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.quick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-base);
  color: var(--text);
}
.quick-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
  transform: translateY(-2px);
}
.quick-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.quick-card-title { font-size: 13.5px; font-weight: 700; }
.quick-card-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ===== DIVIDERS ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ===== ALERT / INFO BOX ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-info { background: var(--blue-50); border: 1px solid rgba(37,99,235,0.2); color: var(--blue-700); }
.alert-success { background: var(--green-50); border: 1px solid rgba(22,163,74,0.2); color: var(--success); }
.alert-warning { background: var(--amber-50); border: 1px solid rgba(217,119,6,0.2); color: var(--warning); }
.alert-danger  { background: var(--red-50); border: 1px solid rgba(220,38,38,0.2); color: var(--danger); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .admin-sidebar { display: none !important; }
  .admin-link { display: none !important; }
  .hamburger { display: none !important; }
  .sidebar-overlay { display: none !important; }
  .admin-content { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .mobile-nav { display: flex; }
}

@media (max-width: 640px) {
  .events-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .hero-stats  { gap: 20px; }
  .admin-page-content { padding: 16px 14px 90px; }
  .admin-topbar { padding: 0 14px; height: 54px; }
  .card-body { padding: 12px; }
  .card-event-name { font-size: 13px; margin-bottom: 6px; }
  .card-time-info { font-size: 11px; margin-bottom: 3px; gap: 4px; }
  .card-time-status { padding: 5px 8px; margin: 8px 0; }
  .card-time-status-label { font-size: 9px; }
  .card-time-status-val { font-size: 10px; }
  .card-actions { gap: 4px; }
  .action-btn { padding: 6px 4px; font-size: 10.5px; gap: 3px; border-radius: var(--r-md); }
  .hero-section { padding: 28px 16px; }
  .main-wrap { padding: 18px 14px 90px; }
  .modal-box  { width: 95%; border-radius: var(--r-xl); }
  .modal-body { padding: 18px; }
  .modal-header { padding: 14px 18px; }
  .modal-footer { flex-direction: column-reverse; gap: 8px !important; }
  .modal-footer .btn { width: 100%; margin: 0 !important; }
  .modal-info-box { padding: 10px 12px !important; font-size: 11.5px !important; margin-bottom: 12px !important; }
  .form-group { margin-bottom: 12px; }
  .form-label { font-size: 12px; }
  .form-control { font-size: 13px; padding: 9px 12px; }
  .toast-container { left: 14px; right: 14px; bottom: 76px; }
  .card-actions .action-btn { flex: 1; }
  .admin-card-header { padding: 13px 14px; }
  .stat-card { padding: 14px; gap: 11px; }
  .stat-icon { width: 40px; height: 40px; font-size: 19px; }
  .stat-num { font-size: 22px; }
  .quick-action-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 14px; }
}
