/* public/css/styles.css */
:root {
  --bg-body: #f5f7fb;
  --card-bg: #ffffff;
  --primary: #4f46e5;
  --primary-soft: rgba(79, 70, 229, 0.08);
  --border-soft: rgba(15, 23, 42, 0.08);
  --text-main: #111827;
  --text-muted: #6b7280;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #eef2ff 0, #f5f7fb 40%, #fdfdfd 100%);
  color: var(--text-main);
}

.navbar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.navbar-brand {
  letter-spacing: 0.03em;
}

.card {
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  background: var(--card-bg);
}

.mini-card .card-body {
  padding: 0.85rem 1rem;
}

.table-modern {
  border-collapse: separate;
  border-spacing: 0 6px;
}

.table-modern tbody tr {
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.table-modern tbody tr td:first-child,
.table-modern thead tr th:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.table-modern tbody tr td:last-child,
.table-modern thead tr th:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.table-modern thead th {
  border-bottom: none !important;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn {
  border-radius: 999px;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #4338ca;
  border-color: #4338ca;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary-soft);
  background-color: rgba(79, 70, 229, 0.03);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-outline-secondary {
  border-color: rgba(148, 163, 184, 0.6);
}

.badge {
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.7rem;
}

.bg-success-soft {
  background: rgba(16, 185, 129, 0.1);
}

.bg-secondary-soft {
  background: rgba(148, 163, 184, 0.16);
}

.alert {
  border-radius: 0.85rem;
  border: none;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
}

.form-control,
.form-select {
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
}

.form-check-input {
  border-radius: 0.5rem;
}

h1, h2, h3, h4, h5 {
  letter-spacing: -0.02em;
}

.table-danger {
  background-color: rgba(248, 113, 113, 0.08) !important;
}

.table-success {
  background-color: rgba(34, 197, 94, 0.08) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

@media (max-width: 767.98px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .card {
    border-radius: 0.8rem;
  }
}
