/**
 * GAP Admin CMS Stylesheet
 */
:root {
  --admin-sidebar-width: 260px;
  --gap-navy: #063159;
  --gap-navy-dark: #031c33;
  --gap-green: #45752E;
  --gap-ocean: #054A77;
  --gap-gold: #F9A825;
  --admin-bg: #f4f6f9;
}

body.admin-body {
  background-color: var(--admin-bg);
  font-family: 'Poppins', sans-serif;
  color: #334155;
  margin: 0;
  padding: 0;
}

/* Sidebar */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  background-color: var(--gap-navy-dark);
  color: #cbd5e1;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  overflow-y: auto;
  transition: all 0.3s ease;
}
.admin-sidebar .brand-header {
  padding: 20px 24px;
  background-color: var(--gap-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-sidebar .brand-header img {
  max-height: 42px;
}
.admin-sidebar .nav-section {
  padding: 16px 24px 6px 24px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.admin-sidebar .nav-link {
  color: #94a3b8;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}
.admin-sidebar .nav-link.active {
  color: #ffffff;
  background-color: rgba(69, 117, 46, 0.25);
  border-left-color: var(--gap-green);
}
.admin-sidebar .nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* Main Content Area */
.admin-main {
  margin-left: var(--admin-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* Admin Navbar */
.admin-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* Stat Cards */
.stat-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.stat-card .stat-number {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gap-navy);
  line-height: 1.2;
}

/* Data Tables */
.admin-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  overflow: hidden;
}
.admin-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
}
.admin-card-body {
  padding: 24px;
}

.table thead th {
  background-color: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
}
.table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  font-size: 0.88rem;
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.show {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
}
