/* =============================================
   ADMIN PANEL STYLES
   ============================================= */

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

:root {
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --primary-dark: #1D4ED8;
  --accent: #06B6D4;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --pending: #8B5CF6;

  --bg-900: #050814;
  --bg-800: #080E1A;
  --bg-700: #0D1526;
  --bg-600: #162033;
  --bg-500: #1E2D45;
  --bg-400: #2A3D57;

  --text-100: #F8FAFC;
  --text-200: #E2E8F0;
  --text-300: #CBD5E1;
  --text-400: #94A3B8;
  --text-500: #64748B;

  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);

  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.2);

  --sidebar-width: 260px;
  --topbar-height: 64px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-900);
  color: var(--text-200);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-800); }
::-webkit-scrollbar-thumb { background: var(--bg-500); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; }

/* =============================================
   LOGIN PAGE
   ============================================= */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-900);
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.login-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
}

.login-bg-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #2563EB, transparent);
  top: -200px;
  left: -150px;
}

.login-bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06B6D4, transparent);
  bottom: -150px;
  right: -100px;
}

.login-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInUp 0.6s ease forwards;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.logo-badge {
  background: white;
  border: 3px solid var(--primary-light);
  border-radius: 50%;
  padding: 5px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  width: 90px !important;
  height: 90px !important;
  flex-shrink: 0;
  transition: var(--transition-base);
}

.logo-main {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.login-subtitle-top {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2rem;
}

.login-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-100);
  text-align: center;
  margin-bottom: 0.375rem;
}

.login-desc {
  font-size: 0.85rem;
  color: var(--text-500);
  text-align: center;
  margin-bottom: 2rem;
}

.login-form { display: flex; flex-direction: column; gap: 1.125rem; }

.input-group { display: flex; flex-direction: column; gap: 0.4rem; }

.input-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-300);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-500);
  font-size: 1rem;
  pointer-events: none;
}

.login-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-100);
  font-size: 0.9rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  transition: var(--transition-base);
  outline: none;
}

.login-input:focus {
  border-color: var(--primary);
  background: rgba(37,99,235,0.06);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.login-input::placeholder { color: var(--text-500); }

.login-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md);
  color: #FCA5A5;
  font-size: 0.82rem;
  padding: 0.75rem 1rem;
  display: none;
}

.login-error.visible { display: block; }

.btn-login {
  background: var(--gradient-primary);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem;
  border-radius: var(--radius-full);
  width: 100%;
  border: none;
  cursor: pointer;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-glow);
  margin-top: 0.375rem;
}

.btn-login:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(37,99,235,0.5); }

.login-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-500);
  margin-top: 1rem;
}

.login-hint code {
  background: var(--bg-600);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--accent);
  font-size: 0.8rem;
}

.login-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.82rem;
  color: var(--text-500);
  margin-top: 1rem;
  transition: var(--transition-base);
}

.login-back:hover { color: var(--primary-light); }

/* =============================================
   ADMIN LAYOUT
   ============================================= */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-800);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-slow);
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: var(--topbar-height);
}

.sidebar-logo-img {
  height: 44px;
  width: 140px;
  object-fit: cover;
  object-position: center 50%;
}

.sidebar-nav {
  padding: 1.25rem 0.75rem;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.nav-section-title:first-child { margin-top: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  color: var(--text-400);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
  margin-bottom: 0.2rem;
  position: relative;
}

.nav-item:hover {
  background: var(--glass);
  color: var(--text-200);
}

.nav-item.active {
  background: rgba(37,99,235,0.15);
  color: var(--primary-light);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: 0 3px 3px 0;
}

.nav-item-icon { font-size: 1rem; flex-shrink: 0; }
.nav-item-badge {
  margin-left: auto;
  background: var(--pending);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--glass-border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.sidebar-user:hover { background: var(--glass); }

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

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.82rem; font-weight: 600; color: var(--text-200); }
.user-role { font-size: 0.72rem; color: var(--text-500); }

.btn-logout {
  background: none;
  color: var(--danger);
  font-size: 0.85rem;
  padding: 0.375rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

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

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

/* Topbar */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-height);
  background: rgba(8, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-left { display: flex; align-items: center; gap: 1rem; }

.hamburger-admin {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  padding: 4px;
}

.hamburger-admin span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-300);
  border-radius: 2px;
  transition: var(--transition-base);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-parent {
  font-size: 0.8rem;
  color: var(--text-500);
}

.breadcrumb-sep { color: var(--text-500); font-size: 0.75rem; }

.breadcrumb-current {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-200);
}

