/**
 * Air 80's Theme — Synthwave Branding for phpVMS 7
 * Bootstrap 5.3 + CSS Custom Properties
 * Colors: Neon-Pink #E84672 | Neon-Green #4AE8A0 | Dark-Violet #1A1028
 */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root,
[data-bs-theme="dark"] {
  --a80-pink: #E84672;
  --a80-pink-hover: #d13560;
  --a80-green: #4AE8A0;
  --a80-green-hover: #3cd48e;
  --a80-violet: #1A1028;
  --a80-surface: #241838;
  --a80-surface-hover: #2E2045;
  --a80-sidebar-bg: #130C1E;
  --a80-text: #F0E6FF;
  --a80-text-muted: #8B7FA3;
  --a80-border: rgba(232, 70, 114, 0.2);
  --a80-glow-pink: 0 0 15px rgba(232, 70, 114, 0.5);
  --a80-glow-green: 0 0 15px rgba(74, 232, 160, 0.5);

  /* Bootstrap overrides */
  --bs-body-bg: var(--a80-violet);
  --bs-body-color: var(--a80-text);
  --bs-primary: var(--a80-pink);
  --bs-secondary: var(--a80-surface-hover);
  --bs-success: var(--a80-green);
  --bs-link-color: var(--a80-green);
  --bs-link-hover-color: var(--a80-pink);
  --bs-border-color: var(--a80-border);
  --bs-card-bg: var(--a80-surface);
}

/* ========================================
   Base Styles
   ======================================== */
html { height: 100%; margin: 0; }
body {
  font-family: "Lato", system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  min-height: 100vh;
}
html[data-bs-theme="dark"] body {
  color: var(--a80-text);
  background-color: var(--a80-violet);
}
[data-bs-theme="dark"] a {
  color: var(--a80-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
[data-bs-theme="dark"] a:hover {
  color: var(--a80-pink);
  text-decoration: none;
  text-shadow: var(--a80-glow-pink);
}
::selection {
  background: var(--a80-pink);
  color: #fff;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--a80-violet); }
::-webkit-scrollbar-thumb { background: var(--a80-pink); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--a80-pink-hover); }

/* ========================================
   Top Navigation Bar (Guest)
   ======================================== */
.a80-topnav {
  background: linear-gradient(180deg, rgba(19, 12, 30, 0.98), rgba(26, 16, 40, 0.95));
  border-bottom: 1px solid var(--a80-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
}
.a80-topnav .navbar-brand img {
  height: 30px;
  width: auto;
}
.a80-topnav .nav-link {
  color: var(--a80-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.25s ease;
}
.a80-topnav .nav-link:hover {
  color: var(--a80-pink);
  text-shadow: var(--a80-glow-pink);
}
.a80-topnav .nav-link.active {
  color: var(--a80-pink);
}
.a80-topnav .dropdown-menu {
  background: var(--a80-sidebar-bg);
  border: 1px solid var(--a80-border);
}
.a80-topnav .dropdown-item {
  color: var(--a80-text);
  font-size: 0.875rem;
}
.a80-topnav .dropdown-item:hover {
  background: rgba(232, 70, 114, 0.15);
  color: var(--a80-pink);
}
.a80-topnav .navbar-toggler {
  border-color: var(--a80-border);
  color: var(--a80-text);
}

/* ========================================
   Top Bar (Pilot — slim bar above content)
   ======================================== */
.a80-topbar {
  background: rgba(26, 16, 40, 0.95);
  border-bottom: 1px solid var(--a80-border);
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}
.a80-topbar .brand img { height: 28px; }
.a80-topbar .utilities {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.a80-topbar .utilities a,
.a80-topbar .utilities span {
  color: var(--a80-text-muted);
  font-size: 0.85rem;
}
.a80-topbar .utilities a:hover {
  color: var(--a80-green);
}
.a80-topbar #clock {
  color: var(--a80-green);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Breadcrumb bar */
.a80-breadcrumb {
  background: var(--a80-surface);
  border-bottom: 1px solid var(--a80-border);
  padding: 0.35rem 1.5rem;
  font-size: 0.8rem;
  color: var(--a80-text-muted);
}
.a80-breadcrumb a { color: var(--a80-green); font-weight: 500; }
.a80-breadcrumb .separator { color: var(--a80-text-muted); margin: 0 0.5rem; }

/* ========================================
   Sidebar (Pilot)
   ======================================== */
.a80-sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--a80-sidebar-bg);
  border-right: 1px solid var(--a80-border);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform 0.3s ease;
}
.a80-sidebar .sidebar-logo {
  padding: 1.2rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--a80-border);
}
.a80-sidebar .sidebar-logo img {
  height: 45px;
  width: auto;
}
.a80-sidebar .sidebar-user {
  padding: 0.8rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--a80-border);
  font-size: 0.8rem;
}
.a80-sidebar .sidebar-user .user-id {
  color: var(--a80-green);
  font-weight: 700;
}
.a80-sidebar .sidebar-section {
  padding: 0.6rem 1rem 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--a80-text-muted);
}
.a80-sidebar .sidebar-section::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--a80-pink);
  margin-top: 4px;
}
.a80-sidebar .nav-link {
  color: var(--a80-text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.45rem 1rem;
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
}
.a80-sidebar .nav-link:hover {
  color: var(--a80-green);
  text-shadow: var(--a80-glow-green);
  background: rgba(74, 232, 160, 0.05);
  border-left-color: var(--a80-green);
}
.a80-sidebar .nav-link.active {
  color: var(--a80-pink);
  font-weight: 600;
  text-shadow: var(--a80-glow-pink);
  background: rgba(232, 70, 114, 0.08);
  border-left-color: var(--a80-pink);
}
.a80-sidebar .nav-link i {
  width: 20px;
  text-align: center;
  margin-right: 8px;
  font-size: 0.8rem;
}
.a80-sidebar .sidebar-footer {
  margin-top: auto;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--a80-border);
  text-align: center;
  font-size: 0.7rem;
  color: var(--a80-text-muted);
}
.a80-sidebar .sidebar-footer .socials a {
  color: var(--a80-text-muted);
  margin: 0 0.3rem;
  font-size: 1.1rem;
}
.a80-sidebar .sidebar-footer .socials a:hover {
  color: var(--a80-pink);
}

