/*
 * CargoFlow Design System — Design Tokens
 * Warm Slate & Amber palette
 * Version: 3.1
 */

:root {
  /* ================================
   * BRAND COLOURS — Warm Slate & Amber
   * ================================ */

  --cf-ink: #2d3748;
  --cf-ink-light: #4a5568;
  --cf-citrine: #e8a317;
  --cf-citrine-dark: #c78c0f;
  --cf-citrine-muted: #c78c0f;
  --cf-citrine-subtle: rgba(232, 163, 23, 0.08);

  /* ================================
   * STATUS COLOURS — Ink-Adjacent
   * ================================ */

  --cf-status-submitted-border: #5b7fa5;
  --cf-status-submitted-bg: #e8eef4;
  --cf-status-submitted-text: #3d6083;
  --cf-status-submitted-number: #3d6083;

  --cf-status-processing-border: #b8923a;
  --cf-status-processing-bg: #f5efe0;
  --cf-status-processing-text: #7a5e1e;
  --cf-status-processing-number: #96762e;

  --cf-status-confirmed-border: #4e8a6e;
  --cf-status-confirmed-bg: #e4f0ea;
  --cf-status-confirmed-text: #2a5a42;
  --cf-status-confirmed-number: #3a7058;

  --cf-status-departed-border: #7b6898;
  --cf-status-departed-bg: #ede8f3;
  --cf-status-departed-text: #4e3d68;
  --cf-status-departed-number: #634f80;

  /* ================================
   * NEUTRAL / SURFACE
   * ================================ */

  --cf-surface: #ffffff;
  --cf-tint: #f9fafb;
  --cf-mist: #e5e7eb;
  --cf-text: #2d3748;
  --cf-text-muted: #475569;
  --cf-text-faint: #94a3b8;

  /* ================================
   * SEMANTIC COLOURS
   * ================================ */

  --cf-success: #2a5a42;
  --cf-success-bg: #e4f0ea;
  --cf-warning: #b8923a;
  --cf-warning-bg: #f5efe0;
  --cf-error: #9e2a2b;
  --cf-error-bg: #f5e0e0;
  --cf-info: #3d6083;
  --cf-info-bg: #e8eef4;

  /* ================================
   * SHADOW — Card
   * ================================ */

  --cf-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --cf-shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* ================================
   * FOCUS RING — Gold
   * ================================ */

  --cf-focus-ring: 0 0 0 3px rgba(232, 163, 23, 0.12);
  --cf-focus-ring-accent: 0 0 0 3px rgba(232, 163, 23, 0.15);
  --cf-focus-success: 0 0 0 3px rgba(42, 90, 66, 0.15);
  --cf-focus-error: 0 0 0 3px rgba(158, 42, 43, 0.15);
  --cf-focus-border: 2px solid #e8a317;

  /* ================================
   * OVERLAY & TRANSPARENCY
   * ================================ */

  --cf-overlay: rgba(0, 0, 0, 0.5);
  --cf-surface-overlay: rgba(255, 255, 255, 0.8);
  --cf-text-on-dark: rgba(255, 255, 255, 0.85);
  --cf-border-on-dark: rgba(255, 255, 255, 0.5);
  --cf-surface-on-dark-hover: rgba(255, 255, 255, 0.15);
  --cf-surface-on-dark-active: rgba(255, 255, 255, 0.25);
  --cf-citrine-hover: rgba(232, 163, 23, 0.03);

  /* ================================
   * SEMANTIC SHADOWS — Button Hover
   * ================================ */

  --cf-shadow-primary: 0 2px 8px rgba(45, 55, 72, 0.15);
  --cf-shadow-success: 0 2px 8px rgba(42, 90, 66, 0.15);
  --cf-shadow-warning: 0 2px 8px rgba(184, 146, 58, 0.15);
  --cf-shadow-error: 0 2px 8px rgba(158, 42, 43, 0.15);
  --cf-shadow-info: 0 2px 8px rgba(61, 96, 131, 0.15);

  /* ================================
   * TYPOGRAPHY SCALE
   * ================================ */

  /* Font Sizes */
  --text-2xs: 0.5625rem;   /* 9px */
  --text-xs: 0.6875rem;    /* 11px */
  --text-sm: 0.8125rem;    /* 13px */
  --text-base: 0.9375rem;  /* 15px */
  --text-md: 1rem;         /* 16px */
  --text-lg: 1.0625rem;    /* 17px */
  --text-xl: 1.125rem;     /* 18px */
  --text-2xl: 1.375rem;    /* 22px */
  --text-3xl: 1.625rem;    /* 26px */
  --text-4xl: 2rem;        /* 32px */
  --text-5xl: 2.5rem;      /* 40px */
  --text-6xl: 3rem;        /* 48px */

  /* Icon Sizes */
  --icon-sm: 0.875rem;     /* 14px */
  --icon-md: 1.125rem;     /* 18px */
  --icon-lg: 1.5rem;       /* 24px */
  --icon-xl: 2rem;         /* 32px */
  --icon-2xl: 3rem;        /* 48px */

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.3;
  --leading-normal: 1.4;
  --leading-relaxed: 1.5;
  --leading-loose: 1.6;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Letter Spacing */
  --tracking-tight: 0.3px;
  --tracking-normal: 0.5px;
  --tracking-wide: 0.8px;

  /* ================================
   * SPACING SCALE
   * ================================ */

  --space-0: 0;
  --space-1: 0.1875rem;  /* 3px */
  --space-2: 0.375rem;   /* 6px */
  --space-3: 0.5625rem;  /* 9px */
  --space-4: 0.75rem;    /* 12px */
  --space-5: 1rem;       /* 16px */
  --space-6: 1.25rem;    /* 20px */
  --space-7: 1.5rem;     /* 24px */
  --space-8: 1.75rem;    /* 28px */
  --space-10: 2.25rem;   /* 36px */
  --space-12: 2.75rem;   /* 44px */
  --space-16: 3.5rem;    /* 56px */
  --space-20: 4.5rem;    /* 72px */

  /* ================================
   * BORDER RADIUS
   * ================================ */

  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-base: 0.25rem;  /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-full: 9999px;

  /* ================================
   * SHADOWS
   * ================================ */

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  --shadow-base: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 0 3px 8px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 6px 16px -4px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 24px -6px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 20px 40px -8px rgba(0, 0, 0, 0.18);
  --shadow-inner: inset 0 1px 2px 0 rgba(0, 0, 0, 0.05);

  /* Brand shadows */
  --shadow-orange: 0 4px 12px rgba(232, 163, 23, 0.25);
  --shadow-orange-subtle: 0 2px 8px rgba(232, 163, 23, 0.15);
  --shadow-card-hover: 0 8px 20px rgba(0, 0, 0, 0.08);

  /* ================================
   * TRANSITIONS
   * ================================ */

  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* ================================
   * Z-INDEX SCALE
   * ================================ */

  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;

  /* ================================
   * COMPONENT SIZING
   * ================================ */

  /* Form Controls */
  --input-height-sm: 32px;
  --input-height-base: 40px;
  --input-height-lg: 48px;

  /* Buttons */
  --btn-height-sm: 32px;
  --btn-height-base: 40px;
  --btn-height-lg: 48px;

  /* Touch targets for mobile */
  --touch-target: 44px;

  /* ================================
   * BREAKPOINTS
   * ================================ */

  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;
}

/* ================================
 * MOBILE RESPONSIVE TOKENS
 * ================================ */

@media (max-width: 575.98px) {
  :root {
    --text-xs: 0.625rem;     /* 10px */
    --text-sm: 0.75rem;      /* 12px */
    --text-base: 0.8125rem;  /* 13px */
    --text-md: 0.875rem;     /* 14px */
    --text-lg: 0.9375rem;    /* 15px */
    --text-xl: 1rem;         /* 16px */
    --text-2xl: 1.125rem;    /* 18px */

    --space-card-mobile: var(--space-4);
    --space-section-mobile: var(--space-6);

    --input-height-base: var(--touch-target);
    --btn-height-base: var(--touch-target);
  }
}

/* ================================
 * DARK MODE SUPPORT (Future-ready)
 * ================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --cf-dark-bg: var(--cf-ink);
    --cf-dark-surface: var(--cf-ink-light);
    --cf-dark-text: var(--cf-mist);
  }
}

/* ================================
 * ACCESSIBILITY TOKENS
 * ================================ */

