:root {
  /* Brand */
  --c-primary:        #003A70;
  --c-primary-hover:  #005BAA;
  --c-accent:         #E8A020;
  --c-accent-hover:   #C8880A;

  /* Neutral */
  --c-bg:             #F4F6F9;
  --c-surface:        #FFFFFF;
  --c-border:         #D1D9E0;
  --c-text:           #1A2332;
  --c-muted:          #5A6A7A;

  /* Status */
  --c-submitted:      #6B7280;
  --c-review:         #D97706;
  --c-approved:       #059669;
  --c-rejected:       #DC2626;
  --c-paid:           #059669;
  --c-unpaid:         #DC2626;

  /* Typography */
  --font:             'Inter', system-ui, sans-serif;
  --text-xs:          12px;
  --text-sm:          14px;
  --text-base:        16px;
  --text-lg:          18px;
  --text-xl:          22px;
  --text-2xl:         28px;
  --text-3xl:         36px;

  /* Spacing */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;

  /* Shape */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--text-text);
  background-color: var(--c-bg);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* Header & Navbar */
.header {
  background-color: var(--c-primary);
  color: white;
  padding: var(--sp-3) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: var(--sp-5);
}

.nav-links a:hover {
  color: var(--c-accent);
}

.btn-login {
  background-color: var(--c-accent);
  color: var(--c-text);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-login:hover {
  background-color: var(--c-accent-hover);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 58, 112, 0.8), rgba(0, 58, 112, 0.8)), url('../img/hero-bg.jpg') center/cover no-repeat;
  color: white;
  padding: var(--sp-8) 0;
  text-align: center;
}

.hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-4);
}

/* FIDS Table */
.fids-section {
  margin-top: calc(var(--sp-8) * -1);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-6);
  position: relative;
}

.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-4);
}

th {
  text-align: left;
  padding: var(--sp-3);
  border-bottom: 2px solid var(--c-border);
  color: var(--c-muted);
  font-size: var(--text-sm);
  text-transform: uppercase;
}

td {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}

/* Badges */
.badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: capitalize;
}

.badge--scheduled { background-color: var(--c-submitted); color: white; }
.badge--boarding { background-color: var(--c-review); color: white; }
.badge--departed { background-color: var(--c-primary); color: white; }
.badge--arrived { background-color: var(--c-approved); color: white; }
.badge--delayed { background-color: #f59e0b; color: white; }
.badge--cancelled { background-color: var(--c-rejected); color: white; }

/* Footer */
.footer {
  background-color: var(--c-primary);
  color: white;
  padding: var(--sp-7) 0;
  margin-top: var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-6);
}

.footer-col h4 {
  margin-bottom: var(--sp-4);
  color: var(--c-accent);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: var(--sp-5);
}

.login-card {
  background: var(--c-surface);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}

.login-card h2 {
  margin-bottom: var(--sp-4);
  text-align: center;
  color: var(--c-primary);
}

.form-group {
  margin-bottom: var(--sp-4);
}

.form-group label {
  display: block;
  margin-bottom: var(--sp-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-muted);
}

.form-control {
  width: 100%;
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: var(--text-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(0, 58, 112, 0.1);
}

.btn-block {
  display: block;
  width: 100%;
  padding: var(--sp-3);
  background: var(--c-primary);
  color: white;
  border: none;
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-block:hover {
  background: var(--c-primary-hover);
}

/* UI Components */
.stat-card {
  background: var(--c-surface);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  border: 1px solid var(--c-border);
}

.stat-card__icon {
  background: rgba(0, 58, 112, 0.05);
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
}

.stat-card__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--c-muted);
}

.stat-card__value {
  display: block;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-text);
}

.empty-state {
  text-align: center;
  padding: var(--sp-8) 0;
  color: var(--c-muted);
}

/* Portal Layout */
.portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.portal-sidebar {
  background: var(--c-primary);
  color: white;
  padding: var(--sp-5) 0;
}

.sidebar-header {
  padding: 0 var(--sp-5) var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--sp-4);
}

.role-badge {
  background: var(--c-accent);
  color: var(--c-text);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  font-weight: 700;
}

.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.sidebar-nav ul li a.active {
  border-left: 4px solid var(--c-accent);
}

.portal-main {
  background: var(--c-bg);
}

.portal-header {
  background: var(--c-surface);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.portal-content {
  padding: var(--sp-6);
}

.grid-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}
