:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --light-green: #e8f5e9;
  --text-dark: #1a1a1a;
  --text-muted: #666;
  --border: #e0e0e0;
  
  /* Status Colors */
  --status-diterima: #1976d2;
  --status-packing: #ed6c02;
  --status-kurir: #7b1fa2;
  --status-perjalanan: #0288d1;
  --status-selesai: #388e3c;
  --status-batal: #c62828;
}

body {
  background: #f8f9fa;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text-dark);
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: white;
  min-height: 100vh;
  padding: 1rem;
  position: sticky;
  top: 0;
}

.sidebar .brand {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 1rem;
}

.sidebar .nav-link {
  color: rgba(255,255,255,0.85);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin: 0.2rem 0;
  transition: all 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: rgba(255,255,255,0.15);
  color: white;
  font-weight: 500;
}

.sidebar .nav-link i {
  width: 22px;
  margin-right: 8px;
  text-align: center;
}

.sidebar .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Stats Cards */
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Filter Chips */
.filter-chip {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Status Badge */
.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-diterima { background: #e3f2fd; color: var(--status-diterima); }
.status-packing { background: #fff3e0; color: var(--status-packing); }
.status-kurir { background: #f3e5f5; color: var(--status-kurir); }
.status-perjalanan { background: #e1f5fe; color: var(--status-perjalanan); }
.status-selesai { background: #e8f5e9; color: var(--status-selesai); }
.status-batal { background: #ffebee; color: var(--status-batal); }

/* Order Row */
.order-row {
  border-left: 4px solid var(--primary);
  transition: box-shadow 0.2s;
}

.order-row:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.order-row.status-packing { border-left-color: var(--status-packing); }
.order-row.status-kurir { border-left-color: var(--status-kurir); }
.order-row.status-perjalanan { border-left-color: var(--status-perjalanan); }
.order-row.status-selesai { border-left-color: var(--status-selesai); }
.order-row.status-batal { border-left-color: var(--status-batal); }

/* Status Timeline */
.status-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 20px 0;
  padding: 0 10px;
}

.status-timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: var(--border);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 18%;
}

.timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.timeline-step.active .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(46,125,50,0.2);
}

.timeline-step.completed .timeline-dot {
  background: var(--status-selesai);
}

.timeline-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-step.active .timeline-label {
  color: var(--primary);
  font-weight: 600;
}

/* Action Buttons */
.action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px;
  transition: all 0.2s;
  border: none;
  font-size: 0.9rem;
}

.action-btn:hover {
  transform: scale(1.05);
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .timeline-step { width: 16%; }
  .timeline-label { font-size: 0.6rem; }
  .status-timeline { flex-wrap: wrap; }
}

/* Utilities */
.text-purple { color: #7b1fa2 !important; }
.product-thumb {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--light-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}