@font-face {
  font-family: 'ALS Wagon Variable';
  src: local('ALS Wagon Variable'), local('Wagon Variable'), url('../fonts/wagon-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

body, .navbar, .card {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: #ffffff !important;
}

.heading-wagon {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.52rem;
  line-height: 1.3;
  font-weight: 700;
  font-stretch: normal;
}

.body-wagon {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-stretch: normal;
  font-size: 0.85rem;
}

.btn-wagon {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-stretch: normal;
  font-size: 1.13rem;
}

.auth-card .form-control {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-weight: 400;
  font-size: 1rem;
}

.hero-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(17,17,24,0.9), rgba(17,17,24,0.5)),
    url("../img/landing-bg.png") center/cover no-repeat;
  z-index: 0;
}

.page-bg {
  background:
    linear-gradient(to bottom, rgba(17,17,24,0.9), rgba(17,17,24,0.5)),
    url("../img/landing-bg.png") center/cover no-repeat;
}

.header-nav {
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 0;
}
.header-actions {
  min-height: 44px;
}
.header-actions .user-email {
  display: flex;
  align-items: center;
  line-height: 1;
}
.header-actions .actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions .btn-gear {
  height: 28px;
  width: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-actions .btn-exit {
  height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0;
}
.header-actions .company-name,
.header-actions .user-email {
  font-size: 0.92rem;
}
.header-actions .company-name {
  font-weight: 700;
}
.header-actions .navbar-brand {
  padding: 0;
}

main, header, footer {
  position: relative;
  z-index: 1;
}

.alerts-stack .alert {
  border-radius: 12px;
}

.card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 18px 45px -28px rgba(14,28,96,0.45);
}

.form-label {
  font-weight: 600;
  color: #344767;
  font-size: 0.85rem;
}

.form-control {
  border-radius: 12px;
  border: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: #5e72e4;
  box-shadow: 0 0 0 0.15rem rgba(94, 114, 228, 0.25);
}

.btn {
  border-radius: 12px;
}

.soft-section {
  background: rgba(255,255,255,0.75);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 45px -28px rgba(14,28,96,0.35);
}

.muted {
  color: #7987a1;
}

.list-unstyled li + li {
  margin-top: .4rem;
}

.table thead th {
  font-size: 0.85rem;
  color: #8f9bb3;
  font-weight: 600;
}

.table tbody td {
  vertical-align: middle;
}

.link-quiet {
  color: #54647c;
  text-decoration: none;
}

.link-quiet:hover {
  color: #111827;
}

.badge-soft {
  background: #eef2ff;
  color: #4c51bf;
  padding: .35rem .7rem;
  border-radius: 999px;
}

/* Autofill fixes for Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif !important;
  -webkit-text-fill-color: #111118 !important;
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px #f7f8fb inset;
  border: 1px solid #d9dce2 !important;
}

.drive-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  overflow-y: auto;
}
.drive-modal.show {
  display: flex;
}
.drive-modal .modal-dialog {
  margin: 0;
  max-width: 90vw;
}
.drive-modal .modal-content {
  box-shadow: 0 20px 60px -35px rgba(15, 23, 42, 0.7);
  background: #fff;
  color: #1f2937;
}

body.modal-open {
  overflow: hidden;
}
