@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800;900&display=swap');

:root {
  --header: #003366;
  --blue: #1976d2;
  --blue-dk: #1256a0;
  --blue-lt: #e8f1fb;
  --border: #d0dcea;
  --card-bg: #e8f1fb;
  --text: #1a2633;
  --muted: #5a6e82;
  --white: #ffffff;
  --light: #f5f7fa;

  --status-active-bg: #e6f4ea;
  --status-active-text: #137333;

  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: #ffffff;
  color: var(--text);
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

/* Header */
.site-header {
  background: var(--header);
  height: 56px;
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hamburger-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bar {
  display: block;
  width: 16px;
  height: 2px;
  background: white;
  border-radius: 2px;
}

/* Mobile Menu Drawer */
.menu-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 50, 0.45);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.menu-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,0.18);
  overflow-y: auto;
}

.menu-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  background: var(--header);
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 3px solid var(--blue);
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #7fa8cc;
  cursor: pointer;
  font-size: 1.3rem;
}

.drawer-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 20px 6px;
}

.drawer-link-list {
  list-style: none;
  padding: 0 12px;
}

.drawer-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 4px;
  text-decoration: none !important;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}

.drawer-link:hover {
  background: var(--light);
}

/* Top Search Strip */
.top-search-strip {
  padding: 20px 16px 12px;
  background: white;
}

.search-box-row {
  display: flex;
  align-items: center;
  max-width: 580px;
  margin: 0 auto;
  gap: 10px;
}

.search-box-input {
  flex: 1;
  padding: 8px 14px;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  font-family: inherit;
  color: var(--text);
}

.search-box-btn {
  background: var(--blue);
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.search-box-btn:hover {
  background: var(--blue-dk);
}

.search-clear-link {
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  margin-left: 6px;
}

/* Main Layout Wrapper */
.main-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 32px;
  flex: 1;
  width: 100%;
}

/* Outer Carrier Summary Card */
.carrier-card {
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.carrier-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--header);
}

.badge-active,
.badge-pill.active {
  background-color: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #14532d;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-inactive,
.badge-pill.inactive {
  background-color: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-grid-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .card-grid-split {
    grid-template-columns: 1.3fr 1fr;
  }
}

.meta-table-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.meta-cell-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.meta-cell-val {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.metric-boxes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.white-metric-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 8px;
  text-align: center;
}

.box-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--header);
}

.box-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* Actions Column on Right */
.actions-column-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-btn-styled {
  background: var(--blue);
  color: white !important;
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.action-btn-styled:hover {
  background: var(--blue-dk);
}

.action-btn-styled.deactivate {
  background: #d93025;
}

.action-btn-styled.deactivate:hover {
  background: #b31412;
}

/* Sticky Tabs Row */
.tabs-row {
  display: flex;
  gap: 20px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
  position: sticky;
  top: 0px;
  background: white;
  z-index: 30;
  padding-top: 6px;
}

.tab-btn-item {
  padding: 8px 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
}

.tab-btn-item:hover, .tab-btn-item.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Section Cards Layout */
.section-card,
#general,
#contact,
#compliance,
#operations,
#cargo,
#fleet,
#drivers {
  scroll-margin-top: 65px;
}

.section-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.section-header {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--header);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blue-bar-icon {
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--header);
  border-radius: 2px;
}

.table-clean {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.table-clean td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.table-clean tr:last-child td {
  border-bottom: none;
}

.td-label {
  color: var(--muted);
  width: 42%;
  font-weight: 500;
}

.td-val {
  color: var(--text);
  font-weight: 800;
}

/* Badges for Operation & Cargo */
.pill-tag {
  background: white;
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--header);
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 6px;
}

/* Side by Side Grid Layouts */
.cards-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .cards-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.cards-row-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .cards-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Deactivate Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,20,50,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: white;
  border-radius: 8px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  overflow: hidden;
}

.modal-header {
  background: #d93025;
  color: white;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1rem;
}

.modal-body {
  padding: 20px;
  font-size: 0.88rem;
  color: var(--text);
}

.modal-footer {
  background: var(--light);
  padding: 12px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
}

/* Trust Strip */
.trust-strip {
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.trust-item {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Site Footer */
.site-footer {
  background: #003366;
  border-top: 3px solid #1976d2;
  padding: 24px 0 14px;
  color: white;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  font-size: 0.78rem;
}

.footer-links li {
  margin-bottom: 4px;
}

.footer-links a {
  color: #c0d8f0;
  text-decoration: none !important;
}

.footer-links a:hover {
  color: white;
}

.bottom-disclaimer {
  background: #1a1a1a;
  padding: 12px 24px;
  border-top: 1px solid #2a2a2a;
  text-align: center;
  font-size: 0.62rem;
  color: #a0a0a0;
  line-height: 1.5;
}

/* Compliance & Status Alert Banners Styling */
.alert-banners-container {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-banner {
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

@media (max-width: 768px) {
  .alert-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.yellow-alert {
  background-color: #fffde7;
  border: 1px solid #fff59d;
}

.red-alert {
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
}

.alert-banner-text {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  color: #7c2d12;
}

.red-alert .alert-banner-text {
  color: #991b1b;
}

.alert-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.alert-banner-btn.orange-btn {
  background-color: #d97706;
  color: white;
}
.alert-banner-btn.orange-btn:hover {
  background-color: #b45309;
}

.alert-banner-btn.red-btn {
  background-color: #dc2626;
  color: white;
}
.alert-banner-btn.red-btn:hover {
  background-color: #b91c1c;
}

/* Accessibility Focus Visible Controls */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Centered First Page / Landing Hero */
.landing-hero-container {
  min-height: calc(85vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.landing-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: #0b3c67;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.landing-subtitle {
  font-size: 1.15rem;
  color: #5a6e82;
  margin-bottom: 32px;
  font-weight: 500;
}

.landing-search-form {
  width: 100%;
  max-width: 620px;
  margin-bottom: 24px;
}

.landing-search-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.landing-input {
  flex: 1;
  padding: 14px 20px;
  font-size: 1.05rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-input:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.landing-btn {
  padding: 14px 28px;
  background-color: #1976d2;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.25);
  transition: background-color 0.2s, transform 0.1s;
}

.landing-btn:hover {
  background-color: #1256a0;
  transform: translateY(-1px);
}

.landing-register-text {
  font-size: 0.98rem;
  color: #475569;
}

.landing-register-link {
  color: #1976d2;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .landing-title {
    font-size: 2.1rem;
  }
  .landing-search-row {
    flex-direction: column;
  }
  .landing-btn {
    width: 100%;
    justify-content: center;
  }
}