/* Content offset when sidebar is visible */
.a80-with-sidebar {
  margin-left: 220px;
}

/* ========================================
   Cards
   ======================================== */
[data-bs-theme="dark"] .card {
  background: var(--a80-surface);
  border: 1px solid var(--a80-border);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
[data-bs-theme="dark"] .card-header {
  background: linear-gradient(135deg, rgba(232, 70, 114, 0.8), rgba(180, 40, 90, 0.8));
  border-bottom: 1px solid rgba(232, 70, 114, 0.3);
  color: #fff;
  padding: 0.5rem 1rem;
}
[data-bs-theme="dark"] .card-header h5,
[data-bs-theme="dark"] .card-header h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
[data-bs-theme="dark"] .card-header a { color: var(--a80-green); font-weight: 500; }
[data-bs-theme="dark"] .card-header a:hover { color: #fff; text-shadow: var(--a80-glow-green); }
[data-bs-theme="dark"] .card-body { color: var(--a80-text); }
[data-bs-theme="dark"] .card-footer {
  background: rgba(26, 16, 40, 0.5);
  border-top: 1px solid var(--a80-border);
}
[data-bs-theme="dark"] .card-title { color: var(--a80-green); }

/* ========================================
   World Clocks
   ======================================== */
.a80-world-clocks {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.8rem 0;
  margin-bottom: 1rem;
}
.a80-clock-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--a80-surface);
  border: 1px solid var(--a80-border);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  min-width: 160px;
}
.a80-clock-item img { height: 20px; width: auto; border-radius: 2px; }
.a80-clock-item .city { font-weight: 700; color: var(--a80-text); font-size: 0.85rem; }
.a80-clock-item .time { color: var(--a80-text-muted); font-size: 0.75rem; }

/* ========================================
   Stats Bar
   ======================================== */
.a80-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.a80-stat-card {
  background: var(--a80-surface);
  border: 1px solid var(--a80-border);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.a80-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 70, 114, 0.2);
}
.a80-stat-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.a80-stat-icon.pink {
  background: rgba(232, 70, 114, 0.15);
  color: var(--a80-pink);
}
.a80-stat-icon.green {
  background: rgba(74, 232, 160, 0.15);
  color: var(--a80-green);
}
.a80-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--a80-text);
  line-height: 1;
}
.a80-stat-label {
  font-size: 0.75rem;
  color: var(--a80-text-muted);
  margin-top: 2px;
}