@media (prefers-contrast: high) {
  :root {
    --shadow-focus: var(--cf-focus-ring);
    --border-focus: var(--cf-focus-border);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01ms;
    --transition-base: 0.01ms;
    --transition-slow: 0.01ms;
    --transition-smooth: 0.01ms;
  }
}
/*
 * Navigation Component — Warm Slate & Amber
 * Site header with FlowDocs logo pattern
 */

/* ================================
 * SITE HEADER
 * ================================ */

.site-header {
  background: var(--cf-ink);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================================
 * LOGO
 * ================================ */

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--cf-surface);
  flex-shrink: 0;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--cf-surface);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.site-logo:hover .logo-img {
  transform: scale(1.05);
}

.site-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--cf-citrine);
}

.site-subtitle {
  font-size: var(--text-xs);
  font-weight: var(--font-normal);
  color: var(--cf-text-faint);
  white-space: nowrap;
}

/* ================================
 * NAVIGATION LINKS
 * ================================ */

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav .nav-link {
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  color: var(--cf-text-faint);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.site-nav .nav-link:hover {
  color: var(--cf-mist);
  text-decoration: none;
}

.site-nav .nav-link.active {
  color: var(--cf-citrine);
  background: var(--cf-citrine-subtle);
}

/* ================================
 * NAV DIVIDER
 * ================================ */

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--cf-ink-light);
  margin: 0 var(--space-1);
}

/* ================================
 * DROPDOWN MENUS
 * ================================ */

.site-nav .dropdown-menu {
  background: var(--cf-ink);
  border: 1px solid var(--cf-ink-light);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  margin-top: var(--space-1);
}

.site-nav .dropdown-item {
  color: var(--cf-text-faint);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  background: var(--cf-ink-light);
  color: var(--cf-surface);
}

.site-nav .dropdown-divider {
  border-color: var(--cf-ink-light);
  margin: var(--space-1) 0;
}

/* ================================
 * MOBILE HAMBURGER
 * ================================ */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cf-text-faint);
  border-radius: 1px;
  margin-bottom: 4px;
  transition: all var(--transition-fast);
}

.hamburger-line:last-child {
  width: 14px;
  margin-bottom: 0;
}

/* ================================
 * RESPONSIVE
 * ================================ */

@media (max-width: 991.98px) {
  .mobile-menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cf-ink);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2) 0;
    border-top: 1px solid var(--cf-ink-light);
    z-index: var(--z-dropdown);
  }

  .site-nav.show {
    display: flex;
  }

  .site-nav .nav-link {
    padding: var(--space-3) var(--space-6);
    border-left: 3px solid transparent;
    border-radius: 0;
  }

  .site-nav .nav-link.active {
    border-left-color: var(--cf-citrine);
    background: transparent;
  }

  .nav-divider {
    width: auto;
    height: 1px;
    margin: var(--space-1) var(--space-6);
  }

  .site-nav .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: var(--space-6);
    margin-top: 0;
    background: transparent;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 575.98px) {
  .header-content {
    padding: var(--space-2) var(--space-4);
  }

  .site-title {
    font-size: var(--text-lg);
  }

  .site-subtitle {
    font-size: var(--text-2xs);
  }
}

/* ================================
 * ACCESSIBILITY
 * ================================ */

.site-nav .nav-link:focus-visible {
  outline: 2px solid var(--cf-citrine);
  outline-offset: 2px;
}

.site-nav .dropdown-item:focus-visible {
  outline: 2px solid var(--cf-citrine);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav .nav-link,
  .site-nav .dropdown-item,
  .site-nav .dropdown-menu,
  .logo-img {
    transition: none;
  }
}
/*
 * Button Component System - FTA Center Pattern
 * Standardized buttons with consistent hover/focus states
 */

/* ================================
 * BASE BUTTON STYLES
 * ================================ */

.pk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  line-height: var(--leading-tight);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  min-height: var(--btn-height-base);
  white-space: nowrap;
}

.pk-btn:focus {
  outline: 2px solid var(--cf-citrine);
  outline-offset: 2px;
}

.pk-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ================================
 * PRIMARY BUTTON - FTA Center enhanced
 * ================================ */

.pk-btn-primary,
.btn-primary {  /* Legacy Bootstrap compatibility */
  background: var(--cf-ink);
  color: var(--cf-surface);
  border-color: var(--cf-ink);
}

.pk-btn-primary:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
  background: var(--cf-ink-light);
  border-color: var(--cf-ink-light);
  color: var(--cf-surface);
  box-shadow: var(--cf-shadow-primary);
}

.pk-btn-primary:active:not(:disabled),
.btn-primary:active:not(:disabled) {
  box-shadow: var(--shadow-xs);
}

/* ================================
 * SECONDARY BUTTON
 * ================================ */

.pk-btn-secondary,
.btn-secondary {  /* Legacy Bootstrap compatibility */
  background: var(--cf-ink);
  color: var(--cf-surface);
  border-color: var(--cf-ink);
}

.pk-btn-secondary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
  background: var(--cf-ink-light);
  border-color: var(--cf-ink-light);
  color: var(--cf-surface);
  box-shadow: var(--cf-shadow-primary);
}

.pk-btn-secondary:active:not(:disabled),
.btn-secondary:active:not(:disabled) {
  box-shadow: var(--shadow-xs);
}

/* ================================
 * OUTLINE BUTTON - FTA Center enhanced
 * ================================ */

.pk-btn-outline,
.btn-outline-primary {  /* Legacy Bootstrap compatibility */
  background: var(--cf-surface);
  color: var(--cf-ink);
  border-color: var(--cf-mist);
}

.pk-btn-outline:hover:not(:disabled),
.btn-outline-primary:hover:not(:disabled) {
  background: var(--cf-citrine-subtle);
  border-color: var(--cf-citrine-dark);
  color: var(--cf-citrine-dark);
}

.pk-btn-outline:active:not(:disabled),
.btn-outline-primary:active:not(:disabled) {
  background: var(--cf-citrine-subtle);
}

/* ================================
 * GHOST BUTTON
 * ================================ */

.pk-btn-ghost {
  background: transparent;
  color: var(--cf-citrine);
  border-color: transparent;
}

.pk-btn-ghost:hover:not(:disabled) {
  background: var(--cf-citrine-subtle);
  color: var(--cf-citrine-dark);
}

/* ================================
 * OUTLINE LIGHT BUTTON (for dark backgrounds)
 * ================================ */

.pk-btn-outline-light {
  background: transparent;
  color: var(--cf-surface);
  border-color: var(--cf-border-on-dark);
}

.pk-btn-outline-light:hover:not(:disabled) {
  background: var(--cf-surface-on-dark-hover);
  border-color: var(--cf-surface);
  color: var(--cf-surface);
}

.pk-btn-outline-light:active:not(:disabled) {
  background: var(--cf-surface-on-dark-active);
}

/* ================================
 * LINK BUTTON
 * ================================ */

.pk-btn-link {
  background: transparent;
  color: var(--cf-citrine);
  border-color: transparent;
  text-decoration: underline;
  padding: var(--space-1) var(--space-2);
  min-height: auto;
}

.pk-btn-link:hover:not(:disabled) {
  color: var(--cf-citrine-dark);
  text-decoration: none;
}

/* ================================
 * BUTTON SIZES
 * ================================ */

.pk-btn-sm,
.btn-sm {  /* Legacy Bootstrap compatibility */
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  min-height: var(--btn-height-sm);
  gap: var(--space-1);
}

.pk-btn-lg,
.btn-lg {  /* Legacy Bootstrap compatibility */
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  min-height: var(--btn-height-lg);
  gap: var(--space-3);
}

.pk-btn-xl {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-lg);
  min-height: 56px;
  gap: var(--space-3);
}

/* ================================
 * BUTTON WIDTHS
 * ================================ */

.pk-btn-block {
  width: 100%;
}

.pk-btn-wide {
  min-width: 120px;
}

/* ================================
 * BUTTON GROUPS
 * ================================ */

.pk-btn-group {
  display: inline-flex;
  gap: var(--space-2);
}

