:root {
  --bg: #f3f6fc;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #d6deeb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --soft: #eef2ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #edf3ff 0%, #f8fbff 100%);
  color: var(--text);
}

.container {
  max-width: 1320px;
  margin: 28px auto;
  padding: 0 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.login-card {
  max-width: 460px;
  margin: 72px auto;
  padding: 28px;
  display: grid;
  gap: 10px;
  background: linear-gradient(160deg, #ffffff 0%, #f6f8ff 100%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}

button {
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  filter: brightness(0.95);
}

button.secondary {
  background: #6b7280;
}

button.secondary:hover {
  background: #4b5563;
}

.toolbar {
  margin-bottom: 14px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  background: linear-gradient(140deg, #ffffff 0%, #f8faff 100%);
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.toolbar-actions input {
  min-width: 170px;
}

.quick-filters {
  margin-bottom: 12px;
  padding: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 999px;
}

.danger-btn {
  background: #dc2626;
  padding: 6px 10px;
  font-size: 12px;
}

.danger-btn:hover {
  background: #b91c1c;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stats .card {
  padding: 16px;
}

.stats h3 {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.stats p {
  font-size: 26px;
  font-weight: 700;
}

.table-card {
  padding: 12px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 9px 10px;
  font-size: 12px;
  vertical-align: top;
}

th {
  background: var(--soft);
  position: sticky;
  top: 0;
}

tr:hover td {
  background: #fbfdff;
}

.message {
  margin-top: 8px;
  font-size: 13px;
  color: #b91c1c;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-actions {
    flex-wrap: wrap;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