/* ========================================
   Hero Section (vSAS style)
   ======================================== */
.a80-hero-section {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(232, 70, 114, 0.2);
}
.a80-hero-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.a80-hero-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  background: var(--a80-surface);
  border: 1px solid var(--a80-border);
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
.a80-hero-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--a80-text);
  margin-bottom: 0.8rem;
}
.a80-hero-text {
  color: var(--a80-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ========================================
   Feature Cards (4-col grid)
   ======================================== */
.a80-feature-card {
  background: var(--a80-surface);
  border: 1px solid var(--a80-border);
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.a80-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(232, 70, 114, 0.2);
}
.a80-feature-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.a80-feature-body {
  padding: 1rem;
}
.a80-feature-body h5 {
  font-weight: 800;
  font-size: 1rem;
  color: var(--a80-text);
  margin-bottom: 0.5rem;
}
.a80-feature-body p {
  color: var(--a80-text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   CTA Banner
   ======================================== */
.a80-cta-banner {
  background: linear-gradient(135deg, var(--a80-pink), #a02050);
  border-radius: 0.5rem;
  overflow: hidden;
}
.a80-cta-banner h3 { text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

/* ========================================
   Section Marker
   ======================================== */
.a80-section-marker {
  width: 30px;
  height: 4px;
  background: var(--a80-pink);
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

/* ========================================
   Stat Blocks (icon + text)
   ======================================== */
.a80-stat-block {
  text-align: left;
}
.a80-stat-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(232, 70, 114, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--a80-pink);
  margin-bottom: 0.8rem;
}
.a80-stat-block h6 {
  color: var(--a80-text);
  margin-bottom: 0.3rem;
}
.a80-stat-block p {
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ========================================
   Welcome Section (legacy compat)
   ======================================== */
.a80-welcome-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--a80-text);
}
.a80-welcome-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--a80-pink);
  margin-top: 6px;
}
.a80-welcome-text {
  color: var(--a80-text-muted);
  line-height: 1.7;
  font-size: 0.875rem;
}

/* ========================================
   Buttons
   ======================================== */
[data-bs-theme="dark"] .btn-primary {
  background: var(--a80-pink) !important;
  border-color: var(--a80-pink) !important;
  color: #fff !important;
  transition: all 0.25s ease;
}
[data-bs-theme="dark"] .btn-primary:hover {
  background: var(--a80-pink-hover) !important;
  border-color: var(--a80-pink-hover) !important;
  box-shadow: var(--a80-glow-pink);
}
[data-bs-theme="dark"] .btn-success {
  background: var(--a80-green) !important;
  border-color: var(--a80-green) !important;
  color: var(--a80-violet) !important;
  font-weight: 700;
}
[data-bs-theme="dark"] .btn-success:hover {
  background: var(--a80-green-hover) !important;
  box-shadow: var(--a80-glow-green);
}
[data-bs-theme="dark"] .btn-secondary {
  background: var(--a80-surface-hover) !important;
  border-color: var(--a80-border) !important;
  color: var(--a80-text) !important;
}
[data-bs-theme="dark"] .btn-outline-primary {
  border-color: var(--a80-pink) !important;
  color: var(--a80-pink) !important;
}
[data-bs-theme="dark"] .btn-outline-primary:hover {
  background: var(--a80-pink) !important;
  color: #fff !important;
  box-shadow: var(--a80-glow-pink);
}
[data-bs-theme="dark"] .btn-info {
  background: var(--a80-green) !important;
  border-color: var(--a80-green) !important;
  color: var(--a80-violet) !important;
}

/* ========================================
   Tables
   ======================================== */
[data-bs-theme="dark"] .table { color: var(--a80-text); }
[data-bs-theme="dark"] .table thead th {
  color: var(--a80-green);
  border-bottom: 2px solid rgba(74, 232, 160, 0.3);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}
[data-bs-theme="dark"] .table td, [data-bs-theme="dark"] .table th { border-color: var(--a80-border); }
[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(36, 24, 56, 0.4);
  color: var(--a80-text);
}
[data-bs-theme="dark"] .table-hover > tbody > tr:hover {
  background: rgba(232, 70, 114, 0.08);
  color: var(--a80-text);
}

/* ========================================
   Forms
   ======================================== */
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select {
  background: var(--a80-surface) !important;
  border-color: var(--a80-border) !important;
  color: var(--a80-text) !important;
}
[data-bs-theme="dark"] .form-control:focus, [data-bs-theme="dark"] .form-select:focus {
  border-color: var(--a80-pink) !important;
  box-shadow: 0 0 0 0.2rem rgba(232, 70, 114, 0.25) !important;
}
[data-bs-theme="dark"] .form-control::placeholder { color: var(--a80-text-muted) !important; }
[data-bs-theme="dark"] .input-group-text {
  background: rgba(232, 70, 114, 0.2);
  border-color: var(--a80-border);
  color: var(--a80-text);
}
[data-bs-theme="dark"] .form-label { color: var(--a80-text); font-weight: 600; }
[data-bs-theme="dark"] .form-check-input:checked {
  background-color: var(--a80-pink);
  border-color: var(--a80-pink);
}

/* ========================================
   Modals
   ======================================== */
[data-bs-theme="dark"] .modal-header {
  background: linear-gradient(135deg, rgba(232, 70, 114, 0.9), rgba(180, 40, 90, 0.9));
  color: #fff;
}
[data-bs-theme="dark"] .modal-body { background: var(--a80-surface); color: var(--a80-text); }
[data-bs-theme="dark"] .modal-footer {
  background: var(--a80-surface);
  border-top: 1px solid var(--a80-border);
}
[data-bs-theme="dark"] .modal-content { border: 1px solid var(--a80-border); }

/* ========================================
   Accordion
   ======================================== */
[data-bs-theme="dark"] .accordion-button {
  background: rgba(232, 70, 114, 0.6) !important;
  color: #fff !important;
  box-shadow: none !important;
}
[data-bs-theme="dark"] .accordion-button.collapsed {
  background: rgba(232, 70, 114, 0.3) !important;
  color: var(--a80-text) !important;
}
[data-bs-theme="dark"] .accordion-item { background: transparent; border-color: var(--a80-border); }
[data-bs-theme="dark"] .accordion-body { background: transparent; color: var(--a80-text); }

/* ========================================
   Nav Pills & Tabs
   ======================================== */
[data-bs-theme="dark"] .nav-pills .nav-link {
  color: var(--a80-text);
  background: rgba(232, 70, 114, 0.2);
  transition: all 0.25s;
}
[data-bs-theme="dark"] .nav-pills .nav-link:hover { background: rgba(232, 70, 114, 0.4); color: #fff; }
[data-bs-theme="dark"] .nav-pills .nav-link.active {
  background: var(--a80-pink) !important;
  color: #fff;
  box-shadow: var(--a80-glow-pink);
}
[data-bs-theme="dark"] .nav-tabs { border-bottom-color: var(--a80-border); }
[data-bs-theme="dark"] .nav-tabs .nav-link { color: var(--a80-text-muted); border: none; }
[data-bs-theme="dark"] .nav-tabs .nav-link.active {
  color: var(--a80-green);
  background: transparent;
  border-bottom: 2px solid var(--a80-green);
}

/* ========================================
   Badges
   ======================================== */
[data-bs-theme="dark"] .badge.bg-primary { background: var(--a80-pink) !important; }
[data-bs-theme="dark"] .badge.bg-success { background: var(--a80-green) !important; color: var(--a80-violet) !important; }
[data-bs-theme="dark"] .badge.bg-info { background: var(--a80-green) !important; color: var(--a80-violet) !important; }
[data-bs-theme="dark"] .badge.bg-secondary { background: var(--a80-surface-hover) !important; }

/* ========================================
   Progress Bars
   ======================================== */
[data-bs-theme="dark"] .progress { background: var(--a80-surface); }
[data-bs-theme="dark"] .progress-bar { background: var(--a80-pink); }

/* ========================================
   Alerts
   ======================================== */
[data-bs-theme="dark"] .alert-info { background: rgba(74,232,160,0.1); border-color: rgba(74,232,160,0.3); color: var(--a80-green); }
[data-bs-theme="dark"] .alert-success { background: rgba(74,232,160,0.1); border-color: rgba(74,232,160,0.3); color: var(--a80-green); }
[data-bs-theme="dark"] .alert-danger { background: rgba(232,70,114,0.1); border-color: rgba(232,70,114,0.3); color: var(--a80-pink); }
[data-bs-theme="dark"] .alert-warning { background: rgba(255,193,7,0.1); border-color: rgba(255,193,7,0.3); color: #ffc107; }

/* ========================================
   Pagination
   ======================================== */
[data-bs-theme="dark"] .page-link {
  background: var(--a80-surface);
  border-color: var(--a80-border);
  color: var(--a80-text);
}
[data-bs-theme="dark"] .page-link:hover { background: var(--a80-surface-hover); color: var(--a80-pink); }
[data-bs-theme="dark"] .page-item.active .page-link {
  background: var(--a80-pink);
  border-color: var(--a80-pink);
  color: #fff;
}
/* Legacy pagination classes */
[data-bs-theme="dark"] .pag-items {
  background: var(--a80-surface) !important;
  border-radius: 5px;
  color: var(--a80-text) !important;
  border-color: var(--a80-border) !important;
}
[data-bs-theme="dark"] .pag-items-curr {
  background: var(--a80-pink) !important;
  border-radius: 5px;
  color: #fff !important;
  border-color: var(--a80-pink) !important;
}

/* ========================================
   Select2
   ======================================== */
[data-bs-theme="dark"] .select2-container { margin-top: 2px; }
[data-bs-theme="dark"] .input-group .select2-container { margin: 0; width: auto; flex: 1 1 auto; }
[data-bs-theme="dark"] .input-group .select2-container .select2-selection--single {
  height: 100%; line-height: inherit;
  border-top-left-radius: 0; border-bottom-left-radius: 0;
}
[data-bs-theme="dark"] .select2-dropdown { background: var(--a80-surface) !important; border-color: var(--a80-border) !important; }
[data-bs-theme="dark"] .select2-results__option { color: var(--a80-text) !important; }
[data-bs-theme="dark"] .select2-results__option--highlighted { background: rgba(232,70,114,0.4) !important; color: #fff !important; }
[data-bs-theme="dark"] .select2-container--default .select2-selection--single {
  background: var(--a80-surface) !important; border-color: var(--a80-border) !important;
}
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--a80-text) !important;
}

/* ========================================
   phpVMS LiveMap
   ======================================== */
.map-info-box {
  position: absolute; bottom: 0; padding: 20px; height: 100px; z-index: 9999;
  background: rgba(36, 24, 56, 0.9); color: var(--a80-text);
}
.map-info-label { display: block; padding: 5px; background: rgba(36, 24, 56, 0.9); color: var(--a80-text); }

/* ========================================
   Dashboard Stat Cards
   ======================================== */
.a80-dash-stat {
  background: var(--a80-surface);
  border: 1px solid var(--a80-border);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.a80-dash-stat .icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232, 70, 114, 0.15); color: var(--a80-pink); font-size: 1rem;
}
.a80-dash-stat .value { font-size: 1.2rem; font-weight: 800; color: var(--a80-text); }
.a80-dash-stat .label { font-size: 0.75rem; color: var(--a80-text-muted); }

/* ========================================
   Auth Pages
   ======================================== */
.a80-auth-container {
  max-width: 450px;
  margin: 3rem auto;
}
.a80-auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.a80-auth-logo img { height: 60px; }

/* ========================================
   Footer
   ======================================== */
.a80-footer {
  padding: 0.8rem 1.5rem;
  font-size: 0.75rem;
  color: var(--a80-text-muted);
  border-top: 1px solid var(--a80-border);
  text-align: center;
}
.a80-footer a { color: var(--a80-green); font-weight: 400; }
.a80-footer a:hover { color: var(--a80-pink); }

/* ========================================
   Text Utilities
   ======================================== */
[data-bs-theme="dark"] .text-muted { color: var(--a80-text-muted) !important; }
.neon-pink { color: var(--a80-pink); text-shadow: var(--a80-glow-pink); }
.neon-green { color: var(--a80-green); text-shadow: var(--a80-glow-green); }

/* ========================================
   Overflow
   ======================================== */
.overflow-auto { max-height: 30vh; }

/* ========================================
   Card Body Icon Rotate (Disposable compat)
   ======================================== */
.card-body .rotate { z-index: 8; float: right; height: 100%; }
.card-body .rotate i {
  color: rgba(232,70,114,0.1); position: absolute; right: -10px; bottom: 0;
  display: block; transform: rotate(-45deg);
}

/* ========================================
   Fixed Height Images (Disposable compat)
   ======================================== */
.img-h20 { width: auto; height: 20px; }
.img-h25 { width: auto; height: 25px; }
.img-h30 { width: auto; height: 30px; }
.img-h35 { width: auto; height: 35px; }
.img-h40 { width: auto; height: 40px; }
.img-h50 { width: auto; height: 50px; }
.img-h60 { width: auto; height: 60px; }
.img-h80 { width: auto; height: 80px; }
.img-h100 { width: auto; height: 100px; }
.img-h125 { width: auto; height: 125px; }
.img-h150 { width: auto; height: 150px; }
.img-h200 { width: auto; height: 200px; }

.img-mh20 { width: auto; max-height: 20px; }
.img-mh25 { width: auto; max-height: 25px; }
.img-mh30 { width: auto; max-height: 30px; }
.img-mh35 { width: auto; max-height: 35px; }
.img-mh40 { width: auto; max-height: 40px; }
.img-mh45 { width: auto; max-height: 45px; }
.img-mh50 { width: auto; max-height: 50px; }
.img-mh60 { width: auto; max-height: 60px; }
.img-mh70 { width: auto; max-height: 70px; }
.img-mh80 { width: auto; max-height: 80px; }
.img-mh90 { width: auto; max-height: 90px; }
.img-mh100 { width: auto; max-height: 100px; }
.img-mh125 { width: auto; max-height: 125px; }
.img-mh150 { width: auto; max-height: 150px; }
.img-mh175 { width: auto; max-height: 175px; }
.img-mh200 { width: auto; max-height: 200px; }

/* ========================================
   Image Switcher / Fader (Disposable compat)
   ======================================== */
.HoverImage { position: relative; }
.HoverImage a { position: absolute; bottom: 0; left: 2px; z-index: 1978; }
.HoverImage img { display: none; }
.HoverImage:hover img { display: block; opacity: 0.99; z-index: 1978; }

#stage a { position: relative; }
#stage a img { border: none; background: transparent; }
#stage a:nth-of-type(1) { animation: fader 10s; z-index: 2100; }
#stage a:nth-of-type(2) { z-index: 2200; display: none; }
@keyframes fader {
  0% { opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; }
}

/* ========================================
   Page Container
   ======================================== */
#page-container { position: relative; min-height: 100vh; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991.98px) {
  .a80-sidebar {
    transform: translateX(-100%);
    position: fixed;
  }
  .a80-sidebar.show { transform: translateX(0); }
  .a80-with-sidebar { margin-left: 0; }
  .a80-topbar .sidebar-toggle { display: block !important; }
}
@media (min-width: 992px) {
  .a80-topbar .sidebar-toggle { display: none !important; }
}
@media (max-width: 768px) {
  body { font-size: 14px; }
  .a80-world-clocks { gap: 0.3rem; }
  .a80-clock-item { min-width: 130px; padding: 0.3rem 0.6rem; }
  .a80-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .a80-hero-img { height: 300px; }
  .a80-hero-card { padding: 1rem; width: 95%; }
  .a80-hero-heading { font-size: 1.2rem; }
  .a80-cta-banner .col-md-6:first-child img { border-radius: 0.5rem 0.5rem 0 0 !important; min-height: 150px !important; }
}

/* ========================================
   Pilot Nav: Avatar + Active States
   ======================================== */
.a80-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--a80-surface);
  border: 2px solid var(--a80-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--a80-pink);
  overflow: hidden;
}
.a80-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.a80-avatar-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a80-green);
  position: relative;
  top: -12px;
  left: -8px;
  box-shadow: var(--a80-glow-green);
}

