/* =====================================================
   ACADEMIA PRO - DESIGN SYSTEM
   Aesthetic: Dark Industrial + Neon Accents
   ===================================================== */

:root {
  --bg-deep:     #0a0a0f;
  --bg-dark:     #111118;
  --bg-card:     #16161f;
  --bg-input:    #1c1c28;
  --bg-hover:    #1e1e2e;
  --border:      #2a2a3d;
  --border-light:#333348;
  
  --neon:        #00f5a0;
  --neon-dim:    #00c87a;
  --neon-glow:   rgba(0, 245, 160, 0.15);
  --accent:      #7c3aed;
  --accent-dim:  #6d28d9;
  --danger:      #ef4444;
  --warning:     #f59e0b;
  --info:        #3b82f6;
  --success:     #10b981;
  
  --text-primary: #f1f1f8;
  --text-secondary:#9898b3;
  --text-muted:   #5a5a7a;
  
  --sidebar-w:   260px;
  --topbar-h:    64px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-neon: 0 0 20px rgba(0,245,160,0.2);
  --transition:  all 0.2s cubic-bezier(0.4,0,0.2,1);
  
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--neon); text-decoration: none; }
a:hover { color: var(--neon-dim); }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; }

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

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

.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #000; flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: block; line-height: 1.1;
}

.logo-sub {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  display: block;
}

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

.nav-section { margin-bottom: 4px; }

.nav-section-title {
  display: block;
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
  border-radius: 0;
  margin: 1px 8px;
  border-radius: 8px;
}

.nav-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }

.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-item.active {
  color: var(--neon);
  background: var(--neon-glow);
  font-weight: 500;
}

.nav-item.active i { color: var(--neon); }

.badge-pulse {
  width: 8px; height: 8px;
  background: var(--neon);
  border-radius: 50%;
  margin-left: auto;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}

.user-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }

.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 12px; font-weight: 700;
  color: white; flex-shrink: 0;
  overflow: hidden;
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-details { min-width: 0; }
.user-name { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { display: block; font-size: 11px; color: var(--text-muted); text-transform: capitalize; }

.btn-logout {
  color: var(--text-muted);
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-logout:hover { color: var(--danger); background: rgba(239,68,68,0.1); }

/* =====================================================
   MAIN LAYOUT
   ===================================================== */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.topbar {
  height: var(--topbar-h);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky; top: 0; z-index: 100;
}

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

.sidebar-toggle {
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 18px; padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
  display: none;
}

.breadcrumb-current {
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700;
  color: var(--text-primary);
}

.search-wrapper {
  position: relative;
}

.search-wrapper input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px 8px 36px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  width: 220px;
  transition: var(--transition);
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--neon);
  width: 280px;
}

.search-wrapper > i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  max-height: 300px; overflow-y: auto;
}

.search-dropdown.show { display: block; }

.search-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg-hover); }
.search-item strong { display: block; font-size: 13px; }
.search-item small { color: var(--text-muted); font-size: 11px; }

.search-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
}

.search-empty { padding: 12px; text-align: center; color: var(--text-muted); font-size: 12px; }

.icon-btn {
  width: 36px; height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
  position: relative;
}

.icon-btn:hover { color: var(--text-primary); border-color: var(--neon); }

.notif-wrapper { position: relative; }

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 200;
  max-height: 400px;
  overflow-y: auto;
}

.notif-dropdown.show { display: block; }

.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.notif-item {
  display: flex; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: var(--transition);
}

.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { background: rgba(0,245,160,0.04); }

.notif-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  background: var(--bg-hover);
  color: var(--neon);
}

.notif-body strong { display: block; font-size: 12.5px; }
.notif-body p { font-size: 11.5px; color: var(--text-secondary); margin: 2px 0; }
.notif-body small { color: var(--text-muted); font-size: 10.5px; }
.notif-empty { text-align: center; padding: 24px; color: var(--text-muted); }
.notif-empty i { font-size: 24px; display: block; margin-bottom: 8px; }

.btn-checkin {
  background: var(--neon);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  letter-spacing: 0.3px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-checkin:hover { background: var(--neon-dim); color: #000; transform: translateY(-1px); }

.content {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  width: 100%;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

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

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

.card-title {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-secondary);
}

/* STAT CARDS */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--stat-color, var(--neon));
}

.stat-card:hover { transform: translateY(-2px); border-color: var(--border-light); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: rgba(var(--stat-rgb, 0,245,160), 0.1);
  color: var(--stat-color, var(--neon));
  flex-shrink: 0;
}

.stat-body { flex: 1; }
.stat-value {
  font-family: var(--font-head);
  font-size: 28px; font-weight: 800;
  line-height: 1; margin-bottom: 4px;
}

