:root {
  --admin-bg: #f0f2f5;
  --sidebar-bg: #1a1a1a;
  --sidebar-text: #ffffff;
  --card-bg: #ffffff;
}

body {
  background-color: var(--admin-bg);
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 0 25px 30px;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  border-bottom: 1px solid #333;
}

.sidebar-nav {
  margin-top: 20px;
}

.nav-link {
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
  color: #888;
  border-left: 4px solid transparent;
}

.nav-link:hover, .nav-link.active {
  background: #333;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

.admin-main {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-info h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.stat-info p {
  color: var(--text-muted);
  font-size: 14px;
}

.data-table-container {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

th {
  text-align: left;
  padding: 15px;
  border-bottom: 2px solid var(--admin-bg);
  color: var(--text-muted);
  font-weight: 600;
}

td {
  padding: 15px;
  border-bottom: 1px solid var(--admin-bg);
}

.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.status-delivered { background: #e8f5e9; color: #2e7d32; }
.status-processing { background: #fff3e0; color: #ef6c00; }
.status-shipped { background: #e3f2fd; color: #1565c0; }
.status-success { background: #e8f5e9; color: #2e7d32; }
.status-warning { background: #fff3e0; color: #ef6c00; }

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-weight: 600;
}

.btn-primary { background: var(--primary-color); color: white; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