/* Active dropdown parent — pink underline */
.a80-topnav .nav-link.dropdown-toggle.active {
  border-bottom: 2px solid var(--a80-pink);
}

/* Active dropdown item — pink background */
.a80-topnav .dropdown-item.active,
.a80-topnav .dropdown-item:active {
  background: rgba(232, 70, 114, 0.2);
  color: var(--a80-pink);
}

/* ============================================
   HOME PAGE v2 — REDESIGNED GUEST STYLES
   ============================================ */

/* --- HERO SECTION --- */
.a80-home-hero {
  position: relative;
  width: calc(100% + 3rem);
  margin: -1.5rem -1.5rem 0;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}

.a80-home-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.a80-home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 8, 22, 0.3) 0%,
    rgba(26, 16, 40, 0.6) 50%,
    rgba(26, 16, 40, 0.95) 85%,
    var(--a80-violet) 100%
  );
}

.a80-home-hero-content {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
  max-width: 720px;
  z-index: 2;
}

.a80-home-hero-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--a80-green);
  background: rgba(74, 232, 160, 0.08);
  border: 1px solid rgba(74, 232, 160, 0.2);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.a80-home-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.a80-glow-text {
  background: linear-gradient(135deg, var(--a80-pink), #FF6B9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(232, 70, 114, 0.4));
}

.a80-home-hero-subtitle {
  font-size: 1rem;
  color: rgba(240, 230, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.a80-home-hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.a80-home-hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--a80-pink) 0%, var(--a80-green) 100%);
  z-index: 3;
}

