* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f4f6f9;
}

.dashboard {
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: #111827;
  color: white;
  min-height: 100vh;
  padding: 20px;
}

.logo {
  margin-bottom: 30px;
  font-size: 20px;
}

.logo span {
  color: #fbbf24;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 12px;
  margin: 8px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s;
}

.sidebar li:hover,
.sidebar .active {
  background: #1f2937;
}

/* Main */
.main-content {
  flex: 1;
  padding: 20px 30px;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.topbar input {
  padding: 8px 12px;
  width: 250px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-profile img {
  border-radius: 50%;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card h3 {
  font-size: 14px;
  color: #6b7280;
}

.card p {
  font-size: 22px;
  font-weight: bold;
  margin-top: 10px;
}

/* Charts */
.charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.chart-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
}

/* Orders Table */
.recent-orders {
  background: white;
  padding: 20px;
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  padding: 12px;
  text-align: left;
}

th {
  background: #f9fafb;
}

tr:not(:last-child) {
  border-bottom: 1px solid #eee;
}

.status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: white;
}

.shipped { background: #3b82f6; }
.pending { background: #f59e0b; }
.delivered { background: #10b981; }
