:root {
  --ink: #172033;
  --muted: #667085;
  --brand: #145da0;
  --brand-dark: #0d3b66;
  --accent: #f4b942;
  --canvas: #f4f7fb;
  --line: #e5eaf2;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "Nunito", sans-serif;
}

#wrapper,
#content-wrapper {
  min-height: 100vh;
}

#content-wrapper {
  background: var(--canvas);
}

.sidebar {
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand) 100%) !important;
}

.sidebar .sidebar-brand {
  min-height: 76px;
  letter-spacing: 0.02em;
}

.sidebar .sidebar-brand-icon img {
  width: 38px !important;
  height: 38px;
  -o-object-fit: contain;
     object-fit: contain;
}

.sidebar .sidebar-heading {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.sidebar .nav-item .nav-link {
  margin: 3px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.75rem 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar .nav-item .nav-link:hover,
.sidebar .nav-item.active .nav-link {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.sidebar .nav-item .nav-link i {
  color: var(--accent);
  margin-right: 0.35rem;
}

.topbar {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 14px rgba(23, 32, 51, 0.06) !important;
  min-height: 70px;
}

.container-fluid {
  padding: 1.5rem 1.75rem;
}

.h3,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-weight: 800;
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(23, 32, 51, 0.05) !important;
}

.card-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

.table {
  color: var(--ink);
  margin-bottom: 0;
}

.table thead th {
  background: #f7f9fc;
  border-bottom: 2px solid var(--line);
  color: #475467;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td,
.table th {
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #f8fbff;
}

.form-control,
.custom-select {
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  min-height: 42px;
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(20, 93, 160, 0.14);
}

label {
  color: #344054;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.btn {
  border-radius: 7px;
  font-weight: 700;
  padding: 0.6rem 1rem;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.alert {
  border-radius: 8px;
}

.pagination {
  margin-bottom: 0;
}

.avatar {
  align-items: center;
  background: var(--accent);
  color: var(--brand-dark);
  display: inline-flex;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .container-fluid {
    padding: 1rem;
  }

  .topbar {
    min-height: 62px;
  }

  .card-body,
  .card-header {
    padding: 1rem;
  }
}