/* --- BUTTONS --- */
.a80-home-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.8rem;
  background: var(--a80-pink);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
  border: 2px solid var(--a80-pink);
}

.a80-home-btn-primary:hover {
  background: #D13560;
  border-color: #D13560;
  box-shadow: 0 6px 25px rgba(232, 70, 114, 0.4);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

.a80-home-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.8rem;
  background: transparent;
  color: rgba(240, 230, 255, 0.8) !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
  border: 2px solid rgba(240, 230, 255, 0.15);
}

.a80-home-btn-ghost:hover {
  border-color: rgba(240, 230, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* --- NAV HIGHLIGHT --- */
.a80-nav-register {
  color: var(--a80-pink) !important;
  font-weight: 700;
}

.a80-nav-login {
  font-weight: 700;
}

/* --- STATS BAR --- */
.a80-home-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--a80-surface);
  border: 1px solid var(--a80-border);
  border-radius: 16px;
  padding: 0.5rem 1rem;
  margin: 2rem auto 3rem;
  max-width: 800px;
}

.a80-home-stat-item {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.a80-home-stat-item i {
  font-size: 0.8rem;
  color: var(--a80-pink);
  margin-bottom: 0.3rem;
  display: block;
}

.a80-home-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.a80-home-stat-lbl {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--a80-text-muted);
  font-weight: 700;
}

