: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);
}

/* Base Styles */
* {
  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;
  font-size: var(--text-base);
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--c-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  font-size: var(--text-sm);
}

.btn--primary {
  background-color: var(--c-primary);
  color: white;
}

.btn--primary:hover {
  background-color: var(--c-primary-hover);
  color: white;
}

.btn--accent {
  background-color: var(--c-accent);
  color: white;
}

.btn--accent:hover {
  background-color: var(--c-accent-hover);
  color: white;
}

/* Navbar */
.navbar {
  background-color: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  height: 70px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar__logo img {
  height: 40px;
}

.navbar__menu {
  display: flex;
  gap: var(--sp-4);
}

.navbar__link {
  color: var(--c-muted);
  font-weight: 500;
  font-size: var(--text-sm);
}

.navbar__link:hover, .navbar__link--active {
  color: var(--c-primary);
}

/* Mobile Toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
}

.navbar__toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--c-primary);
  transition: all 0.3s;
}

/* Alert Component */
.alert {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: opacity 0.5s;
  cursor: pointer;
}

.alert--success {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert--error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: var(--c-surface);
    flex-direction: column;
    padding: var(--sp-6);
    box-shadow: var(--shadow-lg);
    transition: left 0.3s;
  }

  .navbar__menu--active {
    left: 0;
  }

  .navbar__toggle--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .navbar__toggle--active span:nth-child(2) { opacity: 0; }
  .navbar__toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* FIDS Table */
.fids {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-top: var(--sp-6);
}

.fids__header {
  padding: var(--sp-4);
  background: var(--c-primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fids__table {
  width: 100%;
  border-collapse: collapse;
}

.fids__table th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-bg);
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 600;
}

.fids__table td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  font-size: var(--text-sm);
}

/* Badges */
.badge {
  padding: var(--sp-1) var(--sp-2);
  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--arrived { background: #D1FAE5; color: #065F46; }
.badge--delayed { background: #FEF3C7; color: #92400E; }
.badge--cancelled { background: #FEE2E2; color: #991B1B; }

/* Cards */
.card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,58,112,0.8), rgba(0,58,112,0.8)), url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: var(--sp-8) 0;
  text-align: center;
}

.hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-2);
}

.hero p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
}

/* Footer */
.footer {
  background: var(--c-primary);
  color: white;
  padding: var(--sp-7) 0 var(--sp-5);
  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);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--sp-2);
}

.footer__links a {
  color: rgba(255,255,255,0.7);
}

.footer__links a:hover {
  color: white;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

.dashboard-content {
  flex: 1;
  padding: var(--sp-6);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}

.stat-card {
  background: var(--c-surface);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
}

.stat-card__label {
  font-size: var(--text-xs);
  color: var(--c-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--sp-1);
}

.stat-card__value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--c-primary);
}
