/* ==========================================================================
   Modern Design System:
   - High-End Mobile Participant Portal (VIP Event App Feel)
   - Clean Enterprise SaaS Admin Dashboard
   ========================================================================== */

:root {
  --bg-app: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-hover: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  
  --primary-navy: #090d16;
  --primary-accent: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-subtle: #eff6ff;
  
  --accent-wa: #15803d;
  --accent-wa-hover: #166534;
  --accent-amber: #d97706;
  --accent-amber-bg: #fef3c7;

  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-float: 0 16px 36px -6px rgba(15, 23, 42, 0.16), 0 6px 12px -3px rgba(15, 23, 42, 0.06);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.5;
}

/* ==========================================================================
   1. PARTICIPANT VIEW (index.php) - VIP MOBILE EVENT APP
   ========================================================================== */
body.page-participant {
  background-color: #070a12;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-app);
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 96px; /* Space for floating dock */
  overflow-x: hidden;
}

.no-nav-padding {
  padding-bottom: 30px;
}

/* --- Hero Banner Section --- */
.hero-banner {
  background: linear-gradient(150deg, #090d16 0%, #172554 60%, #1e3a8a 100%);
  color: var(--text-inverse);
  padding: 32px 20px 36px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #93c5fd;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 6px;
  line-height: 1.45;
}

/* --- Live Digital Countdown Cards --- */
.countdown-container {
  margin: 18px 0 4px;
}

.countdown-header-label {
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown-digit-box {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 8px 4px 6px;
  text-align: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.countdown-num {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.countdown-unit {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* --- VIP Participant Identity Badge (Boarding Pass Feel) --- */
.user-boarding-pass {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin: -20px 16px 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 5;
}

.pass-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pass-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.pass-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pass-fullname {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.pass-verified-icon {
  color: #2563eb;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.pass-dept {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

.btn-switch-account {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-switch-account:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* --- Content Tabs --- */
.content-body {
  padding: 0 16px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.15s ease-in-out;
}

.tab-content.active {
  display: block;
}

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

/* --- Modern Card Architecture --- */
.panel-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-chip {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-chip-blue { background: #eff6ff; color: #2563eb; }
.icon-chip-emerald { background: #ecfdf5; color: #059669; }
.icon-chip-amber { background: #fef3c7; color: #d97706; }
.icon-chip-purple { background: #f5f3ff; color: #7c3aed; }

.icon-chip svg {
  width: 17px;
  height: 17px;
}

/* Meta Data Fields */
.meta-field {
  margin-bottom: 12px;
}

.meta-field:last-child {
  margin-bottom: 0;
}

.meta-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.meta-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.pill-badge.highlight {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.15s ease;
}

.btn-cta:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-alt);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
  transition: all 0.15s ease;
}

.btn-secondary-link:hover {
  background: #e2e8f0;
}

/* --- Contact PIC Cards with Direct WhatsApp Button --- */
.pic-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}

.pic-card:hover {
  border-color: var(--border-subtle);
}

.pic-card:last-child {
  margin-bottom: 0;
}

.pic-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.pic-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-accent);
  margin-top: 1px;
}

.pic-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.btn-whatsapp:active {
  transform: scale(0.96);
}

/* --- iOS Style Segmented Day Selector (No Horizontal Scroll) --- */
.day-nav {
  display: flex;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  width: 100%;
  gap: 4px;
}

.day-pill {
  flex: 1;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.day-pill.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-subtle);
  font-weight: 700;
}

/* Timeline */
.timeline-flow {
  position: relative;
  padding-left: 20px;
}

.timeline-flow::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-light);
}

.timeline-node {
  position: relative;
  margin-bottom: 18px;
}

.timeline-node:last-child {
  margin-bottom: 0;
}

.timeline-pin {
  position: absolute;
  left: -20px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 3px solid var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.timeline-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-accent);
  letter-spacing: 0.02em;
}

.timeline-act {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2px;
}

.timeline-loc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Packing List Progress Bar & Checkbox --- */
.packing-progress-wrapper {
  margin-bottom: 14px;
  background: var(--surface-alt);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 7px;
  background: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  user-select: none;
}

.check-item:last-child {
  border-bottom: none;
}

.check-item input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #10b981;
  cursor: pointer;
}

.check-label {
  font-size: 13.5px;
  color: var(--text-main);
  flex: 1;
  transition: all 0.15s ease;
}

.check-item.checked .check-label {
  text-decoration: line-through;
  color: var(--text-subtle);
}

/* --- Floating Bottom Navigation Dock (High-End Island Style) --- */
.bottom-dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 440px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-pill);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 4px 6px;
  z-index: 50;
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-subtle);
  font-size: 11px;
  font-weight: 600;
  gap: 2px;
  padding: 5px 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.dock-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.9px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.dock-btn.active {
  color: var(--primary-accent);
  font-weight: 700;
}

.dock-btn.active svg {
  transform: translateY(-2px);
  color: var(--primary-accent);
}

.dock-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-accent);
}

/* Forms */
.form-field {
  margin-bottom: 14px;
}

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

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.toast-msg {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.toast-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* ==========================================================================
   2. ADMIN DASHBOARD (admin.php) - CLEAN ENTERPRISE SAAS LAYOUT
   ========================================================================== */
body.page-admin {
  background: #f8fafc;
  display: block;
  width: 100%;
  min-height: 100vh;
}

.admin-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Fixed Left Sidebar */
.admin-sidebar {
  width: 260px;
  background: #090d16;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-brand-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.sidebar-event-name {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  line-height: 1.3;
}

/* Navigation items */
.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-link span {
  flex: 1;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-link.active {
  background: rgba(37, 99, 235, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.nav-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.nav-link.active .nav-badge {
  background: rgba(37, 99, 235, 0.3);
  color: #93c5fd;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-preview {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-preview:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-logout {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Main Content Area */
.admin-main-wrapper {
  margin-left: 260px;
  flex: 1;
  width: calc(100% - 260px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

/* Header bar */
.admin-header-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: #090d16;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-shrink: 0;
}

.page-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.page-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Main page body container */
.admin-content-container {
  padding: 24px 32px 60px;
  flex: 1;
  max-width: 1200px;
  width: 100%;
}

/* Data Table */
.data-table-container {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-subtle);
  background: #ffffff;
}

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

.data-table th {
  background: var(--surface-alt);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #f8fafc;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-alt);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-danger:hover {
  background: #fee2e2;
}

.btn-primary-sm {
  background: var(--primary-accent);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-primary-sm:hover {
  background: var(--primary-hover);
}

/* Sidebar Backdrop on Mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 95;
}

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 270px;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

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

  .admin-main-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .menu-toggle-btn {
    display: inline-flex;
  }

  .admin-header-bar {
    padding: 14px 16px;
  }

  .admin-content-container {
    padding: 16px;
  }

  .page-title {
    font-size: 17px;
  }

  .page-desc {
    display: none;
  }

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