.pk-btn-group .pk-btn {
  margin: 0;
}

.pk-btn-group-vertical {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ================================
 * BUTTON WITH ICONS
 * ================================ */

.pk-btn .pk-btn-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pk-btn-sm .pk-btn-icon {
  width: 14px;
  height: 14px;
}

.pk-btn-lg .pk-btn-icon {
  width: 18px;
  height: 18px;
}

/* Icon-only buttons */
.pk-btn-icon-only {
  padding: var(--space-2);
  aspect-ratio: 1;
  justify-content: center;
}

.pk-btn-icon-only.pk-btn-sm {
  padding: var(--space-1);
}

.pk-btn-icon-only.pk-btn-lg {
  padding: var(--space-3);
}

/* ================================
 * LOADING STATE
 * ================================ */

.pk-btn-loading {
  position: relative;
  color: transparent !important;
}

.pk-btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: pk-btn-spin 1s linear infinite;
}

.pk-btn-primary.pk-btn-loading::after {
  border-top-color: var(--cf-surface);
}

.pk-btn-outline.pk-btn-loading::after {
  border-top-color: var(--cf-citrine);
}

@keyframes pk-btn-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ================================
 * SEMANTIC BUTTON VARIANTS
 * ================================ */

.pk-btn-success {
  background: var(--cf-success);
  color: var(--cf-surface);
  border-color: var(--cf-success);
}

.pk-btn-success:hover:not(:disabled) {
  background: color-mix(in srgb, var(--cf-success) 85%, black);
  border-color: color-mix(in srgb, var(--cf-success) 85%, black);
  box-shadow: var(--cf-shadow-success);
}

.pk-btn-warning {
  background: var(--cf-warning);
  color: var(--cf-ink);
  border-color: var(--cf-warning);
}

.pk-btn-warning:hover:not(:disabled) {
  background: color-mix(in srgb, var(--cf-warning) 85%, black);
  border-color: color-mix(in srgb, var(--cf-warning) 85%, black);
  box-shadow: var(--cf-shadow-warning);
}

.pk-btn-danger {
  background: var(--cf-error);
  color: var(--cf-surface);
  border-color: var(--cf-error);
}

.pk-btn-danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--cf-error) 85%, black);
  border-color: color-mix(in srgb, var(--cf-error) 85%, black);
  box-shadow: var(--cf-shadow-error);
}

.pk-btn-info {
  background: var(--cf-info);
  color: var(--cf-surface);
  border-color: var(--cf-info);
}

.pk-btn-info:hover:not(:disabled) {
  background: color-mix(in srgb, var(--cf-info) 85%, black);
  border-color: color-mix(in srgb, var(--cf-info) 85%, black);
  box-shadow: var(--cf-shadow-info);
}

/* ================================
 * FILTER BUTTONS - FTA Center pattern
 * ================================ */

.pk-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--cf-surface);
  border: 1px solid var(--cf-mist);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--cf-ink);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.pk-filter-btn:hover {
  background: var(--cf-citrine-subtle);
  border-color: var(--cf-citrine-dark);
  color: var(--cf-citrine-dark);
}

.pk-filter-btn.active {
  background: var(--cf-citrine);
  border-color: var(--cf-citrine);
  color: var(--cf-ink);
}

.pk-filter-btn:focus {
  outline: 2px solid var(--cf-citrine);
  outline-offset: 2px;
}

/* ================================
 * RESPONSIVE DESIGN
 * ================================ */

@media (max-width: 767.98px) {
  .pk-btn {
    min-height: var(--touch-target);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }

  .pk-btn-sm {
    min-height: 36px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }

  .pk-btn-group {
    flex-wrap: wrap;
  }

  .pk-btn-group-vertical {
    width: 100%;
  }

  .pk-btn-group-vertical .pk-btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .pk-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .pk-btn-group .pk-btn {
    width: 100%;
  }
}

/* ================================
 * ACCESSIBILITY ENHANCEMENTS
 * ================================ */

.pk-btn:focus-visible {
  outline: 2px solid var(--cf-citrine);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .pk-btn {
    border-width: 2px;
  }

  .pk-btn-outline {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .pk-btn {
    transition: none;
  }

  .pk-btn:hover:not(:disabled) {
    transform: none;
  }
}

/* ================================
 * LEGACY SUPPORT - Bootstrap compatibility
 * ✅ Fixed: Replaced @extend with comma-separated selectors above
 * Legacy classes (.btn-primary, .btn-secondary, etc.) now inherit
 * modern styles through proper CSS selector sharing.
 * ================================ */
/*
 * Form Component System - FTA Center Pattern
 * Standardized form controls with consistent hover/focus states
 */

/* ================================
 * FORM GROUPS AND LABELS
 * ================================ */

.pk-form-group {
  margin-bottom: var(--space-4);
}

.pk-form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-semibold);
  color: var(--cf-ink);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.pk-form-label.required::after {
  content: " *";
  color: var(--cf-error);
}

.pk-form-help {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--cf-text);
  line-height: var(--leading-normal);
}

/* ================================
 * FORM CONTROLS - Enhanced with FTA Center patterns
 * ================================ */

.pk-form-control,
.form-control,
.form-select {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--cf-mist);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  background: var(--cf-surface);
  color: var(--cf-ink);
  transition: all var(--transition-base);
  min-height: var(--input-height-base);
  position: relative;
}

/* Enhanced hover state - Clean single effect */
.pk-form-control:hover,
.form-control:hover,
.form-select:hover {
  border-color: var(--cf-citrine-dark);
}

/* Enhanced focus state - Clean single effect */
.pk-form-control:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--cf-citrine);
  box-shadow: var(--cf-focus-ring-accent);
  background: var(--cf-surface);
}

/* Disabled state */
.pk-form-control:disabled,
.form-control:disabled,
.form-select:disabled {
  background: var(--cf-tint);
  color: var(--cf-text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.pk-form-control:disabled:hover,
.form-control:disabled:hover,
.form-select:disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--cf-mist);
}

/* ================================
 * FORM CONTROL SIZES
 * ================================ */

.pk-form-control-sm,
.form-control-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  min-height: var(--input-height-sm);
}

.pk-form-control-lg,
.form-control-lg {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  min-height: var(--input-height-lg);
}

/* ================================
 * VALIDATION STATES
 * ================================ */

.pk-form-control.is-valid,
.form-control.is-valid {
  border-color: var(--cf-success);
  box-shadow: var(--cf-focus-success);
}

.pk-form-control.is-valid:focus,
.form-control.is-valid:focus {
  box-shadow: var(--cf-focus-success);
}

.pk-form-control.is-invalid,
.form-control.is-invalid {
  border-color: var(--cf-error);
  box-shadow: var(--cf-focus-error);
}

.pk-form-control.is-invalid:focus,
.form-control.is-invalid:focus {
  box-shadow: var(--cf-focus-error);
}

.pk-form-error {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--cf-error);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.pk-form-error::before {
  content: "⚠";
  font-size: var(--text-sm);
}

.pk-form-success {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--cf-success);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.pk-form-success::before {
  content: "✓";
  font-size: var(--text-sm);
}

/* ================================
 * SPECIALIZED INPUT COMPONENTS
 * ================================ */

/* Search input with dropdown - FTA Center pattern */
.pk-input-with-dropdown {
  position: relative;
}

.pk-dropdown-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cf-surface);
  border: 1px solid var(--cf-mist);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: var(--z-dropdown);
  box-shadow: var(--shadow-md);
}

.pk-suggestions-list {
  padding: 0;
}

.pk-suggestion-item {
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  border-bottom: 1px solid var(--cf-text-faint);
  transition: background-color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pk-suggestion-item:hover {
  background: var(--cf-citrine-subtle);
}

.pk-suggestion-item:last-child {
  border-bottom: none;
}

.pk-suggestion-code {
  font-weight: var(--font-semibold);
  color: var(--cf-citrine);
  margin-right: var(--space-2);
}

.pk-suggestion-description {
  color: var(--cf-text);
  font-size: var(--text-sm);
}

/* ================================
 * FORM SECTIONS - FTA Center pattern
 * ================================ */

.pk-form-section {
  margin-bottom: var(--space-6);
}

.pk-form-section-header {
  margin-bottom: var(--space-4);
}

.pk-form-section-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--cf-ink);
  margin: 0 0 var(--space-1) 0;
}