.topbar-right { display: flex; align-items: center; gap: 0.75rem; }

.topbar-time {
  font-size: 0.8rem;
  color: var(--text-500);
  font-family: monospace;
}

.icon-btn {
  width: 36px;
  height: 36px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-400);
  transition: var(--transition-base);
  position: relative;
  cursor: pointer;
}

.icon-btn:hover { background: var(--glass); color: var(--text-100); border-color: rgba(255,255,255,0.15); }

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-800);
}

/* =============================================
   ADMIN CONTENT AREA
   ============================================= */

.admin-content {
  flex: 1;
  padding: 2rem;
}

/* Dashboard View */
.view { display: none; }
.view.active { display: block; }

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-100);
  margin-bottom: 0.25rem;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-400);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: var(--transition-base);
}

.stat-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.12); }
.stat-card:hover::after { opacity: 1; }

.stat-card.blue::after { background: var(--primary); box-shadow: 0 0 12px var(--primary); }
.stat-card.purple::after { background: var(--pending); box-shadow: 0 0 12px var(--pending); }
.stat-card.green::after { background: var(--success); box-shadow: 0 0 12px var(--success); }
.stat-card.red::after { background: var(--danger); box-shadow: 0 0 12px var(--danger); }

.stat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.stat-card.blue .stat-icon { background: rgba(37,99,235,0.15); }
.stat-card.purple .stat-icon { background: rgba(139,92,246,0.15); }
.stat-card.green .stat-icon { background: rgba(16,185,129,0.15); }
.stat-card.red .stat-icon { background: rgba(239,68,68,0.15); }

.stat-trend {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.stat-trend.up { background: rgba(16,185,129,0.15); color: var(--success); }
.stat-trend.neutral { background: rgba(100,116,139,0.15); color: var(--text-400); }

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-card.blue .stat-value { color: var(--primary-light); }
.stat-card.purple .stat-value { color: #A78BFA; }
.stat-card.green .stat-value { color: #34D399; }
.stat-card.red .stat-value { color: #F87171; }

.stat-label { font-size: 0.82rem; color: var(--text-400); font-weight: 500; }

/* Recent Table Preview */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
}

/* =============================================
   TABLE & RESERVATIONS
   ============================================= */

.card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-100);
}

.card-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-700);
  border-radius: var(--radius-md);
  padding: 4px;
}

.filter-tab {
  background: none;
  border: none;
  color: var(--text-400);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.filter-tab:hover { color: var(--text-200); }

.filter-tab.active {
  background: var(--bg-500);
  color: var(--text-100);
}

/* Search */
.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-500);
  font-size: 0.875rem;
  pointer-events: none;
}

.search-input {
  background: var(--bg-700);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-200);
  font-size: 0.82rem;
  padding: 0.5rem 0.875rem 0.5rem 2.25rem;
  outline: none;
  width: 200px;
  transition: var(--transition-base);
}

.search-input:focus {
  border-color: var(--primary);
  background: rgba(37,99,235,0.06);
  width: 240px;
}

.search-input::placeholder { color: var(--text-500); }

/* Table */
.table-scroll { overflow-x: auto; }

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

.res-table th {
  background: var(--bg-700);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.75rem 1.25rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--glass-border);
}

.res-table td {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-300);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

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

.res-table tbody tr {
  transition: var(--transition-base);
}

.res-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
  color: var(--text-200);
}

