@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --admin-primary: #0115D8;
  --admin-primary-hover: #0110a7;
  --admin-bg: #F4F7FE;
  --admin-surface: #FFFFFF;
  --admin-text-main: #000000;
  --admin-text-muted: #333333;
  --admin-border: #E2E8F0;
  --sidebar-width: 280px;
  --sidebar-bg: #FFFFFF;
  --shadow-sm: 0px 4px 15px rgba(0, 0, 0, 0.02);
  --shadow-md: 0px 10px 25px rgba(0, 0, 0, 0.05);
  --transition: 0.3s ease;
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
}

body {
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding: 30px 20px;
  border-right: 1px solid var(--admin-border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.sidebar-brand {
  font-size: 2rem;
  font-weight: 700;
  color: var(--admin-primary);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.sidebar-menu {
  list-style: none;
  flex: 1;
}

.sidebar-menu li {
  margin-bottom: 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: 12px;
  color: var(--admin-text-muted);
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition);
  gap: 15px;
}

.sidebar-link i {
  font-size: 1.2rem;
}

.sidebar-link:hover, .sidebar-link.active {
  background-color: var(--admin-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(1, 21, 216, 0.2);
}

.logout-link {
  margin-top: auto;
  color: #E31A1A;
}
.logout-link:hover {
  background-color: #FEECEB;
  color: #E31A1A;
  box-shadow: none;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 30px 40px;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--admin-surface);
  padding: 15px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--admin-text-main);
}
.admin-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Cards & Widgets */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--admin-surface);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(1, 21, 216, 0.1);
  color: var(--admin-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.stat-info h4 {
  font-size: 0.9rem;
  color: var(--admin-text-muted);
  font-weight: 500;
  margin-bottom: 5px;
}

.stat-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--admin-text-main);
}

/* Table Style */
.table-container {
  background: var(--admin-surface);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

.admin-table th, .admin-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table th {
  color: var(--admin-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.admin-table td {
  font-weight: 500;
  color: var(--admin-text-main);
}

/* Badges */
.badge {
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
}
.badge-success { background: #E5F8ED; color: #05CD99; }
.badge-pending { background: #FFF4DE; color: #FFB547; }

/* Buttons */
.btn-admin {
  background: var(--admin-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}
.btn-admin:hover {
  background: var(--admin-primary-hover);
}
