html,
body {
  height: 100%;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  background: #eef2f7;
  color: #111827;
}

.dashboard-bg {
  background: #f4f7fb;
  min-height: 100vh;
}

.login-bg {
  background-image: url("../image/wallpaper_alpes.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.login-card h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111827;
  margin-bottom: 1.5rem;
}

.login-card .form-control {
  border-radius: 14px;
  padding: 1rem 1rem;
}

.login-card .btn-primary {
  border-radius: 14px;
  padding: 0.94rem 1rem;
}

.card {
  border: none;
  border-radius: 20px;
}

.filter-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar-brand,
.navbar .btn {
  color: #0f172a !important;
}

.btn-outline-secondary {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}

.btn-outline-secondary:hover {
  background: rgba(15, 23, 42, 0.05);
}

.btn-outline-primary:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.16);
}

.btn-outline-primary:hover span {
  color: #0f172a;
}

.login-logo {
  max-width: 210px;
  height: auto;
}

.login-side {
  background: rgba(255, 255, 255, 0.12);
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
}

.login-card {
  width: min(820px, calc(100% - 32px));
  margin: auto;
  margin-top: 18vh;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  box-shadow: 0 28px 100px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.login-card .login-form {
  padding: 0 0.5rem;
}

.header-logo {
  max-height: 42px;
  height: auto;
}

.form-label,
.text-muted {
  color: #6b7280;
}

.table-container {
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding: 0;
  box-sizing: border-box;
}

.table-container thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.table-responsive,
.card-body {
  background: #ffffff;
}

.table th,
.table td {
  vertical-align: middle;
}

.filter-card .form-control,
.card-header,
.card-body {
  background: transparent;
}

.table-responsive {
  background: #ffffff;
  border-radius: 0 0 15px 15px;
}

.navbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.btn-primary {
  background: #0f172a;
  border-color: #0f172a;
}

.btn-primary:hover {
  background: #0a1220;
  border-color: #0a1220;
}

.form-label {
  font-size: 0.9rem;
}

/* Container that limits table height and enables scrolling */
.table-container {
  /* limit height relative to viewport so the page itself doesn't scroll */
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding: 0; /* remove padding so sticky header aligns correctly */
  box-sizing: border-box;
}

/* Make table header sticky so it stays visible while scrolling */
.table-container thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f8f9fa; /* match .table-light */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.table-container table {
  margin: 0; /* ensure table starts at container top */
}

/* Slightly reduce spacing so the table card is higher on the page */
.filter-card,
.card {
  margin-bottom: 0.75rem;
}
