/* ============================================================
   BOLERO SQUAD - ADMIN PANEL STYLESHEET (admin.css)
   Pure Vanilla CSS3 - Premium Overland Dakar & Matte Carbon Theme
   ============================================================ */

:root {
  /* SURFACE PALETTE: Deep Obsidian Slate & Brushed Carbon */
  --bg-dark: #0a0d13;
  --bg-surface: #121722;
  --bg-card: #141923;
  --bg-card-hover: #1a2230;
  --bg-input: #0c1017;
  --border-color: #1e2838;
  --border-light: rgba(255, 255, 255, 0.07);
  --border-focus: #e59b2c;

  /* BRAND ACCENTS: Warm Dakar Amber Bronze & Desert Sandstone */
  --accent-amber: #e59b2c;
  --accent-gold: #f5b748;
  --accent-dark: #b86e08;

  /* EXPEDITION HIGHLIGHT: Tactical Ice Cyan */
  --accent-cyan: #0ea5e9;
  --accent-cyan-light: #38bdf8;

  /* FUNCTIONAL & STATUS */
  --whatsapp-green: #22c55e;
  --danger: #f43f5e;
  --danger-dark: #be123c;
  --success: #10b981;
  --text-main: #f8fafc;
  --text-muted: #8c9bb0;

  /* RADII & SHADOWS */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.75);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4, .admin-brand-text h1, .metric-value {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(229, 155, 44, 0.1), transparent 70%),
    radial-gradient(circle at 90% 25%, rgba(14, 165, 233, 0.04), transparent 45%);
  background-attachment: fixed;
}

/* TOP HEADER */
header {
  background: rgba(14, 18, 25, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.admin-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.admin-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(229, 155, 44, 0.35));
}
.admin-brand-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.admin-badge-hdr {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
}
.admin-brand-text p {
  font-size: 0.7rem;
  color: var(--accent-amber);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}
.btn-primary {
  background: linear-gradient(135deg, #e59b2c 0%, #b86e08 100%);
  color: #0a0d13;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(184, 110, 8, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f5b748 0%, #cc7a0a 100%);
  box-shadow: 0 6px 20px rgba(229, 155, 44, 0.42);
  color: #000;
  transform: translateY(-1px);
}
.btn-secondary {
  background: #141923;
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: #1c2331;
  border-color: rgba(229, 155, 44, 0.4);
  transform: translateY(-1px);
}
.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}
.btn-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.btn-success:hover {
  background: rgba(16, 185, 129, 0.3);
  color: #fff;
}
.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
}

/* AUTH LOGIN OVERLAY (ADMIN ONLY) */
#adminAuthGate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.08), transparent 60%);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-header img {
  height: 60px;
  margin-bottom: 12px;
}
.auth-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.auth-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* DASHBOARD CONTENT */
#adminDashboard {
  display: none;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

/* METRIC CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.stat-info .stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}
.stat-info .stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
}

/* CONTROLS & FILTER SECTION */
.controls-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.controls-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filters-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
  gap: 12px;
}
.search-input-wrap {
  position: relative;
}
.search-input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}
.search-input-wrap input:focus {
  border-color: var(--border-focus);
}
.search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.select-control {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  width: 100%;
}
.select-control:focus {
  border-color: var(--border-focus);
}

