:root {
  --primary: #2563eb;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #ea580c;
  --purple: #9333ea;
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #1f2937;
  --border: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

body { background: var(--bg); color: var(--text); }

/* Login */
.login-body {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.logo { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }

.login-box input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

.login-box button {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.error { color: var(--danger); margin-top: 10px; font-size: 0.9rem; }

/* Navbar */
.navbar {
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand { font-size: 1.3rem; font-weight: 700; color: var(--primary); }

.nav-user { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-left: 4px solid var(--primary);
}

.card.green { border-left-color: var(--success); }
.card.orange { border-left-color: var(--warning); }
.card.purple { border-left-color: var(--purple); }

.card h3 { font-size: 0.85rem; text-transform: uppercase; color: #6b7280; margin-bottom: 8px; }

.big { font-size: 2rem; font-weight: 700; color: var(--text); }

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  background: white;
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tab-btn {
  padding: 10px 18px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #6b7280;
}

.tab-btn.active { background: var(--primary); color: white; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.form-grid .full { grid-column: 1 / -1; }

label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: #4b5563; }

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.2s;
}

input:focus, select:focus { outline: none; border-color: var(--primary); }

/* Buttons */
.btn-primary { background: var(--primary); color: white; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-danger { background: var(--danger); color: white; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-small { background: #e5e7eb; border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
.btn-large { width: 100%; font-size: 1.1rem; padding: 16px; }

/* Table */
.table-wrap { overflow-x: auto; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }

th { background: #f9fafb; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; color: #6b7280; }

tr:hover { background: #f9fafb; }

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-queue { background: #fef3c7; color: #92400e; }
.badge-washing { background: #dbeafe; color: #1e40af; }
.badge-finished { background: #d1fae5; color: #065f46; }
.badge-paid { background: #e0e7ff; color: #3730a3; }

.filters { display: flex; gap: 10px; margin-bottom: 1rem; flex-wrap: wrap; align-items: end; }
.filters input, .filters select { width: auto; min-width: 150px; }

/* Responsive */
@media (max-width: 768px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .big { font-size: 1.5rem; }
  .navbar { padding: 1rem; }
  .container { padding: 1rem; }
  th, td { padding: 8px; font-size: 0.8rem; }
}