.pk-form-section-description {
  font-size: var(--text-sm);
  color: var(--cf-text);
  margin: 0;
}

/* ================================
 * FORM ACTIONS - FTA Center pattern
 * ================================ */

.pk-form-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  padding-top: var(--space-4);
  border-top: 1px solid var(--cf-mist);
  margin-top: var(--space-6);
}

.pk-form-actions.pk-form-actions-center {
  justify-content: center;
}

.pk-form-actions.pk-form-actions-between {
  justify-content: space-between;
}

/* ================================
 * CHECKBOX AND RADIO STYLES
 * ================================ */

.pk-form-check {
  position: relative;
  display: block;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
}

.pk-form-check-input {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--space-4);
  height: var(--space-4);
  margin: 0;
  cursor: pointer;
}

.pk-form-check-label {
  font-size: var(--text-sm);
  color: var(--cf-ink);
  cursor: pointer;
  margin-bottom: 0;
}

/* ================================
 * FILE INPUT STYLING
 * ================================ */

.pk-form-file {
  position: relative;
  display: inline-block;
}

.pk-form-file-input {
  position: absolute;
  left: -9999px;
}

.pk-form-file-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--cf-surface);
  border: 1px solid var(--cf-mist);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--cf-ink);
  cursor: pointer;
  transition: all var(--transition-base);
}

.pk-form-file-label:hover {
  background: var(--cf-citrine-subtle);
  border-color: var(--cf-citrine-dark);
  color: var(--cf-citrine-dark);
}

/* ================================
 * MOBILE RESPONSIVE ADJUSTMENTS
 * ================================ */

@media (max-width: 767.98px) {
  .pk-form-control,
  .form-control,
  .form-select {
    min-height: var(--touch-target);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }

  .pk-form-actions {
    flex-direction: column;
    gap: var(--space-2);
  }

  .pk-form-actions .pk-btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .pk-form-group {
    margin-bottom: var(--space-3);
  }

  .pk-form-label {
    font-size: var(--text-xs);
    margin-bottom: var(--space-1);
  }

  .pk-form-control,
  .form-control,
  .form-select {
    font-size: var(--text-sm);
  }

  /* Enhanced mobile placeholder fixes */
  .pk-form-control::placeholder,
  .form-control::placeholder,
  .pk-form-control::-webkit-input-placeholder,
  .form-control::-webkit-input-placeholder {
    font-size: var(--text-sm);
    color: var(--cf-text-muted);
  }
}

/* ================================
 * ACCESSIBILITY ENHANCEMENTS
 * ================================ */

.pk-form-control:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--cf-citrine);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .pk-form-control,
  .form-control,
  .form-select {
    border-width: 2px;
  }
}

/* ================================
 * ENHANCED SELECT STYLING
 * ================================ */

/* Custom select styling with arrow */
select.pk-form-control,
select.form-control,
select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23666' d='M10 12.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 20px 20px;
  padding-right: calc(var(--space-3) + 28px);
  cursor: pointer;
}

/* Select hover state with enhanced arrow */
select.pk-form-control:hover,
select.form-control:hover,
select.form-select:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23f2c200' d='M10 12.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 20px 20px;
}

/* Select focus state with enhanced arrow */
select.pk-form-control:focus,
select.form-control:focus,
select.form-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23f2c200' d='M10 12.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 20px 20px;
}

/* Select disabled state */
select.pk-form-control:disabled,
select.form-control:disabled,
select.form-select:disabled {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23ccc' d='M10 12.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 20px 20px;
}

/* Ensure select options have proper styling */
select.pk-form-control option,
select.form-control option,
select.form-select option {
  padding: var(--space-2);
  background-color: var(--cf-surface);
  color: var(--cf-ink);
}

/* First option (placeholder) styling */
select.pk-form-control option[value=""],
select.form-control option[value=""],
select.form-select option[value=""] {
  color: var(--cf-text-muted);
}

/* ================================
 * LEGACY SUPPORT - iOS Safari fixes
 * ================================ */

.pk-form-control,
.form-control,
select {
  color: var(--cf-ink) !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.pk-form-control option,
.form-control option,
select option {
  color: var(--cf-ink) !important;
  background-color: var(--cf-surface) !important;
  -webkit-text-fill-color: var(--cf-ink) !important;
}

/* iOS Safari webkit fixes */
@supports (-webkit-touch-callout: none) {
  .pk-form-control,
  .form-control,
  select {
    color: var(--cf-ink) !important;
    -webkit-text-fill-color: var(--cf-ink) !important;
  }

  .pk-form-control option,
  .form-control option,
  select option {
    color: var(--cf-ink) !important;
    -webkit-text-fill-color: var(--cf-ink) !important;
    background-color: var(--cf-surface) !important;
  }
}
/*
 * Card Component System - FTA Center Pattern
 * Standardized card components with hover effects
 */

/* ================================
 * BASE CARD STYLES
 * ================================ */

.pk-card {
  background: var(--cf-surface);
  border: 1px solid var(--cf-mist);
  border-radius: var(--radius-lg);
  box-shadow: var(--cf-shadow-card);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.pk-card:hover {
  box-shadow: var(--cf-shadow-card-hover);
}

/* ================================
 * CARD SECTIONS
 * ================================ */

.pk-card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--cf-mist);
  background: var(--cf-tint);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ================================
 * COLORED HEADER VARIANTS
 * CargoFlow Color Palette
 * ================================ */

/* Green - Search forms, filters, input sections */
.pk-card-header-green {
  background: var(--cf-ink);
  color: var(--cf-surface);
  border-bottom-color: var(--cf-ink);
}

.pk-card-header-green h1,
.pk-card-header-green h2,
.pk-card-header-green h3,
.pk-card-header-green h4,
.pk-card-header-green .h4,
.pk-card-header-green .h5,
.pk-card-header-green i {
  color: var(--cf-surface);
}

/* Steel - Results, data tables, lists */
.pk-card-header-steel {
  background: var(--cf-ink);
  color: var(--cf-surface);
  border-bottom-color: var(--cf-ink);
}

.pk-card-header-steel h1,
.pk-card-header-steel h2,
.pk-card-header-steel h3,
.pk-card-header-steel h4,
.pk-card-header-steel .h4,
.pk-card-header-steel .h5,
.pk-card-header-steel i {
  color: var(--cf-surface);
}

.pk-card-header-steel .small,
.pk-card-header-steel p {
  color: var(--cf-text-faint);
}

/* Soft gold highlight for readable accent text on ink background.
   Doubled parent selector to beat .main-heading .highlight (0-2-0)
   in main.css — this rule scores 0-3-0 so source order cannot override it. */
.pk-card-header-steel.pk-card-header-steel .highlight {
  color: var(--cf-citrine);
}

/* Teal - Bookings, user content, actions */
.pk-card-header-teal {
  background: var(--cf-ink);
  color: var(--cf-surface);
  border-bottom-color: var(--cf-ink);
}

.pk-card-header-teal h1,
.pk-card-header-teal h2,
.pk-card-header-teal h3,
.pk-card-header-teal h4,
.pk-card-header-teal .h4,
.pk-card-header-teal .h5,
.pk-card-header-teal i {
  color: var(--cf-surface);
}

/* Blue - Info sections, links */
.pk-card-header-blue {
  background: var(--cf-ink);
  color: var(--cf-surface);
  border-bottom-color: var(--cf-ink);
}

.pk-card-header-blue h1,
.pk-card-header-blue h2,
.pk-card-header-blue h3,
.pk-card-header-blue h4,
.pk-card-header-blue .h4,
.pk-card-header-blue .h5,
.pk-card-header-blue i {
  color: var(--cf-surface);
}

/* Orange/Citrine - Primary highlights, CTAs (use sparingly) */
.pk-card-header-orange {
  background: var(--cf-citrine);
  color: var(--cf-ink);
  border-bottom-color: var(--cf-citrine-dark);
}

.pk-card-header-orange h1,
.pk-card-header-orange h2,
.pk-card-header-orange h3,
.pk-card-header-orange h4,
.pk-card-header-orange .h4,
.pk-card-header-orange .h5,
.pk-card-header-orange i {
  color: var(--cf-ink);
}

/* Plum - Special sections, tags */
.pk-card-header-plum {
  background: var(--cf-ink);
  color: var(--cf-surface);
  border-bottom-color: var(--cf-ink);
}

.pk-card-header-plum h1,
.pk-card-header-plum h2,
.pk-card-header-plum h3,
.pk-card-header-plum h4,
.pk-card-header-plum .h4,
.pk-card-header-plum .h5,
.pk-card-header-plum i {
  color: var(--cf-surface);
}

/* Slate - Neutral, formal sections */
.pk-card-header-slate {
  background: var(--cf-ink);
  color: var(--cf-surface);
  border-bottom-color: var(--cf-ink);
}

.pk-card-header-slate h1,
.pk-card-header-slate h2,
.pk-card-header-slate h3,
.pk-card-header-slate h4,
.pk-card-header-slate .h4,
.pk-card-header-slate .h5,
.pk-card-header-slate i {
  color: var(--cf-surface);
}

.pk-card-body {
  padding: var(--space-6);
}

.pk-card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--cf-mist);
  background: var(--cf-tint);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ================================
 * CARD VARIANTS - FTA Center patterns
 * ================================ */

