:root {
  --v2-bg: #f6f8fc;
  --v2-card: #ffffff;
  --v2-text: #0f172a;
  --v2-muted: #64748b;
  --v2-border: #e2e8f0;
  --v2-accent: #0f766e;
}

[data-theme="dark"] {
  --v2-bg: #0b1220;
  --v2-card: #121a2b;
  --v2-text: #f8fafc;
  --v2-muted: #cbd5e1;
  --v2-border: #475569;
}

body {
  background: linear-gradient(160deg, #eef2ff 0%, var(--v2-bg) 45%, #ecfeff 100%);
  min-height: 100vh;
  color: var(--v2-text);
}

[data-theme="dark"] body {
  background: linear-gradient(160deg, #020617 0%, #0f172a 55%, #111827 100%);
}

.v2-card {
  background: var(--v2-card);
  border: 1px solid var(--v2-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.v2-muted {
  color: var(--v2-muted);
}

.v2-badge {
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
}

.v2-status-badge-button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.v2-status-badge-button:hover,
.v2-status-badge-button:focus {
  filter: brightness(0.95);
}

.text-muted {
  color: var(--v2-muted) !important;
}

.table,
.table th,
.table td,
.form-label {
  color: var(--v2-text);
}

.table thead th {
  font-weight: 700;
  border-bottom-color: var(--v2-border);
}

.table td {
  border-color: var(--v2-border);
}

.table {
  --bs-table-bg: transparent;
}

.table a {
  color: #1d4ed8;
  text-decoration: none;
}

[data-theme="dark"] .table a {
  color: #93c5fd;
}

.table a:hover {
  text-decoration: underline;
}

.form-control,
.form-select,
textarea {
  background-color: var(--v2-card) !important;
  color: var(--v2-text) !important;
  border-color: var(--v2-border) !important;
}

.v2-filter-active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(29, 78, 216, 0.08)) !important;
  border-color: #0f766e !important;
  box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.16);
  font-weight: 600;
}

[data-theme="dark"] .v2-filter-active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(96, 165, 250, 0.14)) !important;
  border-color: #2dd4bf !important;
  box-shadow: 0 0 0 0.18rem rgba(45, 212, 191, 0.18);
}

.form-control::placeholder {
  color: var(--v2-muted);
  opacity: 1;
}

.btn-outline-dark,
.btn-outline-secondary {
  color: var(--v2-text);
  border-color: var(--v2-border);
}

.btn-outline-dark:hover,
.btn-outline-secondary:hover {
  color: #ffffff;
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.nav-pills .nav-link {
  color: var(--v2-text);
  border: 1px solid var(--v2-border);
}

.nav-pills .nav-link.active {
  background: #0f172a;
}

[data-theme="dark"] .nav-pills .nav-link.active {
  background: #1d4ed8;
}

.pagination .page-link {
  background: var(--v2-card);
  color: var(--v2-text);
  border-color: var(--v2-border);
}

.pagination .page-item.active .page-link {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.alert {
  color: var(--v2-text);
}
