
:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: #0b1020;
  color: #f8fafc;
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; }

.hidden { display: none !important; }

button, input { font: inherit; }

button {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  padding: 12px 18px;
  background: #6366f1;
  color: white;
  font-weight: 600;
}

button:hover { filter: brightness(1.12); }

input {
  width: 100%;
  padding: 12px;
  background: #101a2e;
  color: white;
  border: 1px solid #334155;
  border-radius: 8px;
  outline: none;
}

input:focus { border-color: #818cf8; }

.logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 36px;
  background: #151e30;
  border: 1px solid #293449;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-card h1 { margin-bottom: 0; }
.login-card p { color: #94a3b8; }
.login-card label { font-size: 13px; color: #cbd5e1; }
.error { color: #f87171; min-height: 20px; }

.dashboard { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  background: #111827;
  border-right: 1px solid #263248;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-label {
  color: #64748b;
  font-size: 11px;
  letter-spacing: 2px;
}

.sidebar nav { display: flex; flex-direction: column; gap: 8px; }

.sidebar a {
  color: #94a3b8;
  padding: 12px;
  text-decoration: none;
  border-radius: 8px;
}

.sidebar a:hover, .sidebar .nav-active {
  background: #242b4b;
  color: #c7d2fe;
}

.logout { margin-top: auto; background: #283249; }

.content { flex: 1; padding: 40px; min-width: 0; }

header, .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

h1 { font-size: 28px; }
h2 { margin-bottom: 6px; }

.eyebrow {
  color: #818cf8;
  font-size: 11px;
  letter-spacing: 2px;
}

.secondary-btn { background: #25304a; }

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

.stat-card, .orders-panel {
  background: #151e30;
  border: 1px solid #293449;
  border-radius: 14px;
  padding: 24px;
}

.stat-card span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 16px;
}

.stat-card strong { font-size: 28px; }

.orders-panel { margin-top: 20px; }

.section-header { margin-bottom: 24px; }
.section-header p { color: #94a3b8; }
.section-header input { max-width: 300px; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

th, td {
  padding: 15px;
  border-bottom: 1px solid #283449;
  white-space: nowrap;
}

th { color: #94a3b8; font-weight: 500; }

.status {
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.status-paid { background: #064e3b; color: #6ee7b7; }
.status-pending { background: #78350f; color: #fcd34d; }
.status-other { background: #334155; color: #e2e8f0; }

@media (max-width: 950px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 190px; }
  .content { padding: 24px; }
}

@media (max-width: 650px) {
  .dashboard { flex-direction: column; }
  .sidebar { width: 100%; padding: 20px; }
  .sidebar nav { flex-direction: row; }
  .logout { margin-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section-header, header { align-items: stretch; flex-direction: column; }
  .section-header input { max-width: none; }
}
.cancel-btn {
  background: #7f1d1d;
  color: #fecaca;
  padding: 8px 12px;
  font-size: 12px;
}

.cancel-btn:hover {
  background: #991b1b;
}

.cancel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}