/* Feature cards with hover effects */
.pk-feature-card {
  background: var(--cf-tint);
  border: 1px solid var(--cf-mist);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pk-feature-card:hover {
  border-color: var(--cf-citrine-dark);
  box-shadow: var(--shadow-sm);
}

/* Feature card elements */
.pk-feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.pk-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--cf-citrine-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--cf-citrine);
  margin-bottom: var(--space-4);
  border: 1px solid var(--cf-citrine-dark);
  transition: all var(--transition-base);
}

.pk-feature-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--cf-ink);
  margin: 0 0 var(--space-2) 0;
}

.pk-feature-description {
  color: var(--cf-text);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.pk-feature-value {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--cf-citrine);
}

/* ================================
 * STATS CARDS - FTA Center pattern
 * ================================ */

.pk-stats-card {
  background: var(--cf-tint);
  border: 1px solid var(--cf-mist);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.pk-stats-card:hover {
  border-color: var(--cf-citrine-dark);
}

.pk-stat-item,
.fta-stat-item {  /* FTA Center legacy compatibility */
  display: flex;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--cf-mist);
}

.pk-stat-item:last-child,
.fta-stat-item:last-child {
  border-bottom: none;
}

.pk-stat-item i,
.fta-stat-item i {
  color: var(--cf-citrine);
  width: 20px;
  margin-right: var(--space-2);
}

.pk-stat-content {
  flex: 1;
}

.pk-stat-label {
  font-size: var(--text-xs);
  color: var(--cf-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-normal);
  margin: 0;
}

.pk-stat-value {
  font-weight: var(--font-medium);
  color: var(--cf-ink);
  font-size: var(--text-base);
  margin: 0;
}

/* ================================
 * OVERVIEW CARDS - FTA Center pattern
 * ================================ */

.pk-overview-card,
.fta-overview-card {  /* FTA Center legacy compatibility */
  background: var(--cf-tint);
  border: 1px solid var(--cf-mist);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.pk-overview-card:hover,
.fta-overview-card:hover {
  border-color: var(--cf-citrine-dark);
}

.pk-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.pk-overview-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--cf-ink);
  line-height: var(--leading-snug);
  margin: 0;
}

.pk-overview-badge {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
}

.pk-overview-badge.status-active {
  background: var(--cf-success-bg);
  color: color-mix(in srgb, var(--cf-success) 80%, black);
}

.pk-overview-badge.status-inactive {
  background: var(--cf-text-faint);
  color: var(--cf-text);
}

.pk-overview-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pk-overview-info {
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--cf-text);
}

.pk-overview-info i {
  color: var(--cf-citrine);
  width: 16px;
  margin-right: var(--space-2);
}

/* ================================
 * DESTINATION CARDS - FTA Center pattern
 * ================================ */

.pk-destination-card,
.fta-destination-card {  /* FTA Center legacy compatibility */
  background: var(--cf-tint);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--cf-mist);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pk-destination-card:hover,
.fta-destination-card:hover {
  border-color: var(--cf-citrine-dark);
  box-shadow: var(--shadow-sm);
}

.pk-destination-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.pk-country-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pk-country-flag {
  font-size: var(--text-xl);
}

.pk-country-name {
  font-weight: var(--font-semibold);
  color: var(--cf-ink);
}

.pk-export-value {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--cf-citrine);
}

.pk-destination-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pk-count-badge {
  background: var(--cf-citrine-subtle);
  color: var(--cf-citrine-dark);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

/* ================================
 * EMPTY STATE CARDS
 * ================================ */

.pk-empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.pk-empty-state-icon {
  font-size: var(--icon-2xl);
  color: var(--cf-citrine);
  margin-bottom: var(--space-4);
}

.pk-empty-state-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--cf-ink);
  margin-bottom: var(--space-2);
}

.pk-empty-state-description {
  color: var(--cf-text);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto var(--space-4);
}

/* ================================
 * CARD SIZES
 * ================================ */

.pk-card-sm .pk-card-header,
.pk-card-sm .pk-card-body,
.pk-card-sm .pk-card-footer {
  padding: var(--space-3);
}

.pk-card-lg .pk-card-header {
  padding: var(--space-6) var(--space-8);
}

.pk-card-lg .pk-card-body {
  padding: var(--space-8);
}

.pk-card-lg .pk-card-footer {
  padding: var(--space-5) var(--space-8);
}

/* ================================
 * CARD UTILITIES
 * ================================ */

.pk-card-clickable {
  cursor: pointer;
}

.pk-card-clickable:hover {
  border-color: var(--cf-citrine-dark);
  box-shadow: var(--cf-shadow-card-hover);
}

.pk-card-flat {
  box-shadow: none;
  border: 1px solid var(--cf-mist);
}

.pk-card-elevated {
  box-shadow: var(--shadow-lg);
}

/* ================================
 * RESPONSIVE DESIGN
 * ================================ */

@media (max-width: 767.98px) {
  .pk-card-header,
  .pk-card-body,
  .pk-card-footer {
    padding: var(--space-4);
  }

  .pk-feature-card,
  .pk-stats-card,
  .pk-overview-card,
  .pk-destination-card {
    padding: var(--space-3);
  }

  .pk-destination-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }

  .pk-destination-stats {
    flex-direction: column;
    gap: var(--space-2);
  }

  .pk-overview-header {
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
  }
}

/* ================================
 * ACCESSIBILITY ENHANCEMENTS
 * ================================ */

.pk-card-clickable:focus {
  outline: 2px solid var(--cf-citrine);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .pk-card,
  .pk-feature-card,
  .pk-stats-card,
  .pk-overview-card,
  .pk-destination-card {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .pk-card,
  .pk-feature-card,
  .pk-stats-card,
  .pk-overview-card,
  .pk-destination-card {
    transition: none;
  }

  .pk-card:hover,
  .pk-feature-card:hover,
  .pk-stats-card:hover,
  .pk-overview-card:hover,
  .pk-destination-card:hover {
    transform: none;
  }
}

/* ================================
 * LEGACY SUPPORT - FTA Center compatibility
 * ✅ Fixed: Replaced @extend with comma-separated selectors above
 * Legacy FTA Center classes (.fta-destination-card, .fta-overview-card, .fta-stat-item)
 * now inherit modern styles through proper CSS selector sharing.
 * ================================ */
/*
 * Table Component System - FTA Center Pattern
 * Standardized table styling with enhanced hover effects
 */

/* ================================
 * BASE TABLE STYLES
 * ================================ */

.pk-table-responsive,
.table-responsive {  /* Legacy Bootstrap compatibility */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cf-mist);
  box-shadow: var(--shadow-sm);
}

.pk-table,
.table {  /* Legacy Bootstrap compatibility */
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  background: var(--cf-surface);
  font-size: var(--text-sm);
}

/* ================================
 * TABLE HEADER - Enhanced styling
 * ================================ */

.pk-table thead th {
  background: var(--cf-tint);
  border: none;
  padding: var(--space-4);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--cf-text);
  text-transform: uppercase;
  letter-spacing: var(--tracking-normal);
  position: relative;
  border-bottom: 2px solid var(--cf-mist);
}