.client-name { font-weight: 600; color: var(--text-100); }
.client-email { font-size: 0.78rem; color: var(--text-500); }

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge-pending { background: rgba(139,92,246,0.15); color: #A78BFA; border: 1px solid rgba(139,92,246,0.2); }
.badge-confirmed { background: rgba(16,185,129,0.15); color: #34D399; border: 1px solid rgba(16,185,129,0.2); }
.badge-cancelled { background: rgba(239,68,68,0.15); color: #F87171; border: 1px solid rgba(239,68,68,0.2); }

/* Action buttons */
.action-btns { display: flex; gap: 0.375rem; align-items: center; }

.action-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
}

.action-btn-view { background: rgba(37,99,235,0.1); color: var(--primary-light); }
.action-btn-view:hover { background: rgba(37,99,235,0.2); }
.action-btn-confirm { background: rgba(16,185,129,0.1); color: #34D399; }
.action-btn-confirm:hover { background: rgba(16,185,129,0.2); }
.action-btn-cancel { background: rgba(239,68,68,0.1); color: #F87171; }
.action-btn-cancel:hover { background: rgba(239,68,68,0.2); }

/* Empty state */
.empty-state {
  padding: 4rem 2rem;
  text-align: center;
}

.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-title { font-size: 1rem; font-weight: 600; color: var(--text-300); margin-bottom: 0.375rem; }
.empty-desc { font-size: 0.82rem; color: var(--text-500); }

/* Quick stats widget */
.quick-stats {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: var(--bg-700);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.quick-stat-left { display: flex; align-items: center; gap: 0.75rem; }
.quick-stat-icon { font-size: 1.25rem; }
.quick-stat-label { font-size: 0.82rem; color: var(--text-400); }
.quick-stat-val { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 700; }

/* =============================================
   DETAIL MODAL
   ============================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--bg-700);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.93) translateY(16px);
  transition: var(--transition-slow);
  overflow: hidden;
}

.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

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

.modal-title-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-100);
}

.modal-close {
  width: 32px;
  height: 32px;
  background: var(--glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-400);
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: var(--transition-base);
}

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

.modal-body { padding: 1.5rem; }

.detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: start;
}

.detail-row:last-child { border-bottom: none; }

.detail-key {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.detail-value {
  font-size: 0.875rem;
  color: var(--text-200);
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-confirm-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16,185,129,0.15);
  color: #34D399;
  border: 1px solid rgba(16,185,129,0.25);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-confirm-action:hover { background: rgba(16,185,129,0.25); }

.btn-cancel-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239,68,68,0.1);
  color: #F87171;
  border: 1px solid rgba(239,68,68,0.2);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
}

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

.btn-close-modal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  color: var(--text-300);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-close-modal:hover { background: var(--glass); color: var(--text-100); }

/* =============================================
   EMAIL / MESSAGES VIEW
   ============================================= */

.emails-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.email-item {
  background: var(--bg-700);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition-base);
}

.email-item:hover { border-color: rgba(255,255,255,0.12); }

.email-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.email-icon.confirmed { background: rgba(16,185,129,0.15); }
.email-icon.cancelled { background: rgba(239,68,68,0.1); }

.email-info { flex: 1; min-width: 0; }

.email-recipient {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-100);
  margin-bottom: 0.2rem;
}

.email-subject {
  font-size: 0.82rem;
  color: var(--text-400);
  margin-bottom: 0.375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-preview {
  font-size: 0.78rem;
  color: var(--text-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-meta {
  text-align: right;
  flex-shrink: 0;
}

.email-time { font-size: 0.72rem; color: var(--text-500); }
.email-type-badge {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.email-type-badge.confirmed { background: rgba(16,185,129,0.15); color: #34D399; }
.email-type-badge.cancelled { background: rgba(239,68,68,0.1); color: #F87171; }

/* =============================================
   TOAST
   ============================================= */

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-600);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 380px;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: auto;
}

.toast.exit { animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-size: 0.85rem; font-weight: 600; color: var(--text-100); }
.toast-message { font-size: 0.78rem; color: var(--text-400); }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--primary); }
.toast.warning { border-left: 3px solid var(--warning); }

/* =============================================
   ANIMATIONS
   ============================================= */

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px); }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }

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

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

  .hamburger-admin { display: flex; }

  .admin-content { padding: 1.25rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.875rem; }

  .topbar-time { display: none; }

  .search-input { width: 160px; }
  .search-input:focus { width: 180px; }

  .card-header { flex-direction: column; align-items: flex-start; }

  .filter-tabs { overflow-x: auto; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .modal-footer { flex-direction: column; }
  .modal-footer button { width: 100%; justify-content: center; }
}