.a80-home-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(232, 70, 114, 0.15);
  flex-shrink: 0;
}

/* --- SECTIONS --- */
.a80-home-section {
  margin-bottom: 3.5rem;
}

.a80-home-section-header {
  margin-bottom: 1.5rem;
}

.a80-home-section-marker {
  width: 36px;
  height: 4px;
  background: linear-gradient(90deg, var(--a80-pink), var(--a80-green));
  border-radius: 2px;
  margin-bottom: 0.6rem;
}

.a80-home-section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--a80-text);
  margin-bottom: 0.25rem;
}

.a80-home-section-header p {
  color: var(--a80-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* --- FEATURE CARDS --- */
.a80-home-card {
  background: var(--a80-surface);
  border: 1px solid var(--a80-border);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.a80-home-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(232, 70, 114, 0.15);
}

.a80-home-card-img {
  position: relative;
  overflow: hidden;
}

.a80-home-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.a80-home-card:hover .a80-home-card-img img {
  transform: scale(1.05);
}

.a80-home-card-body {
  padding: 1.25rem;
}

.a80-home-card-body h5 {
  font-weight: 800;
  font-size: 1rem;
  color: var(--a80-text);
  margin-bottom: 0.5rem;
}

.a80-home-card-body p {
  color: var(--a80-text-muted);
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 0;
}

/* --- FLEET CARDS --- */
.a80-home-fleet-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--a80-surface);
  border: 1px solid var(--a80-border);
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.a80-home-fleet-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--a80-pink), var(--a80-green));
  opacity: 0;
  transition: opacity 0.25s;
}