.pk-table-header-row,
.table-header-row {  /* Legacy compatibility */
  background: var(--cf-tint);
  border: none;
}

.pk-table-header-cell,
.table-header-cell {  /* Legacy compatibility */
  border: none;
  padding: var(--space-4);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--cf-text);
  text-transform: uppercase;
  letter-spacing: var(--tracking-normal);
  position: relative;
}

.pk-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pk-header-icon {
  font-size: var(--text-sm);
  opacity: 0.9;
}

.pk-header-text {
  font-weight: var(--font-semibold);
}

/* ================================
 * TABLE BODY - Enhanced row styling
 * ================================ */

.pk-table tbody td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--cf-mist);
  vertical-align: middle;
}

.pk-table tbody tr {
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  border-left: 3px solid transparent;
  position: relative;
}

/* ================================
 * CLICKABLE ROWS - FTA Center pattern
 * ================================ */

.pk-clickable-row,
.booking-row,  /* Legacy booking table compatibility */
.rate-row {  /* Legacy rate table compatibility */
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  border-left: 3px solid transparent;
  position: relative;
  z-index: 1;
}

.pk-clickable-row:hover,
.booking-row:hover,
.rate-row:hover {
  background: var(--cf-citrine-hover);
  border-left-color: var(--cf-citrine);
}

.pk-clickable-row:focus,
.booking-row:focus,
.rate-row:focus {
  outline: 2px solid var(--cf-citrine);
  outline-offset: 2px;
}

/* ================================
 * TABLE CELL VARIATIONS
 * ================================ */

.pk-table .text-center {
  text-align: center;
}

.pk-table .text-end {
  text-align: right;
}

.pk-table .text-start {
  text-align: left;
}

.pk-table .fw-medium {
  font-weight: var(--font-medium);
}

.pk-table .fw-semibold {
  font-weight: var(--font-semibold);
}

.pk-table .fw-bold {
  font-weight: var(--font-bold);
}

/* Semantic cell colors */
.pk-table .text-success {
  color: var(--cf-success);
}

.pk-table .text-warning {
  color: color-mix(in srgb, var(--cf-warning) 80%, black);
}

.pk-table .text-danger {
  color: var(--cf-error);
}

.pk-table .text-muted {
  color: var(--cf-text-muted);
}

.pk-table .text-primary {
  color: var(--cf-citrine);
}

/* ================================
 * BADGES IN TABLES
 * ================================ */

.pk-table .badge {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

/* Increased specificity to override Bootstrap without !important */
.pk-table .badge.bg-secondary {
  background: var(--cf-mist);
  color: var(--cf-ink);
}

.pk-table .badge.bg-success {
  background: var(--cf-success);
  color: var(--cf-surface);
}

.pk-table .badge.bg-warning {
  background: var(--cf-warning);
  color: var(--cf-ink);
}

.pk-table .badge.bg-danger {
  background: var(--cf-error);
  color: var(--cf-surface);
}

/* ================================
 * TABLE ACTIONS
 * ================================ */

.pk-table-actions {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  justify-content: center;
}

.pk-select-btn {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  min-height: 28px;
}

.pk-view-details-btn {
  transition: all var(--transition-fast);
}

.pk-view-details-btn:hover {
  color: var(--cf-citrine-dark);
}

/* ================================
 * TABLE UTILITIES
 * ================================ */

.pk-table-striped tbody tr:nth-of-type(odd) {
  background: var(--cf-tint);
}

.pk-table-hover tbody tr:hover {
  background: var(--cf-citrine-hover);
}

.pk-table-sm td,
.pk-table-sm th {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
}

.pk-table-lg td,
.pk-table-lg th {
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
}

/* ================================
 * TABLE FOOTER
 * ================================ */

.pk-table-footer {
  background: var(--cf-tint);
  border-top: 1px solid var(--cf-mist);
  padding: var(--space-4) var(--space-6);
}

/* ================================
 * PAGINATION IN TABLES
 * ================================ */

.pk-table-pagination {
  display: flex;
  justify-content: center;
  margin: 0;
}

.pk-table-pagination .pagination {
  --bs-pagination-padding-x: var(--space-3);
  --bs-pagination-padding-y: var(--space-2);
  --bs-pagination-border-color: var(--cf-mist);
  --bs-pagination-bg: var(--cf-surface);
  --bs-pagination-hover-bg: var(--cf-citrine-subtle);
  --bs-pagination-hover-border-color: var(--cf-citrine-dark);
  --bs-pagination-active-bg: var(--cf-citrine);
  --bs-pagination-active-border-color: var(--cf-citrine);
  margin-bottom: 0;
}

/* ================================
 * TABLE LOADING STATE
 * ================================ */

.pk-table-loading {
  position: relative;
}

.pk-table-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cf-surface-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.pk-table-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 3px solid var(--cf-mist);
  border-top-color: var(--cf-citrine);
  border-radius: 50%;
  animation: pk-table-spin 1s linear infinite;
  z-index: 11;
}

@keyframes pk-table-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ================================
 * RESPONSIVE DESIGN
 * ================================ */

@media (max-width: 767.98px) {
  .pk-table {
    font-size: var(--text-xs);
  }

  .pk-table thead th,
  .pk-table tbody td {
    padding: var(--space-2) var(--space-3);
  }

  .pk-table-header-cell {
    padding: var(--space-2) var(--space-3);
  }

  .pk-clickable-row:hover {
    background: var(--cf-citrine-hover);
  }

  /* Stack table actions vertically on mobile */
  .pk-table-actions {
    flex-direction: column;
    gap: var(--space-1);
  }

  .pk-select-btn {
    width: 100%;
    font-size: var(--text-xs);
  }
}

@media (max-width: 575.98px) {
  .pk-table thead th,
  .pk-table tbody td {
    padding: var(--space-1) var(--space-2);
  }

  .pk-table {
    font-size: var(--text-xs);
  }

  /* Hide less important columns on small screens */
  .pk-table .d-none.d-md-table-cell {
    display: none !important;
  }
}

/* ================================
 * ACCESSIBILITY ENHANCEMENTS
 * ================================ */

.pk-table[role="table"] {
  border-collapse: separate;
  border-spacing: 0;
}

.pk-clickable-row[role="button"] {
  outline: none;
}

.pk-clickable-row[role="button"]:focus {
  outline: 2px solid var(--cf-citrine);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .pk-table {
    border: 2px solid currentColor;
  }

  .pk-table td,
  .pk-table th {
    border: 1px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .pk-clickable-row {
    transition: none;
  }
}

/* ================================
 * LEGACY BOOTSTRAP COMPATIBILITY
 * ✅ Fixed: Replaced @extend with comma-separated selectors above
 * Legacy classes (.table, .table-responsive, .booking-row, .rate-row, etc.)
 * now inherit modern styles through proper CSS selector sharing.
 * ================================ */

.table-hover tbody tr:hover {
  background: var(--cf-citrine-hover);
}

.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
  background: var(--cf-tint);
}
/*
 * Modal Component System - FTA Center Pattern
 * Standardized modal system for all application modals
 */

/* ================================
 * MODAL OVERLAY - Base Structure
 * ================================ */

.pk-modal-overlay,
.booking-modal-overlay,  /* Legacy booking modal compatibility */
.fta-modal-overlay {  /* Legacy FTA modal compatibility */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cf-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-4);
  backdrop-filter: blur(2px);
  opacity: 0;
  animation: modalFadeIn var(--transition-base) forwards;
}

/* ================================
 * MODAL CONTAINER - Core Structure
 * ================================ */

