/* assets/dashboard.css */
:root {
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --accent: #f97316;
  --accent-soft: #fef3c7;
  --border: #e5e7eb;
}

[data-theme="dark"] {
  --bg: #020617;
  --bg-card: #0f172a;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #fb923c;
  --accent-soft: #7c2d12;
  --border: #1f2937;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fed7aa, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-weight: 800;
}

h1 {
  font-size: 20px;
  margin: 0;
}

.theme-toggle {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 6px 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
}

.main {
  padding: 20px 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 2fr 1.2fr;
  }
}

.card {
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input,
.select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.input:focus,
.select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  gap: 6px;
}

.button-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
}

.button-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
}

.badge-status-new { background:#e0f2fe; color:#0369a1; }
.badge-status-preparing { background:#fef3c7; color:#92400e; }
.badge-status-on_the_way { background:#e0f2fe; color:#075985; }
.badge-status-delivered { background:#dcfce7; color:#166534; }
.badge-status-canceled_user { background:#fee2e2; color:#991b1b; }
.badge-status-failed_delivery { background:#fef3c7; color:#92400e; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 6px 8px;
  text-align: left;
  vertical-align: middle;
}

.table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.table tr:last-child td {
  border-bottom: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
}

.text-muted { color: var(--text-muted); font-size: 13px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.flex { display:flex; }
.flex-between { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.flex-gap-sm { display:flex; gap:8px; align-items:center; }