.a80-home-fleet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(232, 70, 114, 0.15);
}

.a80-home-fleet-card:hover::after {
  opacity: 1;
}

.a80-home-fleet-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.a80-home-fleet-card:hover .a80-home-fleet-icon {
  transform: scale(1.08);
}

.a80-fleet-emoji {
  font-size: 1.6rem;
  line-height: 1;
  filter: grayscale(1) brightness(2);
}

.a80-fleet-icon-pink {
  background: rgba(232, 70, 114, 0.15);
  border: 1px solid rgba(232, 70, 114, 0.25);
}

.a80-fleet-icon-pink .a80-fleet-emoji {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.9;
}

.a80-home-fleet-card:hover .a80-fleet-icon-pink {
  box-shadow: 0 0 20px rgba(232, 70, 114, 0.35);
  border-color: rgba(232, 70, 114, 0.5);
}

.a80-fleet-icon-green {
  background: rgba(74, 232, 160, 0.15);
  border: 1px solid rgba(74, 232, 160, 0.25);
}

.a80-fleet-icon-green .a80-fleet-emoji {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.9;
}

.a80-home-fleet-card:hover .a80-fleet-icon-green {
  box-shadow: 0 0 20px rgba(74, 232, 160, 0.35);
  border-color: rgba(74, 232, 160, 0.5);
}