/* DATA TABLE */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}
thead {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}
th {
  padding: 14px 16px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.75rem;
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
td {
  padding: 14px 16px;
  vertical-align: middle;
}

/* USER TABLE CELLS */
.member-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
.table-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #242c3b;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}
.table-user-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.bst-tag, .bts-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-amber);
  color: #000;
  padding: 1px 6px;
  border-radius: 10px;
  margin-top: 2px;
}
.vehicle-thumb {
  width: 50px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  background: #11141c;
  border: 1px solid var(--border-color);
  cursor: pointer;
}
.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.lock-badge.locked {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.lock-badge.unlocked {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.safari-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 200px;
}
.safari-pill {
  font-size: 0.68rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-gold);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

/* DETAILS MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay.active { 
  display: flex; 
  visibility: visible;
}
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  margin: auto;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}
.modal-header h3 { font-size: 1.15rem; font-weight: 700; color: #fff; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}
.modal-close:hover { color: #fff; }

.modal-brand-header {
  position: relative;
  text-align: center;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--border-color, #1e293b);
  background: radial-gradient(circle at 50% 20%, rgba(229, 155, 44, 0.12), transparent 70%), var(--bg-card, #0f172a);
}
.modal-brand-header .modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  z-index: 5;
  line-height: 1;
}
.modal-brand-header .modal-close:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  transform: rotate(90deg);
}
.modal-brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modal-brand-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}
.modal-body { padding: 20px; }

/* FOOTER */
footer {
  background: #06080a;
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: auto;
}
footer a { color: var(--accent-amber); text-decoration: none; }

/* ============================================================
   ADMIN MOBILE CARDS SYSTEM (ZERO HORIZONTAL SCROLL)
   ============================================================ */
.admin-mobile-cards {
  display: none;
}

@media (max-width: 768px) {
  .admin-desktop-view {
    display: none !important;
  }
  .admin-mobile-cards {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
}

.admin-member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-card-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.admin-card-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #242c3b;
  border: 2px solid var(--accent-amber);
  flex-shrink: 0;
}

.admin-card-user-text {
  min-width: 0;
  flex: 1;
}

.admin-card-user-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-card-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-info-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.76rem;
  flex-shrink: 0;
}

.admin-info-val {
  color: #f1f5f9;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.admin-info-wa {
  color: var(--whatsapp-green);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

.admin-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 2px;
}

.admin-card-actions .btn {
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .filters-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .admin-nav {
    padding: 10px 14px;
  }
  .admin-brand h1 {
    font-size: 1rem;
  }
  .admin-brand p {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }
  .stat-card {
    padding: 12px 10px;
  }
  .stat-info .stat-val {
    font-size: 1.35rem;
  }
  .stat-info .stat-lbl {
    font-size: 0.65rem;
  }
  .stat-icon {
    width: 36px;
    height: 36px;
  }
  .stat-icon svg {
    width: 18px;
    height: 18px;
  }
  .controls-panel {
    padding: 14px;
    margin-bottom: 16px;
  }
  .filters-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .toast-container {
    top: 10px !important;
    right: 10px !important;
    left: 10px !important;
    width: calc(100% - 20px) !important;
  }
}

/* ============================================================
   CUSTOM TOAST & CONFIRMATION DIALOG SYSTEM
   Replaces default browser alert() and confirm() with premium UI
   ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.custom-toast {
  pointer-events: auto;
  background: #141822;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.custom-toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}

.custom-toast.success::before { background: var(--success, #10b981); }
.custom-toast.warning::before { background: var(--accent-amber, #f59e0b); }
.custom-toast.danger::before { background: var(--danger, #ef4444); }
.custom-toast.info::before { background: #3b82f6; }

.custom-toast.closing {
  animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.custom-toast.success .toast-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.custom-toast.warning .toast-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.custom-toast.danger .toast-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.custom-toast.info .toast-icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.toast-content {
  flex: 1;
  min-width: 0;
}
.toast-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.toast-desc {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
  word-break: break-word;
}
.toast-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 1.2rem;
  line-height: 1;
  transition: color 0.2s;
}
.toast-close-btn:hover { color: #fff; }

@keyframes toastSlideIn {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(110%); opacity: 0; }
}

/* CUSTOM CONFIRM & ALERT MODAL */
.custom-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: confirmFadeIn 0.2s ease forwards;
}

.custom-confirm-card {
  background: #131720;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg, 16px);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.08);
  animation: confirmZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  text-align: center;
}

.custom-confirm-card.danger-theme {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(239, 68, 68, 0.1);
}

