/* ======== Variables ======== */
:root {
  --sidebar-w: 240px;
  --sidebar-bg: #1e2433;
  --sidebar-text: #a0abbe;
  --sidebar-active-bg: rgba(255,255,255,0.08);
  --sidebar-active-text: #fff;
  --accent: #4e73df;
  --body-bg: #f4f6fb;
}

/* ======== Base ======== */
body {
  margin: 0;
  background: var(--body-bg);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9rem;
}

/* ======== Sidebar ======== */
#sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.6rem; }
.logo-text  { color: #fff; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.5px; }

.sidebar-nav {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  flex: 1;
}
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 6px;
  margin: 2px 8px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-nav li a:hover  { background: var(--sidebar-active-bg); color: #fff; }
.sidebar-nav li a.active { background: var(--accent); color: #fff; }
.sidebar-nav li a .bi    { font-size: 1rem; flex-shrink: 0; }
.sidebar-nav .nav-section {
  padding: 14px 20px 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.3);
}
.sidebar-nav .ms-auto { margin-left: auto !important; }

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-name  { color: var(--sidebar-text); font-size: 0.82rem; }
.logout-btn  { color: #e06c6c; font-size: 0.82rem; text-decoration: none; }
.logout-btn:hover { color: #ff8080; }

/* ======== Main content ======== */
#main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: #fff;
  padding: 14px 28px;
  border-bottom: 1px solid #e8ecf0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.topbar-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d3748;
}

.content-body {
  padding: 24px 28px;
  flex: 1;
}

/* ======== Stat cards ======== */
.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
  border-left: 4px solid transparent;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.stat-card.pending  { border-color: #f6c23e; }
.stat-card.approved { border-color: #1cc88a; }
.stat-card.rejected { border-color: #e74a3b; }

.stat-icon { font-size: 2rem; line-height: 1; }
.stat-card.pending  .stat-icon { color: #f6c23e; }
.stat-card.approved .stat-icon { color: #1cc88a; }
.stat-card.rejected .stat-icon { color: #e74a3b; }

.stat-num   { font-size: 1.8rem; font-weight: 700; color: #2d3748; line-height: 1; }
.stat-label { font-size: 0.78rem; color: #718096; margin-top: 2px; }

/* ======== Tables ======== */
.table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: #718096; }
.table td { vertical-align: middle; }
.font-monospace { font-family: monospace; font-size: 0.82rem !important; }

/* ======== Login page ======== */
.login-page {
  background: var(--sidebar-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: #fff;
  border-radius: 14px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.login-logo { font-size: 3rem; text-align: center; }
.login-title {
  text-align: center;
  font-weight: 700;
  margin: 8px 0 2px;
  color: #1e2433;
}
.login-subtitle {
  text-align: center;
  color: #718096;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* ======== Responsive ======== */
@media (max-width: 768px) {
  #sidebar { transform: translateX(-100%); }
  #main-content { margin-left: 0; }
}
