.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.button--md {
  min-height: 42px;
  padding: 0 16px;
}

.button--lg {
  min-height: 48px;
  width: 100%;
}

.button--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.button--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.button--ghost {
  background: #eef3ff;
  color: var(--color-primary);
}

.button--danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.card {
  padding: 20px;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: var(--card-accent, var(--color-border));
}

.stat-card--danger {
  --card-accent: var(--color-danger);
}

.stat-card--warning {
  --card-accent: var(--color-warning);
}

.stat-card--success {
  --card-accent: var(--color-success);
}

.stat-card__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--color-text-muted);
  font-weight: 700;
}

.stat-card__value {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-card__description {
  margin-top: 10px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.table-card {
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  background: #f9fbff;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-actions {
  display: flex;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.badge--success {
  color: var(--color-success);
  background: var(--color-success-soft);
}

.badge--warning {
  color: var(--color-warning);
  background: var(--color-warning-soft);
}

.badge--danger {
  color: var(--color-danger);
  background: var(--color-danger-soft);
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-weight: 700;
  color: var(--color-text);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
}

.field__input:focus {
  outline: 2px solid rgba(49, 87, 213, 0.18);
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .table-card {
    overflow-x: auto;
  }

  .data-table {
    min-width: 680px;
  }
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: white;
  padding: 20px;
  margin: 100px auto;
  width: 300px;
  border-radius: 8px;
}
.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status.overdue {
  background: #fee2e2;
  color: #dc2626;
}

.status.upcoming {
  background: #fef3c7;
  color: #d97706;
}

.status.on-track {
  background: #dcfce7;
  color: #16a34a;
}
/* ==========================
   TABLE RESPONSIVE
========================== */

.table-card {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  min-width: 600px; /* prevents squishing */
}
@media (max-width: 768px) {
  button {
    width: 100%;
  }

  input, select {
    width: 100%;
  }
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);

  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  background: white;
  padding: 20px;
  border-radius: 8px;
}