.a80-fleet-icon-gradient {
  background: linear-gradient(135deg, rgba(232, 70, 114, 0.15), rgba(74, 232, 160, 0.15));
  border: 1px solid rgba(232, 70, 114, 0.25);
}

.a80-fleet-icon-gradient .a80-fleet-emoji {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.9;
}

.a80-home-fleet-card:hover .a80-fleet-icon-gradient {
  box-shadow: 0 0 20px rgba(232, 70, 114, 0.3);
  border-color: rgba(232, 70, 114, 0.5);
}

.a80-home-fleet-type {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
}

.a80-home-fleet-role {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--a80-pink);
  margin-top: 2px;
}

.a80-home-fleet-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--a80-text-muted);
}

.a80-home-fleet-details i {
  color: var(--a80-green);
  width: 14px;
  text-align: center;
  font-size: 0.65rem;
}

/* --- CARGO TEASER --- */
.a80-home-cargo {
  background: var(--a80-surface);
  border: 1px solid var(--a80-border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.a80-home-cargo-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--a80-pink) 0%, var(--a80-green) 100%);
}

.a80-home-cargo-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  gap: 2rem;
}

.a80-home-cargo-left h4 {
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.a80-home-cargo-left p {
  color: var(--a80-text-muted);
  font-size: 0.85rem;
  margin: 0;
  max-width: 480px;
}

.a80-home-cargo-right {
  display: flex;
  gap: 2rem;
  flex-shrink: 0;
}

.a80-home-cargo-stat {
  text-align: center;
}

.a80-home-cargo-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--a80-pink);
  line-height: 1;
}

.a80-home-cargo-stat .lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--a80-text-muted);
  font-weight: 700;
  margin-top: 4px;
}

/* --- HOW IT WORKS — STEPS --- */
.a80-home-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--a80-surface);
  border: 1px solid var(--a80-border);
  border-radius: 14px;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}

.a80-home-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(232, 70, 114, 0.12);
}

.a80-home-step-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--a80-pink), var(--a80-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.a80-home-step h5 {
  font-weight: 800;
  color: var(--a80-text);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.a80-home-step p {
  color: var(--a80-text-muted);
  font-size: 0.82rem;
  line-height: 1.65;
  margin: 0;
}

/* --- CTA SECTION --- */
.a80-home-cta {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(232, 70, 114, 0.08), rgba(74, 232, 160, 0.04));
  border: 1px solid var(--a80-border);
  border-radius: 20px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.a80-home-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--a80-pink) 0%, var(--a80-green) 100%);
}

.a80-home-cta h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--a80-text);
  margin-bottom: 0.75rem;
}

.a80-home-cta p {
  color: var(--a80-text-muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.a80-home-cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --- RESPONSIVE --- */
@media (max-width: 991.98px) {
  .a80-home-hero-title {
    font-size: 2.2rem;
  }
  .a80-home-cargo-body {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .a80-home-cargo-left p {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .a80-home-hero {
    height: 70vh;
    min-height: 420px;
    width: calc(100% + 2rem);
    margin: -1rem -1rem 0;
  }
  .a80-home-hero-title {
    font-size: 1.7rem;
  }
  .a80-home-hero-subtitle {
    font-size: 0.85rem;
  }
  .a80-home-hero-content {
    bottom: 10%;
  }
  .a80-home-stats-bar {
    flex-wrap: wrap;
    gap: 0;
    max-width: 100%;
  }
  .a80-home-stat-item {
    flex: 1 0 33%;
  }
  .a80-home-stat-divider {
    display: none;
  }
  .a80-home-stat-num {
    font-size: 1.2rem;
  }
  .a80-home-section {
    margin-bottom: 2.5rem;
  }
  .a80-home-cta {
    padding: 2.5rem 1.5rem;
  }
  .a80-home-cta h2 {
    font-size: 1.3rem;
  }
}