.pk-modal-container,
.booking-modal-container,  /* Legacy booking modal compatibility */
.fta-modal-container {  /* Legacy FTA modal compatibility */
  background: var(--cf-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(-20px) scale(0.95);
  animation: modalSlideIn var(--transition-smooth) forwards;
}

/* Large modals */
.pk-modal-container.pk-modal-lg {
  max-width: 900px;
}

/* Small modals */
.pk-modal-container.pk-modal-sm {
  max-width: 500px;
}

/* ================================
 * MODAL HEADER
 * ================================ */

.pk-modal-header,
.booking-modal-header,  /* Legacy booking modal compatibility */
.fta-modal-header {  /* Legacy FTA modal compatibility */
  padding: var(--space-5) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--cf-mist);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.pk-modal-title,
.booking-modal-title,  /* Legacy booking modal compatibility */
.fta-modal-title {  /* Legacy FTA modal compatibility */
  color: var(--cf-ink);
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  padding-right: var(--space-4);
}

.pk-modal-subtitle {
  color: var(--cf-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
  margin-bottom: 0;
}

.pk-modal-close,
.booking-modal-close,  /* Legacy booking modal compatibility */
.fta-modal-close {  /* Legacy FTA modal compatibility */
  background: none;
  border: none;
  color: var(--cf-text-muted);
  font-size: var(--text-lg);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: absolute;
  right: var(--space-4);
  top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.pk-modal-close:hover,
.booking-modal-close:hover,
.fta-modal-close:hover {
  background: var(--cf-tint);
  color: var(--cf-ink);
  transform: scale(1.1);
}

.pk-modal-close:focus,
.booking-modal-close:focus,
.fta-modal-close:focus {
  outline: 2px solid var(--cf-citrine);
  outline-offset: 2px;
}

/* ================================
 * MODAL BODY
 * ================================ */

.pk-modal-body,
.booking-modal-body,  /* Legacy booking modal compatibility */
.fta-modal-body {  /* Legacy FTA modal compatibility */
  padding: var(--space-4) var(--space-6) var(--space-6);
}

/* Stats highlight section (FTA Center pattern) */
.pk-modal-stats,
.booking-modal-stats,  /* Legacy booking modal compatibility */
.fta-modal-stats {  /* Legacy FTA modal compatibility */
  background: var(--cf-citrine-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  text-align: center;
}

.pk-modal-stat-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-3);
}

.pk-modal-stat-number {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: var(--cf-citrine);
  line-height: var(--leading-none);
}

.pk-modal-stat-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--cf-citrine-dark);
  text-transform: uppercase;
  letter-spacing: var(--tracking-normal);
  margin-top: var(--space-1);
}

.pk-modal-stat-note {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cf-citrine-dark);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

/* ================================
 * MODAL CONTENT SECTIONS
 * ================================ */

.pk-modal-content-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.pk-modal-content-card {
  background: var(--cf-tint);
  border: 1px solid var(--cf-mist);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.pk-modal-content-card:hover {
  border-color: var(--cf-citrine-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pk-modal-content-header {
  margin-bottom: var(--space-3);
}

.pk-modal-content-title {
  color: var(--cf-ink);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin: 0;
  line-height: var(--leading-snug);
}

.pk-modal-content-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pk-modal-detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.pk-modal-detail-item i {
  color: var(--cf-citrine);
  width: 16px;
  flex-shrink: 0;
}

.pk-modal-detail-label {
  font-weight: var(--font-medium);
  color: var(--cf-text-muted);
  min-width: 140px;
  flex-shrink: 0;
}

.pk-modal-detail-value {
  color: var(--cf-ink);
  font-weight: var(--font-medium);
  flex: 1;
}

/* ================================
 * MODAL ACTIONS
 * ================================ */

.pk-modal-actions,
.booking-modal-actions,  /* Legacy booking modal compatibility */
.fta-modal-actions {  /* Legacy FTA modal compatibility */
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  padding-top: var(--space-4);
  border-top: 1px solid var(--cf-mist);
}

.pk-modal-actions.pk-modal-actions-center {
  justify-content: center;
}

.pk-modal-actions.pk-modal-actions-between {
  justify-content: space-between;
}

/* ================================
 * MODAL ANIMATIONS
 * ================================ */

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ================================
 * ERROR/SUCCESS MODAL VARIANTS
 * ================================ */

.pk-modal-error .pk-modal-stats {
  background: var(--cf-error-bg);
}

.pk-modal-error .pk-modal-stat-number {
  color: var(--cf-error);
}

.pk-modal-error .pk-modal-stat-label,
.pk-modal-error .pk-modal-stat-note {
  color: var(--cf-error);
}

.pk-modal-success .pk-modal-stats {
  background: var(--cf-success-bg);
}

.pk-modal-success .pk-modal-stat-number {
  color: var(--cf-success);
}

.pk-modal-success .pk-modal-stat-label,
.pk-modal-success .pk-modal-stat-note {
  color: var(--cf-success);
}

/* ================================
 * RESPONSIVE DESIGN
 * ================================ */

/* Tablet and below */
@media (max-width: 768px) {
  .pk-modal-overlay {
    padding: var(--space-2);
    align-items: flex-start;
    padding-top: 10vh;
  }

  .pk-modal-container {
    max-height: 85vh;
  }

  .pk-modal-header {
    padding: var(--space-4) var(--space-4) var(--space-3);
  }

  .pk-modal-title {
    font-size: var(--text-lg);
    padding-right: var(--space-6);
  }

  .pk-modal-close {
    right: var(--space-3);
    top: var(--space-3);
  }

  .pk-modal-body {
    padding: var(--space-3) var(--space-4) var(--space-4);
  }

  .pk-modal-stats {
    padding: var(--space-3);
    margin-bottom: var(--space-4);
  }

  .pk-modal-stat-number {
    font-size: var(--text-4xl);
  }

  .pk-modal-actions {
    flex-direction: column;
    gap: var(--space-2);
  }

  .pk-modal-actions .pk-btn {
    width: 100%;
    margin: 0;
  }
}

/* Small mobile */
@media (max-width: 575.98px) {
  .pk-modal-overlay {
    padding: var(--space-1);
    padding-top: 5vh;
  }

  .pk-modal-header {
    padding: var(--space-3);
  }

  .pk-modal-body {
    padding: var(--space-3);
  }

  .pk-modal-detail-label {
    min-width: 100px;
  }
}

/* ================================
 * LEGACY SUPPORT - Aliases for existing modals
 * ✅ Fixed: Replaced @extend with comma-separated selectors
 * ================================ */

/* Booking modal & FTA modal aliases now integrated above via comma-separated selectors *//*
 * Badge Components
 * Status badges and role badges for the Ink & Citrine design system
 */

/* Base badge */
.cf-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: 4px 10px;
  border-radius: var(--radius-base);
  line-height: var(--leading-none);
  white-space: nowrap;
  vertical-align: middle;
}

/* Status variants */
.cf-badge-submitted {
  background: var(--cf-status-submitted-bg);
  color: var(--cf-status-submitted-text);
}

.cf-badge-processing {
  background: var(--cf-status-processing-bg);
  color: var(--cf-status-processing-text);
}

.cf-badge-confirmed {
  background: var(--cf-status-confirmed-bg);
  color: var(--cf-status-confirmed-text);
}

.cf-badge-departed {
  background: var(--cf-status-departed-bg);
  color: var(--cf-status-departed-text);
}

/* Role badge */
.cf-badge-staff {
  background: var(--cf-status-processing-border);
  color: var(--cf-surface);
  font-size: var(--text-2xs);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}
/*
 * Status Summary Cards
 * Dashboard status strip for My Bookings
 */

/* Grid container */
.cf-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 575.98px) {
  .cf-status-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* Base card */
.cf-status-card {
  padding: var(--space-4);
  background: var(--cf-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--cf-shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  display: block;
  color: inherit;
}

.cf-status-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cf-shadow-card-hover);
  text-decoration: none;
  color: inherit;
}

.cf-status-card-active {
  box-shadow: var(--cf-shadow-card-hover);
}

/* Status count number */
.cf-status-number {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-none);
}

@media (max-width: 575.98px) {
  .cf-status-number {
    font-size: var(--text-xl);
  }
}