.custom-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-confirm-card.warning-theme .custom-confirm-icon {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 2px solid rgba(245, 158, 11, 0.25);
}

.custom-confirm-card.danger-theme .custom-confirm-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 2px solid rgba(239, 68, 68, 0.25);
}

.custom-confirm-card.success-theme .custom-confirm-icon {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 2px solid rgba(16, 185, 129, 0.25);
}

.custom-confirm-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.custom-confirm-message {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.25);
  padding: 14px 18px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border-color, #242c3b);
  text-align: left;
}

.custom-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.custom-confirm-actions .btn {
  flex: 1;
  padding: 11px 18px;
  font-size: 0.9rem;
}

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

@keyframes confirmZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   ADMIN NAVIGATION TABS (MEMBERS VS EVENTS)
   ============================================================ */
.admin-tab-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}
.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-tab-btn:hover {
  color: #fff;
  border-color: rgba(229, 155, 44, 0.4);
}
.admin-tab-btn.active {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  color: #0b0d10;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(229, 155, 44, 0.35);
}

/* EVENTS ADMIN TOP BAR */
.events-admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 20px 24px;
  border-radius: var(--radius-md);
}
.events-admin-top-text h2 {
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 4px;
}
.events-admin-top-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* EVENTS LIST IN ADMIN */
.admin-events-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.admin-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  gap: 16px;
  transition: border-color 0.2s ease;
}
.admin-event-row:hover {
  border-color: rgba(229, 155, 44, 0.4);
}
.admin-event-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}
.admin-event-thumb-wrap {
  position: relative;
  width: 90px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0b0d12;
}
.admin-event-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-event-photos-chip {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 0.6rem;
  color: #fff;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
}
.admin-event-info {
  min-width: 0;
}
.admin-event-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.admin-event-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.admin-event-meta {
  display: flex;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.admin-event-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* BULK PHOTO UPLOAD DROPZONE */
.bulk-upload-section {
  margin-top: 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.photo-dropzone {
  border: 2px dashed rgba(229, 155, 44, 0.4);
  background: rgba(229, 155, 44, 0.03);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.photo-dropzone:hover {
  border-color: var(--accent-gold);
  background: rgba(229, 155, 44, 0.08);
  transform: scale(1.005);
}
.dropzone-icon {
  color: var(--accent-amber);
  margin-bottom: 6px;
}
.dropzone-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.dropzone-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* EVENT PHOTOS PREVIEW GRID */
.event-photos-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.preview-thumb-card {
  position: relative;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: #0f131a;
  transition: all 0.2s ease;
}
.preview-thumb-card.is-cover {
  border-color: var(--accent-amber);
  box-shadow: 0 0 12px rgba(229, 155, 44, 0.4);
}
.preview-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-badge-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  color: #0b0d10;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}
.preview-thumb-actions {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}
.btn-preview-action {
  background: rgba(11, 13, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-preview-action:hover {
  background: var(--accent-amber);
  color: #0b0d10;
}
.btn-preview-action.danger:hover {
  background: var(--danger);
  color: #fff;
}

/* FORM FLEX UTILITIES */
.form-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.flex-1 { flex: 1; min-width: 0; }
.flex-2 { flex: 2; min-width: 0; }
.textarea {
  min-height: 70px;
  resize: vertical;
  line-height: 1.5;
}
.badge-chip {
  background: rgba(229, 155, 44, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 155, 44, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .events-admin-topbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .events-admin-topbar .btn {
    width: 100% !important;
  }
  .admin-event-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .admin-event-left {
    width: 100% !important;
  }
  .admin-event-actions {
    width: 100% !important;
    justify-content: flex-end !important;
  }
  .form-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
}

/* ============================================================
   PASSWORD EYE TOGGLE STYLES
   ============================================================ */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap input {
  padding-right: 44px !important;
  width: 100%;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  z-index: 5;
}

.password-toggle-btn:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}