.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-change { font-size: 12px; margin-top: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* =====================================================
   TABLES
   ===================================================== */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px; flex-wrap: wrap;
}

.table-title {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 700;
}

.table-actions { display: flex; gap: 8px; align-items: center; }

table { width: 100%; border-collapse: collapse; }

thead th {
  background: var(--bg-deep);
  padding: 10px 16px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-hover); }

tbody td {
  padding: 12px 16px;
  font-size: 13px;
  vertical-align: middle;
}

.td-muted { color: var(--text-muted); }

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

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

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--neon-glow);
}

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

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

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

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

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border: none; border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--neon);
  color: #000;
}
.btn-primary:hover { background: var(--neon-dim); transform: translateY(-1px); box-shadow: var(--shadow-neon); color: #000; }

.btn-secondary {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-light); }

.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { background: var(--accent-dim); transform: translateY(-1px); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--danger);
}
.btn-danger:hover { background: var(--danger); color: white; }

.btn-success {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--success);
}
.btn-success:hover { background: var(--success); color: white; }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; }

/* =====================================================
   BADGES
   ===================================================== */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-success { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge-danger  { background: rgba(239,68,68,0.15);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-info    { background: rgba(59,130,246,0.15); color: var(--info);    border: 1px solid rgba(59,130,246,0.3); }
.badge-secondary{ background: var(--bg-hover); color: var(--text-muted); border: 1px solid var(--border); }

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.alert-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: var(--success); }
.alert-danger   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.3);  color: var(--danger);  }
.alert-warning  { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: var(--warning); }
.alert-info     { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); color: var(--info);    }

.alert-close { margin-left: auto; background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; }

/* =====================================================
   MODALS
   ===================================================== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center; justify-content: center;
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 90%; max-width: 580px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow);
  animation: modalIn 0.2s ease;
}

.modal-lg { max-width: 860px; }
.modal-xl { max-width: 1100px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 800;
}

.modal-close {
  background: none; border: none;
  color: var(--text-muted); font-size: 20px;
  padding: 4px; border-radius: 6px;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-hover); }

.modal-body { padding: 24px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* =====================================================
   AVATAR
   ===================================================== */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  overflow: hidden; flex-shrink: 0;
}

.avatar-sm  { width: 32px; height: 32px; font-size: 11px; }
.avatar-md  { width: 42px; height: 42px; font-size: 14px; }
.avatar-lg  { width: 64px; height: 64px; font-size: 20px; }
.avatar-xl  { width: 96px; height: 96px; font-size: 30px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 12px;
}

.page-title {
  font-family: var(--font-head);
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.5px;
}

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

/* =====================================================
   TOASTS
   ===================================================== */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}

.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 13px; min-width: 260px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.toast.show { transform: translateX(0); }
.toast-success { border-left: 3px solid var(--success); }
.toast-success i { color: var(--success); }
.toast-danger { border-left: 3px solid var(--danger); }
.toast-danger i { color: var(--danger); }
.toast-info { border-left: 3px solid var(--info); }
.toast-info i { color: var(--info); }

/* =====================================================
   LOADING
   ===================================================== */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
}

.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 16px;
}

.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  transition: var(--transition);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.pagination a:hover { background: var(--bg-hover); color: var(--text-primary); }
.pagination .active { background: var(--neon); color: #000; border-color: var(--neon); font-weight: 700; }

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,245,160,0.08) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
  bottom: -50px; right: -50px;
  pointer-events: none;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%; max-width: 420px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow);
}

.login-logo {
  text-align: center; margin-bottom: 32px;
}

.login-logo-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--neon), var(--accent));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #000;
  margin: 0 auto 16px;
}

.login-logo h1 {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.5px;
}

.login-logo p { color: var(--text-muted); font-size: 13px; }

/* =====================================================
   CHECKIN PAGE
   ===================================================== */
.checkin-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.checkin-input-wrapper {
  display: flex; gap: 12px; max-width: 480px; margin: 0 auto;
}

.checkin-id {
  flex: 1;
  background: var(--bg-input);
  border: 2px solid var(--neon);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 20px;
  font-family: var(--font-head);
  font-weight: 700;
  text-align: center;
  letter-spacing: 4px;
  box-shadow: var(--shadow-neon);
}

.checkin-id:focus { outline: none; }

/* =====================================================
   UTILS
   ===================================================== */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-neon { color: var(--neon); }

.fw-bold { font-weight: 700; }
.fw-head { font-family: var(--font-head); }

.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }

.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

.scroll-x { overflow-x: auto; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row-3, .form-row-4 { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .search-wrapper input { width: 160px; }
  .search-wrapper input:focus { width: 200px; }
}

@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
}
