html {
  font-size: 14px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background-color: #f8f9fa;
}

.crafted-footer {
  background: linear-gradient(120deg, #7b2ff7, #4776e6, #00c6ff);
  color: #fff;
  box-shadow: 0 -0.5rem 1.5rem rgba(71, 118, 230, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
}

.crafted-footer__line {
  line-height: 1.4;
}

.footer-icon-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-icon-link:hover {
  color: #ffe8a1;
  border-color: #ffe8a1;
  transform: translateY(-2px);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.navbar-nav .nav-link {
    white-space: nowrap;
}

.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    z-index: 1000;
}

/* ===== Table Headers — Solid Deep Purple ===== */
@media screen {
    /* All table headers get deep purple (scoped to screen so print is unaffected) */
    .table > thead {
        --bs-table-color: #e0e7ff;
        --bs-table-bg: #3730a3;
        --bs-table-striped-color: #e0e7ff;
        --bs-table-border-color: rgba(129, 140, 248, 0.3);
        color: #e0e7ff;
        border-color: rgba(129, 140, 248, 0.3);
    }

    /* Numeric / amount columns — lighter indigo so data columns visually recede */
    .table > thead th.text-end,
    .table > thead th.text-center {
        color: #a5b4fc !important;
    }

    /* tfoot totals — one shade darker than thead so it reads as a summary row */
    .table > tfoot.table-light,
    .table > tfoot.table-dark,
    .table > tfoot.fw-bold {
        --bs-table-color: #e0e7ff;
        --bs-table-bg: #312e81;
        --bs-table-border-color: rgba(129, 140, 248, 0.3);
        color: #e0e7ff;
        border-color: rgba(129, 140, 248, 0.3);
    }
}