/* Status label */
.cf-status-label {
  font-size: var(--text-2xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-top: 4px;
}

/* Variant: submitted */
.cf-status-card-submitted {
  border-left: 3px solid var(--cf-status-submitted-border);
}
.cf-status-card-submitted .cf-status-number {
  color: var(--cf-status-submitted-number);
}
.cf-status-card-submitted .cf-status-label {
  color: var(--cf-status-submitted-border);
}
.cf-status-card-submitted.cf-status-card-active {
  background: var(--cf-status-submitted-bg);
}

/* Variant: processing */
.cf-status-card-processing {
  border-left: 3px solid var(--cf-status-processing-border);
}
.cf-status-card-processing .cf-status-number {
  color: var(--cf-status-processing-number);
}
.cf-status-card-processing .cf-status-label {
  color: var(--cf-status-processing-border);
}
.cf-status-card-processing.cf-status-card-active {
  background: var(--cf-status-processing-bg);
}

/* Variant: confirmed */
.cf-status-card-confirmed {
  border-left: 3px solid var(--cf-status-confirmed-border);
}
.cf-status-card-confirmed .cf-status-number {
  color: var(--cf-status-confirmed-number);
}
.cf-status-card-confirmed .cf-status-label {
  color: var(--cf-status-confirmed-border);
}
.cf-status-card-confirmed.cf-status-card-active {
  background: var(--cf-status-confirmed-bg);
}

/* Variant: departed */
.cf-status-card-departed {
  border-left: 3px solid var(--cf-status-departed-border);
}
.cf-status-card-departed .cf-status-number {
  color: var(--cf-status-departed-number);
}
.cf-status-card-departed .cf-status-label {
  color: var(--cf-status-departed-border);
}
.cf-status-card-departed.cf-status-card-active {
  background: var(--cf-status-departed-bg);
}
/*
 * Pro Kinetics Utility Classes
 * Tailwind-style utilities for rapid development
 * Extracted from design-system.css (Week 2, Task 2.1)
 */

/* ================================
 * TYPOGRAPHY UTILITIES
 * ================================ */

/* Font Sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

/* Line Heights */
.leading-none { line-height: var(--leading-none); }
.leading-tight { line-height: var(--leading-tight); }
.leading-snug { line-height: var(--leading-snug); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose { line-height: var(--leading-loose); }

/* Font Weights */
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

/* ================================
 * SPACING UTILITIES
 * ================================ */

/* Margin - All sides */
.m-0 { margin: var(--space-0); }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }
.m-10 { margin: var(--space-10); }
.m-12 { margin: var(--space-12); }
.m-16 { margin: var(--space-16); }
.m-20 { margin: var(--space-20); }

/* Padding - All sides */
.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-12 { padding: var(--space-12); }

/* Margin - Top */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* Margin - Bottom */
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Padding - Top */
.pt-2 { padding-top: var(--space-2); }
.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }

/* Padding - Bottom */
.pb-2 { padding-bottom: var(--space-2); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }

/* ================================
 * BORDER RADIUS UTILITIES
 * ================================ */

.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-base); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ================================
 * SHADOW UTILITIES
 * ================================ */

.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-base); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ================================
 * TEXT UTILITIES
 * ================================ */

.text-truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ================================
 * ICON UTILITIES
 * ================================ */

/* Icon sizes */
.icon-sm { font-size: var(--icon-sm); }
.icon-md { font-size: var(--icon-md); }
.icon-lg { font-size: var(--icon-lg); }
.icon-xl { font-size: var(--icon-xl); }
.icon-2xl { font-size: var(--icon-2xl); }

/* Icon colors using design system palette */
.icon-primary { color: var(--cf-citrine); }
.icon-secondary { color: var(--cf-ink); }
.icon-teal { color: var(--cf-text-muted); }
.icon-plum { color: var(--cf-status-departed-border); }
.icon-steel { color: var(--cf-text-muted); }
.icon-muted { color: var(--cf-text-muted); }
.icon-success { color: var(--cf-success); }
.icon-warning { color: var(--cf-warning); }
.icon-danger { color: var(--cf-error); }
.icon-info { color: var(--cf-info); }

/* ================================
 * STATUS BADGE SYSTEM
 * ================================ */

.pk-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  white-space: nowrap;
}

/* Status badges using extended color palette */
.pk-badge-pending {
  background: var(--cf-info-bg);
  color: var(--cf-info);
}

.pk-badge-confirmed {
  background: var(--cf-success-bg);
  color: var(--cf-success);
}

.pk-badge-in-transit {
  background: var(--cf-tint);
  color: var(--cf-text);
}

.pk-badge-completed {
  background: var(--cf-success-bg);
  color: var(--cf-success);
}

.pk-badge-cancelled {
  background: var(--cf-status-departed-bg);
  color: var(--cf-status-departed-text);
}

.pk-badge-expired {
  background: var(--cf-error-bg);
  color: var(--cf-error);
}

/* Additional badge variants */
.pk-badge-info {
  background: var(--cf-info-bg);
  color: var(--cf-info);
}

.pk-badge-warning {
  background: var(--cf-warning-bg);
  color: var(--cf-warning);
}

.pk-badge-primary {
  background: var(--cf-citrine-subtle);
  color: var(--cf-citrine-dark);
}

.pk-badge-secondary {
  background: var(--cf-text-faint);
  color: var(--cf-ink);
}

/* ================================
 * ACCESSIBILITY UTILITIES
 * ================================ */

.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-2);
  background: var(--cf-citrine);
  color: var(--cf-surface);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-base);
  text-decoration: none;
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-2);
}

/* Focus indicators */
.pk-focus-ring:focus {
  outline: 2px solid var(--cf-citrine);
  outline-offset: 2px;
}

/* Alert overrides — Ink-Adjacent palette */
.alert-success {
  background-color: var(--cf-success-bg);
  border-color: var(--cf-success);
  color: var(--cf-success);
}

.alert-warning {
  background-color: var(--cf-warning-bg);
  border-color: var(--cf-warning);
  color: var(--cf-warning);
}

.alert-danger, .alert-error {
  background-color: var(--cf-error-bg);
  border-color: var(--cf-error);
  color: var(--cf-error);
}

.alert-info {
  background-color: var(--cf-info-bg);
  border-color: var(--cf-info);
  color: var(--cf-info);
}

/* ================================
 * ON-DARK TEXT UTILITIES
 * ================================ */

.text-on-dark {
  color: var(--cf-text-on-dark);
}
/*
 * Footer Component
 * Enhanced footer with Pro Kinetics branding
 * Extracted from styles.css (Week 3, Task 3.2)
 */

/* ================================
 * BASE FOOTER STYLES
 * ================================ */

footer {
  background: var(--cf-tint);
  color: var(--cf-text-muted);
  margin-top: auto;
  border-top: 1px solid var(--cf-mist);
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

footer p {
  margin-bottom: 0;
  line-height: var(--leading-relaxed);
}

/* ================================
 * FOOTER LINKS
 * ================================ */

footer .footer-link {
  color: var(--cf-text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  position: relative;
  display: inline-flex;
  align-items: center;
}

footer .footer-link:hover {
  color: var(--cf-citrine-dark);
  text-decoration: none;
}

/* Animated underline on hover */
footer .footer-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--cf-citrine-dark);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

footer .footer-link:hover::after {
  width: 100%;
}

/* ================================
 * FOOTER LAYOUT
 * ================================ */

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.footer-links a i {
  font-size: var(--text-sm);
  opacity: 0.8;
  margin-right: var(--space-1);
}

.footer-copyright {
  color: var(--cf-text-muted);
  font-size: var(--text-xs);
  opacity: 0.9;
  text-align: center;
}

/* ================================
 * RESPONSIVE DESIGN
 * ================================ */

/* Mobile footer optimizations */
@media (max-width: 767.98px) {
  footer {
    padding: var(--space-3) 0;
    font-size: var(--text-xs);
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-1);
  }

  .footer-links a {
    font-size: var(--text-xs);
  }

  .footer-copyright {
    margin-top: var(--space-2);
  }
}

/* Small mobile */
@media (max-width: 575.98px) {
  footer {
    padding: var(--space-2) 0;
  }

  .footer-links a {
    padding: var(--space-1);
  }
}

/* ================================
 * ACCESSIBILITY ENHANCEMENTS
 * ================================ */

footer .footer-link:focus {
  outline: 2px solid var(--cf-citrine);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  footer {
    border-top-width: 2px;
  }

  footer .footer-link::after {
    height: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  footer .footer-link {
    transition: none;
  }

  footer .footer-link::after {
    transition: none;
  }
}

/* ================================
 * LAYOUT HELPER
 * ================================ */

/* Ensure main content grows to fill space (pushes footer down) */
.flex-grow-1 {
  flex-grow: 1;
}
