: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, -apple-system, 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);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font);
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

/* Header */
.header {
    background-color: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--c-bg);
}

.header__logo img {
    height: 50px;
}

.header__nav {
    display: flex;
    gap: var(--sp-5);
    padding: var(--sp-4) 0;
}

.nav__link {
    font-weight: 500;
    color: var(--c-primary);
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--c-accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,58,112,0.8), rgba(0,58,112,0.8)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: var(--sp-8) 0;
    text-align: center;
}

.hero__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--sp-4);
}

/* FIDS Table */
.fids {
    background: var(--c-surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    margin-top: calc(-1 * var(--sp-7));
    overflow: hidden;
}

.fids__tabs {
    display: flex;
    background: var(--c-bg);
}

.fids__tab {
    flex: 1;
    padding: var(--sp-4);
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.fids__tab--active {
    background: var(--c-surface);
    border-bottom-color: var(--c-primary);
    color: var(--c-primary);
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: var(--sp-4);
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

.table th {
    background: var(--c-bg);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--text-xs);
    color: var(--c-muted);
}

/* Badges */
.badge {
    padding: 2px 8px;
    border-radius: var(--r-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.badge--scheduled { background: #E5E7EB; color: #374151; }
.badge--boarding { background: #DBEAFE; color: #1E40AF; }
.badge--departed { background: #D1FAE5; color: #065F46; }
.badge--delayed { background: #FEF3C7; color: #92400E; }
.badge--cancelled { background: #FEE2E2; color: #991B1B; }

/* Footer */
.footer {
    background: 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__title {
    font-size: var(--text-lg);
    margin-bottom: var(--sp-4);
    font-weight: 600;
}

.footer__links li {
    margin-bottom: var(--sp-2);
}

.footer__links a:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
    margin-bottom: var(--sp-4);
}

.form-label {
    display: block;
    margin-bottom: var(--sp-1);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: var(--sp-3);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    outline: none;
}

.form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px rgba(0,58,112,0.1);
}

.btn {
    display: inline-block;
    padding: var(--sp-3) var(--sp-5);
    border-radius: var(--r-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn--primary {
    background: var(--c-primary);
    color: white;
}

.btn--primary:hover {
    background: var(--c-primary-hover);
}
