/* ═══════════ PREMIUM ADMIN STYLESHEET ═══════════ */
:root {
  --admin-bg-dark: #060e0a;
  --admin-bg-medium: #0b1a13;
  --admin-bg-light: #122c20;
  --admin-primary: #D4AF37; /* Gold */
  --admin-primary-hover: #bda030;
  --admin-accent: #2e7d32; /* Rich Green */
  --admin-accent-glow: rgba(46, 125, 50, 0.3);
  --admin-text-main: #f0f4f1;
  --admin-text-muted: #8ba396;
  --admin-border: rgba(255, 255, 255, 0.05);
  --admin-border-focus: rgba(212, 175, 55, 0.4);
  --admin-glass: rgba(255, 255, 255, 0.02);
  --admin-glass-card: rgba(255, 255, 255, 0.03);
  --admin-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  background: radial-gradient(circle at top left, var(--admin-bg-medium), var(--admin-bg-dark));
  color: var(--admin-text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}

/* Typography Headings */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ═══════════ LOGIN LAYOUT ═══════════ */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  background: var(--admin-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  padding: 48px;
  box-shadow: var(--admin-shadow);
  text-align: center;
}

.login-logo {
  max-width: 160px;
  height: auto;
  margin-bottom: 24px;
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--admin-text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

/* ═══════════ FORM CONTROLS ═══════════ */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--admin-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--admin-text-main);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
  background: rgba(0, 0, 0, 0.3);
}

.form-checkbox-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  cursor: pointer;
}

.btn-admin {
  background: var(--admin-primary);
  color: #0b1a13;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
}

.btn-admin:hover {
  background: var(--admin-primary-hover);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

.form-error {
  background: rgba(234, 67, 53, 0.1);
  border: 1px solid rgba(234, 67, 53, 0.2);
  color: #ff8a80;
  font-size: 0.88rem;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  text-align: left;
}

/* ═══════════ MAIN DASHBOARD LAYOUT ═══════════ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styling */
.admin-sidebar {
  width: 280px;
  background: var(--admin-bg-medium);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 24px 30px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  max-width: 130px;
  height: auto;
}

.sidebar-menu {
  flex: 1;
  padding: 24px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--admin-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.menu-item:hover, .menu-item.active {
  color: var(--admin-text-main);
  background: var(--admin-glass-card);
}

.menu-item.active {
  border-left: 3px solid var(--admin-primary);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.user-role {
  font-size: 0.75rem;
  color: var(--admin-primary);
  text-transform: uppercase;
}

.logout-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.logout-btn:hover {
  color: #ff8a80;
}

/* Header & Main Content Area */
.admin-viewport {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-header {
  height: 80px;
  background: rgba(6, 14, 10, 0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-title h1 {
  font-size: 1.5rem;
  color: #fff;
}

.admin-main {
  flex: 1;
  padding: 40px;
}

/* Responsive elements */
.mobile-header-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 991px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-viewport {
    margin-left: 0;
  }
  .mobile-header-toggle {
    display: block;
  }
  .admin-header {
    padding: 0 20px;
  }
  .admin-main {
    padding: 20px;
  }
}

/* ═══════════ CARDS & TABLES ═══════════ */
.admin-card {
  background: var(--admin-glass-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-card-title {
  font-size: 1.25rem;
  color: #fff;
}

/* Grid & Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--admin-glass-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-info .stat-label {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-info .stat-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: #fff;
}

.stat-icon {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 50%;
  color: var(--admin-primary);
}

/* Tables styling */
.table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--admin-border);
}

.admin-table td {
  padding: 16px 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text-main);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-new { background: rgba(66, 133, 244, 0.15); color: #82b1ff; border: 1px solid rgba(66, 133, 244, 0.2); }
.badge-progress { background: rgba(251, 188, 5, 0.15); color: #ffe082; border: 1px solid rgba(251, 188, 5, 0.2); }
.badge-contacted { background: rgba(156, 39, 176, 0.15); color: #e040fb; border: 1px solid rgba(156, 39, 176, 0.2); }
.badge-booked { background: rgba(52, 168, 83, 0.15); color: #b9f6ca; border: 1px solid rgba(52, 168, 83, 0.2); }
.badge-lost { background: rgba(234, 67, 53, 0.15); color: #ff8a80; border: 1px solid rgba(234, 67, 53, 0.2); }

/* Form Controls in Details Page */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.form-group-full {
  grid-column: 1 / -1;
}

/* Actions buttons styling */
.action-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.3s;
}

.action-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.action-btn-edit:hover { color: var(--admin-primary); }
.action-btn-delete:hover { color: #ff8a80; }
.action-btn-view:hover { color: #82b1ff; }

/* ═══════════ PAGINATION STYLING ═══════════ */
.pagination {
  display: flex;
  list-style: none;
  border-radius: var(--radius-sm);
  padding-left: 0;
  gap: 6px;
  align-items: center;
}

.page-item {
  display: inline;
}

.page-item .page-link,
.page-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--admin-text-muted);
  background: var(--admin-bg-light);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-item a.page-link:hover {
  color: #fff;
  background: var(--admin-primary);
  border-color: var(--admin-primary);
}

.page-item.active span,
.page-item.active .page-link {
  color: var(--admin-bg-dark) !important;
  background: var(--admin-primary) !important;
  border-color: var(--admin-primary) !important;
  font-weight: 600;
}

.page-item.disabled span,
.page-item.disabled .page-link {
  color: rgba(255, 255, 255, 0.15) !important;
  background: transparent !important;
  border-color: var(--admin-border) !important;
  cursor: not-allowed;
}
