/* ==========================================================================
   NUSANTARA KARGO EXPRESS (MY-LOGISTICS)
   LUMINOUS FROSTED GLASSMORPHISM & COOL MODERN DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-base: #eef2f7;
  --bg-gradient-1: #f5f8fc;
  --bg-gradient-2: #e4ebf5;
  --bg-gradient-3: #dce6f4;
  --bg-gradient-4: #edf2f9;

  --glass-surface: rgba(255, 255, 255, 0.64);
  --glass-surface-strong: rgba(255, 255, 255, 0.82);
  --glass-surface-subtle: rgba(255, 255, 255, 0.48);
  --glass-border: rgba(255, 255, 255, 0.88);
  --glass-border-subtle: rgba(148, 163, 184, 0.25);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --accent-steel: #1e293b;
  --accent-cool: #3b6998;

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  color: var(--text-primary);
  background-color: #ebf0f7;
  background-image:
    radial-gradient(at 12% 10%, rgba(255, 255, 255, 0.95) 0px, transparent 45%),
    radial-gradient(at 85% 15%, rgba(186, 208, 235, 0.55) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(226, 235, 248, 0.7) 0px, transparent 55%),
    radial-gradient(at 15% 85%, rgba(198, 214, 236, 0.5) 0px, transparent 50%),
    radial-gradient(at 88% 82%, rgba(255, 255, 255, 0.85) 0px, transparent 45%),
    linear-gradient(135deg, #f6f8fc 0%, #e5ecf6 45%, #dbe5f3 100%);
  background-attachment: fixed;
}

/* Subtle Architectural Grid Overlay for Depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(100, 116, 139, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(100, 116, 139, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
}

#app-root {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   DYNAMIC CARGO IN MOTION ANIMATIONS (AIRPLANE, TRAILER, VESSEL, RADAR)
   ========================================================================== */

@keyframes pulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.75;
  }
  70% {
    transform: scale(2.6);
    opacity: 0;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes airplaneFly {
  0% {
    transform: translate(-160px, 55px) rotate(-10deg) scale(0.88);
    opacity: 0;
  }
  10% {
    opacity: 0.92;
  }
  50% {
    transform: translate(46vw, -24px) rotate(-6deg) scale(1.02);
  }
  90% {
    opacity: 0.92;
  }
  100% {
    transform: translate(106vw, -95px) rotate(-4deg) scale(0.9);
    opacity: 0;
  }
}

@keyframes highwayLines {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -240px 0;
  }
}

@keyframes speedLinesMove {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  30% {
    opacity: 0.55;
  }
  70% {
    opacity: 0.55;
  }
  100% {
    transform: translateX(-120%);
    opacity: 0;
  }
}

@keyframes truckBounce {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes wheelSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes trailerDriveAcross {
  0% {
    transform: translateX(-420px);
  }
  100% {
    transform: translateX(calc(100vw + 420px));
  }
}

@keyframes shipFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(0.6deg);
  }
}

@keyframes routeDash {
  to {
    stroke-dashoffset: -36;
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ==========================================================================
   MODERN LUMINOUS FROSTED GLASSMORPHISM CONTAINERS
   ========================================================================== */

.glass-panel {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.76) 0%,
    rgba(255, 255, 255, 0.46) 100%
  );
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 24px 60px -15px rgba(15, 23, 42, 0.08),
    0 4px 16px -2px rgba(15, 23, 42, 0.04),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
}

.glass-panel-subtle {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.68) 0%,
    rgba(255, 255, 255, 0.38) 100%
  );
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 10px 30px -8px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

.glass-panel-interactive {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.74) 0%,
    rgba(255, 255, 255, 0.42) 100%
  );
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 18px 45px -12px rgba(15, 23, 42, 0.07),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-interactive:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.58) 100%
  );
  border-color: #ffffff;
  transform: translateY(-4px);
  box-shadow:
    0 28px 60px -12px rgba(15, 23, 42, 0.12),
    0 8px 24px -4px rgba(51, 65, 85, 0.06),
    inset 0 1px 2px 0 #ffffff;
}

.glass-card-inner {
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 4px 14px -2px rgba(15, 23, 42, 0.035),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

.glass-viewport {
  background: linear-gradient(
    145deg,
    rgba(226, 234, 245, 0.72) 0%,
    rgba(241, 245, 251, 0.52) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.04);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 0 #ffffff;
}

.glass-input {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: #334155;
  box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.1);
  outline: none;
}

.glass-btn-primary {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 10px 25px -5px rgba(15, 23, 42, 0.25),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-btn-primary:hover {
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  transform: translateY(-1.5px);
  box-shadow:
    0 14px 30px -5px rgba(15, 23, 42, 0.32),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
}

.glass-btn-secondary {
  background: rgba(255, 255, 255, 0.68);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow:
    0 4px 14px -2px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 0 #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.1);
}

.platinum-gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background-color: #1e293b;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 1.5px solid rgba(30, 41, 59, 0.55);
  animation: pulseRing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ==========================================================================
   SKY AIR-FREIGHT & EXPRESSWAY MOTION LAYERS (LIGHT GLASS THEME)
   ========================================================================== */

.sky-airspace {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.airplane-glider {
  position: absolute;
  top: 11%;
  left: 0;
  animation: airplaneFly 22s linear infinite;
  filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.1));
}

.airplane-glider-2 {
  position: absolute;
  top: 29%;
  left: 0;
  animation: airplaneFly 29s linear infinite 9s;
  opacity: 0.48;
  transform: scale(0.65);
}

/* Highway Loaded Trailer Layer */
.highway-corridor {
  position: relative;
  width: 100%;
  height: 114px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(226, 234, 245, 0.65) 50%,
    rgba(215, 226, 240, 0.8) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.highway-lane-markings {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  height: 2px;
  background-image: linear-gradient(90deg, rgba(51, 65, 85, 0.35) 50%, transparent 50%);
  background-size: 72px 100%;
  animation: highwayLines 1.2s linear infinite;
}

.speed-streak {
  position: absolute;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(71, 85, 105, 0.35), transparent);
  animation: speedLinesMove 2.5s linear infinite;
}

.trailer-convoy-main {
  position: absolute;
  bottom: 20px;
  left: 0;
  animation: trailerDriveAcross 17s linear infinite;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.08));
}

.trailer-convoy-secondary {
  position: absolute;
  bottom: 24px;
  left: 0;
  animation: trailerDriveAcross 24s linear infinite 8s;
  opacity: 0.65;
}

.truck-chassis-bounce {
  animation: truckBounce 0.5s ease-in-out infinite;
}

.wheel-rotate {
  transform-origin: center;
  animation: wheelSpin 0.65s linear infinite;
}

/* Radar Map Paths */
.animated-flight-arc {
  stroke-dasharray: 5 5;
  animation: routeDash 1.4s linear infinite;
}

/* Range Input Styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(148, 163, 184, 0.35);
  height: 6px;
  border-radius: 999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f172a;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Scrollbar Polish */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #e2e8f0;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
