:root,
[data-theme="light"] {
  --bg-body: #f8f9fa;
  --bg-card: #fff;
  --text: #212529;
  --text-muted: #6c757d;
  --border: #dee2e6;
  --table-stripe: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
  --bg-body: #1a1d21;
  --bg-card: #25282c;
  --text: #e9ecef;
  --text-muted: #adb5bd;
  --border: #495057;
  --table-stripe: rgba(255, 255, 255, 0.03);
}

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

.table-excel {
  font-size: 0.95rem;
}

.table-excel th {
  position: sticky;
  top: 0;
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.table td,
.table th {
  border-color: var(--border);
  color: var(--text);
}

.table-striped tbody tr:nth-of-type(odd) {
  background: var(--table-stripe);
}

.table-hover tbody tr:hover {
  background: var(--table-stripe);
}

.navbar,
.card,
.border {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text);
}

.form-control,
.form-select {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.form-control::placeholder {
  color: var(--text-muted);
}

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

.btn-theme {
  padding: 0.25rem 0.5rem;
  font-size: 1.1rem;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.status-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #b38600;
  border: 1px solid rgba(255, 193, 7, 0.5);
}
[data-theme="dark"] .status-pending {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.status-pending::before {
  content: "●";
  color: #ffc107;
  font-size: 0.65rem;
  vertical-align: middle;
}

.status-approved {
  background: rgba(40, 167, 69, 0.2);
  color: #1e7e34;
  border: 1px solid rgba(40, 167, 69, 0.5);
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.35);
}
[data-theme="dark"] .status-approved {
  background: rgba(40, 167, 69, 0.2);
  color: #5dd879;
  box-shadow: 0 0 10px rgba(93, 216, 121, 0.4);
}

.status-approved::before {
  content: "✓";
  color: #28a745;
  font-weight: bold;
}
[data-theme="dark"] .status-approved::before {
  color: #5dd879;
}

.status-revoke {
  background: rgba(108, 117, 125, 0.25);
  color: #495057;
  border: 1px solid rgba(108, 117, 125, 0.4);
}
[data-theme="dark"] .status-revoke {
  background: rgba(108, 117, 125, 0.2);
  color: #adb5bd;
}

.status-deny,
.status-rejected {
  background: rgba(220, 53, 69, 0.2);
  color: #b21f2d;
  border: 1px solid rgba(220, 53, 69, 0.45);
}
[data-theme="dark"] .status-deny,
[data-theme="dark"] .status-rejected {
  background: rgba(220, 53, 69, 0.2);
  color: #f18a94;
}


.status-completed {
  background: rgba(23, 162, 184, 0.2);
  color: #0c5460;
  border: 1px solid rgba(23, 162, 184, 0.4);
}
[data-theme="dark"] .status-completed {
  color: #5bc0de;
}
