/* ========== ENTERPRISE THEME - ConnectionAIS ========== */

:root {
  --app-navy: #12295c;
  --app-navy-dark: #0b1c42;
  --app-accent: #06b6d4;
  --app-success: #10b981;
  --app-warning: #f59e0b;
  --app-danger: #ef4444;
  --app-bg: #eef2f7;
  --app-card-border: #e2e8f0;
  --app-text: #1e293b;
  --app-text-muted: #64748b;

  /* Override Bootstrap --bs-* agar seluruh UI memakai merk */
  --bs-primary: #12295c;
  --bs-primary-rgb: 18, 41, 92;
  --bs-accent: #06b6d4;
  --bs-accent-rgb: 6, 182, 212;
  --bs-success: #10b981;
  --bs-success-rgb: 16, 185, 129;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger: #ef4444;
  --bs-danger-rgb: 239, 68, 68;
  --bs-info: #0ea5e9;
  --bs-info-rgb: 14, 165, 233;
  --bs-border-radius: 0.5rem;

  --app-radius: 14px;
  --app-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  --map-h: 520px;
  --scroll-h: 340px;
  --app-radius-sm: 10px;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  background-color: var(--app-bg);
  color: var(--app-text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- NAVBAR ---------- */
.app-navbar {
  background: linear-gradient(135deg, var(--app-navy-dark) 0%, var(--app-navy) 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  padding: 0.55rem 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 19px;
  margin-right: 10px;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
  margin-right: 10px;
  filter: drop-shadow(0 3px 8px rgba(6, 182, 212, .28));
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: #93c5fd;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.2;
}

.app-navbar .nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  margin: 0 2px;
  transition: all 0.2s ease;
}

.app-navbar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.app-navbar .nav-link.active {
  color: #fff;
  background: rgba(6, 182, 212, 0.28);
}

.nav-clock {
  font-variant-numeric: tabular-nums;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 1.6s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- MAIN ---------- */
.app-main {
  flex: 1;
  padding: 20px 0 30px;
}

.page-header {
  margin-bottom: 18px;
}

.page-header h4 {
  font-weight: 700;
  color: var(--app-navy);
  margin-bottom: 2px;
}

.page-header p {
  color: var(--app-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ---------- CARDS ---------- */
.card {
  border: 1px solid var(--app-card-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  background: #fff;
}

.card-header {
  background: #fff;
  border-bottom: 1px solid var(--app-card-border);
  border-radius: 14px 14px 0 0 !important;
  padding: 0.75rem 1rem;
}

.card-header h6 {
  font-weight: 700;
  color: var(--app-navy);
  font-size: 0.88rem;
}

.header-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- STAT CARDS ---------- */
.stat-card {
  background: #fff;
  border: 1px solid var(--app-card-border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  height: 100%;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-icon.green { background: #d1fae5; color: #059669; }
.stat-icon.amber { background: #fef3c7; color: #d97706; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.red { background: #fee2e2; color: #dc2626; }

.stat-label {
  font-size: 0.68rem;
  color: var(--app-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--app-navy);
  line-height: 1.2;
}

.stat-sub {
  font-size: 0.72rem;
  color: var(--app-text-muted);
  font-weight: 500;
}

/* ---------- FORMS ---------- */
.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: 0.3rem;
}

.form-select,
.form-control {
  border-radius: 10px;
  border-color: #dbe2ea;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.18);
}

.btn {
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* ---------- LINER LIST ---------- */
.liner-list {
  max-height: 210px;
  overflow-y: auto;
  border: 1px solid var(--app-card-border);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
}

.liner-list .form-check {
  font-size: 0.83rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.liner-list .form-check-input:checked {
  background-color: var(--app-accent);
  border-color: var(--app-accent);
}

/* ---------- MAP ---------- */
#map {
  width: 100%;
  border-radius: 0 0 14px 14px;
  z-index: 1;
}

.vessel-marker {
  background: none !important;
  border: none !important;
}

.map-legend {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  font-size: 11px;
  line-height: 1.5;
}

.map-legend .legend-title {
  font-weight: 700;
  color: var(--app-navy);
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(248, 249, 250, 0.8);
  color: var(--app-text-muted);
  z-index: 500;
  pointer-events: none;
  border-radius: 0 0 14px 14px;
}

.leaflet-popup-content-wrapper {
  border-radius: 10px;
}

.leaflet-popup-content {
  margin: 10px 14px;
  font-size: 13px;
}

.leaflet-popup-content h6 {
  margin-bottom: 2px;
  font-weight: 700;
}

.vessel-map-icon {
    background: transparent;
    border: 0;
    color: #0d6efd;
    font-size: 27px;
    line-height: 30px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
}

.vessel-map-icon span {
    transform-origin: 50% 50%;
}

.tracking-shell {
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(15, 35, 70, .08);
}

.tracking-map-panel {
    min-height: 600px;
    background: #dce8f2;
}

.tracking-list-panel {
    background: #f8fafc;
    border-left: 1px solid #dbe5f0;
    display: flex;
    flex-direction: column;
    min-height: var(--map-h);
}

.tracking-list-panel .scroll-list {
    height: calc(var(--map-h) - 72px);
    max-height: calc(var(--map-h) - 72px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #7da7c7 #e8f0f7;
}

.tracking-list-panel .scroll-list::-webkit-scrollbar {
    width: 8px;
}

.tracking-list-panel .scroll-list::-webkit-scrollbar-track {
    background: #e8f0f7;
}

.tracking-list-panel .scroll-list::-webkit-scrollbar-thumb {
    background: #7da7c7;
    border-radius: 10px;
}

.tracking-list-header {
    background: linear-gradient(135deg, #102a56, #174f86);
    color: #fff;
}

.tracking-vessel-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid #e5edf5;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tracking-vessel-row:hover {
    background: #f0f7ff;
    box-shadow: inset 3px 0 #1683c4;
}

.tracking-vessel-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #0877b5, #12b7c9);
    box-shadow: 0 5px 12px rgba(8, 119, 181, .25);
}

.tracking-vessel-main {
    min-width: 0;
    flex: 1;
}

.tracking-vessel-main strong,
.tracking-vessel-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tracking-vessel-actions {
    display: flex;
    gap: .25rem;
}

@media (max-width: 991.98px) {
    .tracking-list-panel {
        min-height: 0;
        border-left: 0;
        border-top: 1px solid #dbe5f0;
    }

    .tracking-list-panel .scroll-list {
        height: 360px;
        max-height: 360px;
    }
}

/* ---------- TABLES ---------- */
.table td,
.table th {
  padding: 0.4rem 0.55rem;
  font-size: 0.8rem;
  border-color: #eef2f7;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* ---------- LIST ---------- */
.list-group-item {
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
  border-color: #eef2f7;
}

.list-group-item:hover {
  background-color: #f1f5f9;
}

.badge {
  font-size: 0.65rem;
  padding: 0.3em 0.55em;
  font-weight: 600;
}

/* ---------- FOOTER ---------- */
.app-footer {
  background: var(--app-navy-dark);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  padding: 14px 0;
}

/* ---------- TOAST ---------- */
.toast-container {
  z-index: 9999;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ---------- AUTHENTICATION ---------- */
.auth-body {
  background: #f5f8fc;
  color: #17233d;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(500px, 1.08fr);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  padding: 38px clamp(34px, 6vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: radial-gradient(circle at 80% 15%, rgba(34, 211, 238, .2), transparent 28%), linear-gradient(145deg, #071837 0%, #102c64 58%, #0e7890 140%);
}

.auth-visual-trial { background: radial-gradient(circle at 20% 15%, rgba(56, 189, 248, .18), transparent 28%), linear-gradient(145deg, #071837 0%, #163b75 55%, #126e7e 140%); }
.auth-orb { position: absolute; border: 1px solid rgba(125, 211, 252, .18); border-radius: 50%; pointer-events: none; }
.auth-orb-one { width: 470px; height: 470px; right: -220px; top: 12%; box-shadow: 0 0 0 42px rgba(125, 211, 252, .025), 0 0 0 84px rgba(125, 211, 252, .025); }
.auth-orb-two { width: 300px; height: 300px; left: -180px; bottom: -110px; }
.auth-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; width: fit-content; }
.auth-brand strong { display: block; font: 700 1.08rem 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
.auth-brand small { display: block; color: #9cc5ef; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.auth-visual-content { position: relative; z-index: 1; max-width: 560px; padding: 42px 0; }
.auth-visual h1 { font: 700 clamp(2.4rem, 4vw, 4.3rem)/1.04 'Space Grotesk', sans-serif; letter-spacing: -.065em; margin: 20px 0; }
.auth-visual h1 span { color: #67e8f9; }
.auth-visual-content p { color: #bfd4ee; font-size: 1.02rem; line-height: 1.75; max-width: 470px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #0891b2; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.auth-visual .eyebrow { color: #67e8f9; }
.auth-feature-list { display: grid; gap: 14px; margin-top: 30px; color: #e0f2fe; font-size: .9rem; }
.auth-feature-list i { color: #67e8f9; margin-right: 9px; }
.auth-visual-footer { position: relative; z-index: 1; color: #9cc5ef; font-size: .76rem; display: flex; gap: 8px; align-items: center; }
.auth-panel { background: #f8fbff; display: flex; align-items: center; justify-content: center; padding: 50px 30px; }
.auth-form-wrap { width: min(100%, 430px); }
.auth-form-wide { width: min(100%, 620px); }
.auth-mobile-brand { display: none; }
.auth-heading { margin-bottom: 28px; }
.auth-heading h2 { color: #12295c; font: 700 2.15rem 'Space Grotesk', sans-serif; letter-spacing: -.045em; margin: 8px 0 7px; }
.auth-heading p { color: #64748b; margin: 0; line-height: 1.6; }
.auth-form .form-label { color: #243653; font-size: .8rem; margin-bottom: 7px; }
.auth-form .form-control { min-height: 48px; border-radius: 11px; background: #fff; border-color: #dbe5f0; padding: .7rem .85rem; }
.auth-form .form-control:focus { border-color: #0891b2; box-shadow: 0 0 0 4px rgba(8, 145, 178, .1); }
.input-with-icon { position: relative; }
.input-with-icon > i { position: absolute; left: 15px; top: 15px; color: #94a3b8; z-index: 2; }
.input-with-icon .form-control { padding-left: 42px; }
.input-password .form-control { padding-right: 44px; }
.password-toggle { border: 0; background: transparent; color: #94a3b8; position: absolute; right: 10px; top: 9px; width: 34px; height: 32px; z-index: 2; }
.password-toggle:hover { color: #0e7490; }
.form-hint { color: #94a3b8; font-size: .7rem; }
.optional { color: #94a3b8; font-size: .7rem; font-weight: 400; margin-left: 4px; }
.auth-check { color: #64748b; font-size: .78rem; display: inline-flex; gap: 7px; align-items: center; }
.auth-check .form-check-input { margin: 0; }
.btn-auth-primary { min-height: 49px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(115deg, #0e7490, #2563eb); box-shadow: 0 9px 18px rgba(14, 116, 144, .18); display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; }
.btn-auth-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 22px rgba(14, 116, 144, .25); }
.btn-auth-secondary { min-height: 47px; border: 1px solid #cbdced; border-radius: 11px; color: #1d4ed8; background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; }
.btn-auth-secondary:hover { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #94a3b8; font-size: .73rem; margin: 24px 0 16px; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: #e2eaf3; flex: 1; }
.auth-alert { font-size: .78rem; border-radius: 10px; border: 0; }
.auth-legal { text-align: center; color: #94a3b8; font-size: .68rem; line-height: 1.55; margin: 18px 0 0; }
.back-link { color: #64748b; font-size: .8rem; text-decoration: none; }
.back-link:hover { color: #0e7490; }
.trial-stat-row { display: flex; gap: clamp(22px, 4vw, 48px); margin-top: 38px; }
.trial-stat-row strong { display: block; color: #fff; font: 700 1.75rem 'Space Grotesk', sans-serif; }
.trial-stat-row span { color: #9cc5ef; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
.auth-confirmation { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0%, #dff7ff, transparent 36%), #f5f8fc; }
.confirmation-card { width: min(100%, 520px); text-align: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 22px; padding: 52px 42px; box-shadow: 0 24px 60px rgba(15, 23, 42, .1); }
.confirmation-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 20px; color: #059669; background: #d1fae5; font-size: 2rem; }
.confirmation-danger { color: #dc2626; background: #fee2e2; }
.confirmation-card h1 { color: #12295c; font: 700 2.2rem 'Space Grotesk', sans-serif; margin: 10px 0; }
.confirmation-card p { color: #64748b; line-height: 1.7; margin: 0 auto 28px; max-width: 390px; }
.user-menu { border: 0; color: #fff; background: rgba(255,255,255,.08); border-radius: 11px; padding: 4px 8px 4px 5px; display: flex; align-items: center; gap: 8px; }
.user-menu:hover { background: rgba(255,255,255,.15); }
.user-menu strong, .user-menu small { display: block; line-height: 1.1; font-size: .7rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu small { color: #9cc5ef; font-size: .62rem; margin-top: 3px; }
.user-avatar { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #06b6d4, #2563eb); font-size: .78rem; font-weight: 700; }
.user-dropdown { min-width: 190px; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 14px 30px rgba(15, 23, 42, .14); padding: 7px; }
.user-dropdown .dropdown-item { border-radius: 8px; padding: 8px 10px; font-size: .8rem; }
.notification-button { position: relative; width: 34px; height: 34px; border: 0; border-radius: 10px; color: #dbeafe; background: rgba(255,255,255,.08); }
.notification-button:hover { color: #fff; background: rgba(255,255,255,.16); }
.notification-count { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 99px; color: #fff; background: #ef4444; font-size: .58rem; font-weight: 800; border: 2px solid var(--app-navy); }
.notification-menu { width: 355px; max-width: calc(100vw - 28px); padding: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 14px 35px rgba(15,23,42,.16); }
.notification-menu-header { padding: 14px 16px 11px; border-bottom: 1px solid #eef2f7; display: flex; justify-content: space-between; align-items: center; color: var(--app-navy); }
.notification-menu-header small { color: #94a3b8; font-size: .68rem; }
.notification-list { max-height: 365px; overflow-y: auto; }
.notification-item { width: 100%; display: flex; text-align: left; gap: 10px; padding: 12px 14px; border: 0; border-bottom: 1px solid #f1f5f9; background: #fff; }
.notification-item:hover { background: #f8fbff; }
.notification-unread { background: #f0f9ff; }
.notification-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 9px; color: #0284c7; background: #e0f2fe; }
.notification-body { min-width: 0; display: grid; gap: 3px; }
.notification-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1e293b; font-size: .76rem; }
.notification-body span { color: #64748b; font-size: .72rem; line-height: 1.35; }
.notification-body small { color: #94a3b8; font-size: .62rem; }
.notification-empty { min-height: 130px; display: grid; place-content: center; gap: 5px; text-align: center; color: #94a3b8; font-size: .76rem; }
.notification-empty i { color: #10b981; font-size: 1.35rem; }
.admin-table-card { overflow: hidden; }
.admin-table-card .table th { color: #64748b; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.admin-table-card .table td { font-size: .78rem; }
.admin-use-case { min-width: 220px; max-width: 320px; color: #64748b; line-height: 1.45; }
.status-pill { display: inline-flex; border-radius: 99px; padding: 4px 9px; font-size: .65rem; font-weight: 700; }
.status-pending { color: #b45309; background: #fef3c7; }
.status-approved { color: #047857; background: #d1fae5; }
.status-rejected { color: #b91c1c; background: #fee2e2; }
.status-active { color: #047857; background: #d1fae5; }
.status-suspended { color: #b45309; background: #fef3c7; }
.status-revoked { color: #b91c1c; background: #fee2e2; }
.status-admin { color: #6d28d9; background: #ede9fe; }
.status-viewer { color: #1d4ed8; background: #dbeafe; }
.status-authentication { color: #0369a1; background: #e0f2fe; }
.status-trial { color: #92400e; background: #fef3c7; }
.status-administration { color: #6d28d9; background: #ede9fe; }
.status-info { color: #0369a1; background: #e0f2fe; }
.status-success { color: #047857; background: #d1fae5; }
.status-warning { color: #b45309; background: #fef3c7; }
.status-critical { color: #b91c1c; background: #fee2e2; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 330px; padding: 28px 28px 34px; }
  .auth-visual-content { padding: 28px 0 8px; }
  .auth-visual h1 { font-size: 2.7rem; }
  .auth-feature-list { display: none; }
  .auth-visual-footer { display: none; }
  .auth-panel { min-height: calc(100vh - 330px); padding: 42px 22px; }
  .auth-mobile-brand { display: none; }
}

@media (max-width: 540px) {
  .auth-visual { min-height: 270px; }
  .auth-visual h1 { font-size: 2.15rem; }
  .auth-visual-content p { font-size: .88rem; }
  .auth-panel { padding: 32px 18px; }
  .trial-stat-row { margin-top: 22px; gap: 18px; }
  .trial-stat-row strong { font-size: 1.35rem; }
  .trial-stat-row span { font-size: .58rem; }
  .confirmation-card { padding: 40px 25px; }
}

/* ---------- PUBLIC LANDING ---------- */
.landing-body { background: #061631; color: #eef7ff; font-family: 'DM Sans', 'Segoe UI', sans-serif; }
.landing-nav { position: absolute; z-index: 10; top: 0; left: 0; right: 0; min-height: 84px; padding: 18px clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.landing-brand img { width: 43px; height: 43px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(34,211,238,.25)); }
.landing-brand strong { display: block; font: 700 1rem 'Space Grotesk', sans-serif; letter-spacing: -.03em; }
.landing-brand small { display: block; color: #8da9cd; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.landing-nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); margin-left: auto; }
.landing-nav-links a, .landing-signin { color: #9eb8da; text-decoration: none; font-size: .78rem; font-weight: 600; transition: color .2s ease; }
.landing-nav-links a:hover, .landing-signin:hover { color: #fff; }
.landing-nav-actions { display: flex; align-items: center; gap: 18px; }
.landing-nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid rgba(103,232,249,.38); border-radius: 10px; color: #dffbff; background: rgba(14,116,144,.24); font-size: .77rem; font-weight: 700; text-decoration: none; }
.landing-nav-cta:hover { color: #fff; background: rgba(14,116,144,.48); }
.landing-menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 1.6rem; }
.landing-hero { position: relative; min-height: 760px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr); align-items: center; gap: clamp(30px, 6vw, 100px); overflow: hidden; padding: 135px clamp(22px, 8vw, 130px) 85px; background: radial-gradient(circle at 85% 28%, rgba(14,116,144,.4), transparent 28%), radial-gradient(circle at 13% 80%, rgba(37,99,235,.18), transparent 30%), linear-gradient(132deg, #061532 0%, #0a2050 63%, #092f55 100%); }
.landing-grid-lines { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(125,211,252,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(125,211,252,.16) 1px, transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.landing-hero::after { content: ''; position: absolute; width: 660px; height: 660px; right: -200px; bottom: -360px; border: 1px solid rgba(103,232,249,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(103,232,249,.03), 0 0 0 140px rgba(103,232,249,.025); }
.landing-hero-copy, .landing-command-card { position: relative; z-index: 1; }
.landing-kicker { display: inline-flex; align-items: center; gap: 8px; color: #62d8ed; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.landing-kicker-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 5px rgba(52,211,153,.12); }
.landing-hero h1 { max-width: 720px; margin: 24px 0 23px; color: #f5fbff; font: 700 clamp(3.1rem, 6vw, 6.25rem)/.98 'Space Grotesk', sans-serif; letter-spacing: -.08em; }
.landing-hero h1 em, .landing-section h2 em, .landing-cta h2 em { color: #67e8f9; font-style: normal; }
.landing-lead { max-width: 595px; color: #abc4e4; font-size: clamp(.96rem, 1.35vw, 1.1rem); line-height: 1.75; }
.landing-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 19px; margin-top: 32px; }
.landing-primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 49px; padding: 0 19px; border-radius: 11px; color: #fff; background: linear-gradient(115deg, #0e7490, #2563eb); box-shadow: 0 12px 25px rgba(14,116,144,.24); font-size: .8rem; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.landing-primary-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(14,116,144,.34); }
.landing-text-btn { display: inline-flex; align-items: center; gap: 9px; color: #c7dbf4; font-size: .78rem; font-weight: 700; text-decoration: none; }
.landing-text-btn:hover { color: #fff; }
.landing-trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 45px; color: #85a7ce; font-size: .69rem; }
.landing-trust-row i { margin-right: 5px; color: #67e8f9; }
.landing-command-card { padding: 18px; border: 1px solid rgba(148,163,184,.27); border-radius: 18px; background: linear-gradient(145deg, rgba(15,37,79,.86), rgba(5,22,52,.89)); box-shadow: 0 28px 70px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.08); transform: rotate(1.6deg); }
.command-card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 2px 2px 16px; }
.command-eyebrow { display: flex; align-items: center; gap: 7px; color: #67e8f9; font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.command-eyebrow .live-dot { width: 6px; height: 6px; background: #34d399; border-radius: 50%; }
.command-card-top h2 { margin: 7px 0 0; color: #f3f9ff; font: 600 1.14rem 'Space Grotesk', sans-serif; }
.command-time { color: #7995b9; font-size: .6rem; }
.command-map { position: relative; min-height: 305px; overflow: hidden; border: 1px solid rgba(103,232,249,.13); border-radius: 12px; background: radial-gradient(circle at 47% 52%, rgba(14,116,144,.22), transparent 24%), linear-gradient(142deg, #102e59, #071b3b); }
.command-map::before { content: ''; position: absolute; inset: -50%; background: repeating-linear-gradient(32deg, transparent 0 28px, rgba(125,211,252,.045) 29px 30px); transform: rotate(-13deg); }
.map-radar { position: absolute; border: 1px solid rgba(103,232,249,.24); border-radius: 50%; left: 48%; top: 50%; transform: translate(-50%,-50%); }
.radar-one { width: 110px; height: 110px; }.radar-two { width: 205px; height: 205px; border-color: rgba(103,232,249,.13); }.radar-three { width: 320px; height: 320px; border-color: rgba(103,232,249,.07); }
.map-crosshair { position: absolute; width: 1px; height: 100%; left: 48%; background: rgba(103,232,249,.1); }.map-crosshair::after { content: ''; position: absolute; width: 100vw; height: 1px; left: -50vw; top: 50%; background: rgba(103,232,249,.1); }
.map-route { position: absolute; height: 1px; border-top: 1px dashed rgba(103,232,249,.4); transform-origin: left center; }.route-one { width: 220px; left: 18%; top: 72%; transform: rotate(-28deg); }.route-two { width: 170px; left: 52%; top: 32%; transform: rotate(31deg); }
.vessel-pip { position: absolute; z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #67e8f9; border-radius: 50%; color: #a5f3fc; background: #0e7490; box-shadow: 0 0 0 5px rgba(103,232,249,.12), 0 0 16px rgba(34,211,238,.5); font-size: .5rem; }.pip-one { left: 17%; top: 69%; }.pip-two { left: 48%; top: 48%; }.pip-three { left: 71%; top: 26%; }.pip-four { left: 78%; top: 76%; background: #2563eb; border-color: #bfdbfe; }
.map-label { position: absolute; z-index: 3; padding: 6px 8px; border: 1px solid rgba(148,163,184,.2); border-radius: 6px; background: rgba(4,18,43,.82); }.map-label strong, .map-label small { display: block; }.map-label strong { color: #e0f2fe; font-size: .54rem; letter-spacing: .06em; }.map-label small { color: #7dd3fc; font-size: .52rem; margin-top: 2px; }.label-one { left: 5%; top: 52%; }.label-two { right: 5%; top: 15%; }.map-coordinates { position: absolute; bottom: 10px; left: 12px; color: #7190b7; font: .56rem/1 monospace; }
.command-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding-top: 16px; }.command-metrics > div { min-width: 0; padding: 2px 5px; }.command-metrics small, .command-metrics span { display: block; color: #7693b9; font-size: .57rem; }.command-metrics strong { display: inline-block; margin: 4px 5px 2px 0; color: #f2f8ff; font: 600 1.25rem 'Space Grotesk', sans-serif; }.command-metrics b { color: #7dd3fc; font: 500 .6rem 'DM Sans', sans-serif; }.metric-up { color: #34d399 !important; display: inline !important; }.metric-alert { color: #fbbf24 !important; }.metric-alert-text { color: #fbbf24 !important; }
.landing-proof { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 75px); min-height: 132px; padding: 30px 22px; border-bottom: 1px solid rgba(148,163,184,.12); background: #071a38; }.landing-proof > div:not(.proof-separator) { display: grid; gap: 4px; }.landing-proof strong { color: #e6f4ff; font: 600 1rem 'Space Grotesk',sans-serif; }.landing-proof span { color: #7794b8; font-size: .68rem; }.proof-separator { width: 1px; height: 38px; background: #284268; }
.landing-section { padding: 125px clamp(22px, 8vw, 130px); background: #f7fbff; color: #12295c; }.landing-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 48px; }.landing-section-heading h2, .workflow-intro h2 { margin: 13px 0 0; font: 700 clamp(2.2rem, 4vw, 4rem)/1.02 'Space Grotesk',sans-serif; letter-spacing: -.07em; }.landing-section-heading p { max-width: 420px; color: #64748b; font-size: .96rem; line-height: 1.7; margin: 0; }.landing-capabilities .landing-kicker, .landing-workflow .landing-kicker, .landing-operations .landing-kicker, .landing-cta .landing-kicker { color: #0e7490; }
.capability-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }.capability-card { position: relative; min-height: 330px; overflow: hidden; padding: 25px 22px; border: 1px solid #e1eaf3; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.04); transition: transform .2s, box-shadow .2s; }.capability-card:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(15,23,42,.09); }.capability-featured { color: #e8f7ff; border-color: #163d71; background: linear-gradient(145deg,#0b2550,#0c647d); }.capability-number { position: absolute; right: 18px; top: 17px; color: #b7c7d9; font: 600 .65rem monospace; }.capability-featured .capability-number { color: #75d9e9; }.capability-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 45px; border-radius: 12px; color: #fff; background: #0e7490; font-size: 1.25rem; }.icon-blue { color: #0284c7; background: #e0f2fe; }.icon-amber { color: #d97706; background: #fef3c7; }.icon-purple { color: #7c3aed; background: #ede9fe; }.capability-card h3 { position: relative; font: 600 1.16rem 'Space Grotesk',sans-serif; letter-spacing: -.035em; }.capability-card p { position: relative; min-height: 75px; color: #64748b; font-size: .8rem; line-height: 1.65; }.capability-featured p { color: #bfdcf0; }.capability-card a { position: relative; display: inline-flex; align-items: center; gap: 7px; color: #0e7490; font-size: .72rem; font-weight: 700; text-decoration: none; }.capability-featured a { color: #8cecf5; }.capability-watermark { position: absolute; right: -25px; bottom: -40px; color: rgba(103,232,249,.12); font-size: 8rem; transform: rotate(-15deg); }
.landing-workflow { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 10vw, 150px); background: #eef6fc; }.workflow-intro p { max-width: 370px; color: #64748b; line-height: 1.7; margin: 25px 0 30px; font-size: .9rem; }.workflow-steps { position: relative; display: grid; gap: 26px; padding-top: 5px; }.workflow-line { position: absolute; left: 24px; top: 34px; bottom: 34px; width: 1px; background: #c3d9e8; }.workflow-step { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 20px; align-items: start; }.workflow-step > span { position: relative; z-index: 1; display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid #b9d8e8; border-radius: 15px; color: #0e7490; background: #eef6fc; font: 600 .72rem monospace; }.workflow-step div { padding: 2px 0 18px; }.workflow-step i { color: #0e7490; font-size: 1.2rem; }.workflow-step h3 { display: inline-block; margin: 0 0 0 10px; font: 600 1.1rem 'Space Grotesk',sans-serif; }.workflow-step p { color: #64748b; font-size: .8rem; line-height: 1.55; margin: 10px 0 0; }
.landing-operations { background: #fff; }.operations-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }.operation-panel { padding: 28px; border: 1px solid #e1eaf3; border-radius: 16px; background: linear-gradient(145deg,#fff,#f6fbff); }.operation-panel > i { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 30px; border-radius: 12px; color: #0e7490; background: #e0f7fa; font-size: 1.25rem; }.operation-panel h3 { font: 600 1.15rem 'Space Grotesk',sans-serif; }.operation-panel p { min-height: 66px; color: #64748b; font-size: .82rem; line-height: 1.65; }.operation-panel span { color: #0e7490; font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.landing-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 85px clamp(22px, 8vw, 130px); background: radial-gradient(circle at 82% 20%, rgba(14,116,144,.45), transparent 28%), #081c40; }.landing-cta h2 { margin: 13px 0 0; color: #f5fbff; font: 700 clamp(2.2rem,4vw,4rem)/1.03 'Space Grotesk',sans-serif; letter-spacing: -.07em; }
.landing-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px clamp(22px, 8vw, 130px); color: #7896ba; background: #05132c; font-size: .69rem; }.landing-footer .landing-brand { flex-shrink: 0; }.landing-footer .landing-brand img { width: 35px; height: 35px; }.landing-footer .landing-brand strong { font-size: .85rem; }.landing-footer .landing-brand small { font-size: .54rem; }
@media (max-width: 1050px) { .landing-nav-links { display: none; }.landing-nav-actions { margin-left: auto; }.landing-hero { grid-template-columns: 1fr; padding-top: 130px; }.landing-hero-copy { max-width: 720px; }.landing-command-card { width: min(100%, 620px); margin: 25px auto 0; }.capability-grid { grid-template-columns: repeat(2,1fr); }.landing-workflow { grid-template-columns: 1fr; }.workflow-intro { max-width: 600px; }.landing-section-heading { align-items: start; flex-direction: column; gap: 20px; } }
@media (max-width: 680px) { .landing-nav { min-height: 70px; padding: 14px 18px; }.landing-nav-actions { display: none; }.landing-menu-toggle { display: block; }.landing-nav-links { position: absolute; top: 69px; left: 15px; right: 15px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid rgba(125,211,252,.16); border-radius: 12px; background: #0a2250; }.landing-nav-links.is-open { display: flex; }.landing-nav-links a { padding: 11px; }.landing-hero { min-height: 800px; padding: 115px 20px 55px; }.landing-hero h1 { font-size: 3rem; }.landing-trust-row { gap: 10px; }.landing-command-card { padding: 12px; transform: none; }.command-map { min-height: 250px; }.command-metrics strong { font-size: 1rem; }.landing-proof { align-items: start; flex-direction: column; gap: 15px; padding: 28px 20px; }.proof-separator { width: 35px; height: 1px; }.landing-section { padding: 78px 20px; }.capability-grid, .operations-grid { grid-template-columns: 1fr; }.capability-card { min-height: 285px; }.landing-cta { align-items: start; flex-direction: column; padding: 65px 20px; }.landing-footer { align-items: start; flex-direction: column; padding: 28px 20px; } }

/* ========== DESIGN SYSTEM v2 (Tracing / Vessel / Port / Fleet) ========== */

.app-btn-brand { color: #fff; background: linear-gradient(135deg, var(--app-accent), #2563eb); border: 0; border-radius: var(--app-radius-sm); box-shadow: 0 6px 16px rgba(6, 182, 212, .25); }
.app-btn-brand:hover { color: #fff; filter: brightness(1.08); }

.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.page-header h1 { margin: 0; color: var(--app-navy); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.page-header .page-sub { margin: 3px 0 0; color: var(--app-text-muted); font-size: .78rem; }

.app-section { margin-bottom: 20px; }

/* Kartu KPI di halaman Tracing */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi-card { position: relative; overflow: hidden; padding: 18px 18px 15px; border: 1px solid var(--app-card-border); border-radius: var(--app-radius); background: #fff; box-shadow: var(--app-shadow); }
.kpi-card::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--kpi-color, var(--app-accent)); }
.kpi-label { display: flex; align-items: center; gap: 7px; color: var(--app-text-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.kpi-label i { color: var(--kpi-color, var(--app-accent)); font-size: .95rem; }
.kpi-value { margin: 9px 0 2px; color: var(--app-navy); font: 700 1.7rem 'Space Grotesk', 'Inter', sans-serif; line-height: 1; }
.kpi-sub { color: var(--app-text-muted); font-size: .7rem; }

@media (max-width: 992px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kpi-grid { grid-template-columns: 1fr; } }

/* Tab navigasi bawaan (Vessel: Profil/Jejak/Pelabuhan/Prediksi) */
.app-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 18px; border: 1px solid var(--app-card-border); border-radius: var(--app-radius-sm); background: #fff; }
.app-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 8px; color: var(--app-text-muted); font-size: .78rem; font-weight: 600; text-decoration: none; }
.app-tabs a.active { color: var(--app-navy); background: linear-gradient(135deg, rgba(6,182,212,.14), rgba(37,99,235,.1)); box-shadow: inset 0 0 0 1px rgba(6,182,212,.35); }
.app-tabs a:hover:not(.active) { color: var(--app-navy); background: #f1f5f9; }

/* Panel hasil / daftar scrollable */
.scroll-list { max-height: var(--scroll-h); overflow-y: auto; }
.scroll-list-sm { max-height: 220px; overflow-y: auto; }

.empty-state { padding: 34px 20px; text-align: center; color: var(--app-text-muted); }
.empty-state i { display: block; margin: 0 auto 8px; color: #94a3b8; font-size: 1.9rem; }
.empty-state strong { display: block; color: #475569; font-size: .86rem; }
.empty-state p { margin: 4px 0 0; font-size: .73rem; }

/* Lembar detail kapal di header halaman Vessel */
.vessel-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 18px; border: 1px solid var(--app-card-border); border-radius: var(--app-radius); background: linear-gradient(135deg, #fff, #f6fbff); box-shadow: var(--app-shadow); }
.vessel-head-icon { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--app-accent), #2563eb); box-shadow: 0 8px 18px rgba(6, 182, 212, .3); font-size: 1.55rem; }
.vessel-head h2 { margin: 0; color: var(--app-navy); font: 700 1.3rem 'Space Grotesk', 'Inter', sans-serif; }
.vessel-head .vessel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.vessel-head-meta { margin-left: auto; text-align: right; color: var(--app-text-muted); font-size: .72rem; line-height: 1.6; }
.vessel-head-meta strong { color: var(--app-navy); }

/* Pencarian dinamis di halaman Port */
.port-intelligence-card { overflow: hidden; }
.port-intelligence-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.port-data-tabs { display: flex; gap: 3px; padding: 8px 12px 0; background: #294d86; overflow-x: auto; }
.port-data-tab { border: 0; border-radius: 4px 4px 0 0; padding: 8px 14px; background: transparent; color: #fff; font-weight: 700; font-size: .75rem; white-space: nowrap; cursor: pointer; }
.port-data-tab:hover, .port-data-tab.is-active { background: #4389e8; color: #fff; }
.port-data-title { padding: 12px 16px 10px; text-align: center; color: #244b84; font-weight: 700; border-bottom: 1px solid var(--app-card-border); }
.port-data-title span { color: #162f5e; }
.port-data-meta { min-height: 24px; padding: 5px 16px; text-align: right; color: #64748b; font-size: .68rem; }
.port-intelligence-table { min-width: 860px; }
.port-intelligence-table th { white-space: nowrap; color: #334155; font-size: .67rem; text-transform: uppercase; letter-spacing: .03em; }
.port-intelligence-table td { vertical-align: middle; font-size: .75rem; white-space: nowrap; }
@media (max-width: 700px) {
  .port-intelligence-header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .port-data-tabs { padding-left: 6px; padding-right: 6px; }
  .port-data-tab { padding-left: 11px; padding-right: 11px; }
}
.app-search .input-group { border: 1px solid var(--app-card-border); border-radius: var(--app-radius-sm); overflow: hidden; background: #fff; }
.app-search .form-control { border: 0; box-shadow: none; }

/* Badge kecil info kapal */
.id-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; color: var(--app-navy); background: #eef2f7; font: 600 .68rem monospace; }
.badge-cy { color: #0369a1; background: #e0f2fe; }
.badge-mmsi { color: #047857; background: #d1fae5; }
.badge-imo { color: #7c3aed; background: #ede9fe; }

/* Layer overlay peta */
.map-overlay { position: absolute; z-index: 500; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.map-overlay .btn { border-radius: 9px; font-size: .72rem; box-shadow: 0 4px 12px rgba(15,23,42,.16); }
.map-note { position: absolute; z-index: 500; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 9px; color: #fff; background: rgba(11,28,66,.82); font-size: .66rem; }
@media (max-width: 760px) { #map { height: 390px; } }

/* Daftar hasil pencarian global (navbar) */
.global-search-wrap { position: relative; flex: 0 1 360px; min-width: 200px; }
#globalSearchPanel { position: relative; }
#globalSearchPanel .input-group { border: 1px solid rgba(255,255,255,.22); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.1); transition: background .2s, border-color .2s; }
#globalSearchPanel .input-group:focus-within { background: rgba(255,255,255,.18); border-color: rgba(6,182,212,.65); }
#globalSearchPanel .form-control, #globalSearchPanel .input-group-text { background: transparent; border: 0; box-shadow: none; color: #fff; }
#globalSearchPanel .form-control::placeholder { color: rgba(219,234,254,.55); }
#globalSearchPanel .input-group-text i { color: rgba(219,234,254,.6); }
#globalSearchResults { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1080; display: none; max-height: 420px; overflow-y: auto; padding: 7px; border: 1px solid var(--app-card-border); border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(15,23,42,.22); }
#globalSearchResults.gs-visible { display: block; }
#globalSearchResults .gs-section { padding: 7px 10px 4px; color: #94a3b8; font: 700 .6rem 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .09em; }
#globalSearchResults .gs-item { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 9px; color: var(--app-text); text-decoration: none; }
#globalSearchResults .gs-item:hover, #globalSearchResults .gs-item.gs-active { background: #f1f5f9; }
#globalSearchResults .gs-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; color: var(--app-accent); background: #e0f7fa; font-size: .85rem; }
#globalSearchResults .gs-text { min-width: 0; }
#globalSearchResults .gs-text strong, #globalSearchResults .gs-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#globalSearchResults .gs-text strong { color: #1e293b; font-size: .76rem; }
#globalSearchResults .gs-text small { color: #64748b; font-size: .66rem; }
#globalSearchResults .gs-tag { margin-left: auto; flex: 0 0 auto; padding: 2px 7px; border-radius: 99px; background: #eef2f7; color: #64748b; font: 600 .58rem 'Inter', sans-serif; }
#globalSearchResults .gs-item-track { display: flex; align-items: center; padding: 0; overflow: hidden; }
#globalSearchResults .gs-item-track .gs-link { display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 9px; flex: 1 1 auto; min-width: 0; color: var(--app-text); text-decoration: none; }
#globalSearchResults .gs-item-track .gs-link:hover { background: #f1f5f9; }
#globalSearchResults .gs-track { border: 0; background: transparent; color: var(--bs-primary); cursor: pointer; flex: 0 0 auto; padding: 8px 12px; font-size: 1rem; border-radius: 8px; }
#globalSearchResults .gs-track:hover { color: var(--bs-primary-text-emphasis); background: #e0f2fe; }
#globalSearchResults .gs-track:disabled { opacity: .55; cursor: default; }
#globalSearchResults .gs-empty { padding: 22px 12px; text-align: center; color: #94a3b8; font-size: .74rem; }
#globalSearchResults .gs-empty i { display: block; margin: 0 auto 6px; font-size: 1.3rem; }
#globalSearchResults .gs-empty span { display: block; margin-top: 3px; font-size: .64rem; }
@media (max-width: 991.98px) {
  /* Search selalu tampil di baris sendiri di bawah baris logo/tombol menu. */
  #globalSearchPanel { flex: 1 1 100%; width: 100%; min-width: 0; margin-top: 8px; }
  #globalSearchResults { position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: 60vh; }
}

/* Label benturan bentuk tabel ringkas di kalengan lama (aset/opsional) */
.mini-table th { color: #64748b; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.mini-table td { font-size: .76rem; }
