/* ============================================================
   Astgen Admin Panel Stylesheet
   Path: assets/css/admin.css
   ============================================================ */

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f9;
}

/* ============ Sidebar ============ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 250px;
  background: #1e293b;
  color: #cbd5e1;
  overflow-y: auto;
  transition: all 0.3s;
  z-index: 1000;
}
.sidebar-brand {
  padding: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid #334155;
  display: flex; align-items: center; gap: 10px;
}
.sidebar-brand img { max-height: 35px; }
.sidebar-user {
  padding: 15px 20px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
  font-size: 13px;
}
.sidebar-user .name { color: #fff; font-weight: 600; display: block; }
.sidebar-user .role {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-top: 4px;
}
.sidebar-user .profile-link {
  display: inline-block;
  color: #94a3b8;
  font-size: 11px;
  text-decoration: none;
  margin-top: 6px;
}
.sidebar-user .profile-link:hover { color: #fff; }

.sidebar-menu { list-style: none; padding: 10px 0; margin: 0; }
.sidebar-menu li a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.sidebar-menu li a:hover {
  background: #334155;
  color: #fff;
  border-left-color: #3b82f6;
}
.sidebar-menu li a.active {
  background: #334155;
  color: #fff;
  border-left-color: #3b82f6;
  font-weight: 600;
}
.sidebar-menu .menu-icon { font-size: 16px; width: 20px; text-align: center; }
.sidebar-divider {
  padding: 10px 20px;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* ============ Main Content ============ */
.main-content {
  margin-left: 250px;
  min-height: 100vh;
}
.topbar {
  background: #fff;
  padding: 12px 25px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky; top: 0; z-index: 100;
}
.topbar h5 { margin: 0; font-weight: 600; color: #1e293b; }
.topbar .btn-logout {
  background: #ef4444;
  color: #fff;
  padding: 7px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}
.topbar .btn-logout:hover { background: #dc2626; color: #fff; }

.content-area { padding: 25px; }

/* ============ Mobile ============ */
.sidebar-toggle {
  display: none;
  background: none; border: none; font-size: 22px;
  cursor: pointer; color: #1e293b;
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: inline-block; }
}

/* ============ Stat Cards ============ */
.stat-card {
  border: none;
  border-radius: 10px;
  color: #fff;
  padding: 20px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.stat-card h6 { margin: 0 0 6px 0; font-size: 13px; opacity: 0.9; text-transform: uppercase; }
.stat-card h2 { margin: 0; font-size: 32px; font-weight: 700; }
.stat-card .stat-icon { font-size: 42px; opacity: 0.3; }
.bg-total { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-pending { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-approved { background: linear-gradient(135deg, #10b981, #059669); }
.bg-rejected { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ============ Login ============ */
.login-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
.login-card {
  width: 100%; max-width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 35px 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.login-card h3 { text-align: center; margin-bottom: 25px; color: #1e293b; }

/* Photo preview */
.photo-preview {
  width: 130px; height: 160px;
  border: 2px dashed #cbd5e1;
  border-radius: 6px;
  object-fit: cover;
  background: #f8fafc;
}