@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&display=swap');

:root {
  /* Taneet Brand System (matching app) */
  --color-primary: #28ada4;
  --color-primary-dark: #1e8f87;
  --color-primary-light: #e6f7f6;
  --color-secondary: #7b0b76;
  --color-secondary-dark: #63085f;
  --color-secondary-light: #fdf2fc;

  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --border-light: #e2e8f0;
  --border-hover: rgba(40, 173, 164, 0.45);

  --shadow-teal-glow: 0 10px 25px -5px rgba(40, 173, 164, 0.25);
  --shadow-purple-glow: 0 10px 25px -5px rgba(123, 11, 118, 0.20);
}

html, body, *, button, input, select, textarea {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.015em;
}

code, pre, .font-mono {
  font-family: 'Montserrat', monospace;
}

/* Custom modern scrollbar for clean white look */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #28ada4;
}

/* Ambient Subtle Lighting */
.bg-taneet-overlay {
  background: 
    radial-gradient(circle at 50% -10%, rgba(40, 173, 164, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 95% 80%, rgba(123, 11, 118, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 5% 45%, rgba(40, 173, 164, 0.04) 0%, transparent 40%);
}

.bg-dot-pattern {
  background-size: 24px 24px;
  background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
}

/* Brand Buttons */
.btn-primary-teal {
  background-color: var(--color-primary);
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary-teal:hover {
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-teal-glow);
  transform: translateY(-1px);
}

.btn-secondary-purple {
  background-color: var(--color-secondary);
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-secondary-purple:hover {
  background-color: var(--color-secondary-dark);
  box-shadow: var(--shadow-purple-glow);
  transform: translateY(-1px);
}

/* Clean White Card Shadows & Transitions */
.card-clean {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-clean:hover {
  border-color: rgba(40, 173, 164, 0.45);
  box-shadow: 0 12px 30px -10px rgba(40, 173, 164, 0.15), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Text Gradients */
.text-gradient-taneet {
  background: linear-gradient(135deg, #28ada4 0%, #1e8f87 50%, #7b0b76 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #7b0b76 0%, #a21caf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Radar pulse animation for active vessel status */
@keyframes radar-pulse-teal {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 173, 164, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(40, 173, 164, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(40, 173, 164, 0);
  }
}

.status-ping-teal {
  animation: radar-pulse-teal 2s infinite;
}

/* Range slider styled with Taneet Teal */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #28ada4;
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 2px 10px rgba(40, 173, 164, 0.4);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

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

input[type=range]:focus {
  outline: none;
}

/* Animated Multi-Layered Ocean Wave Divider */
.wave-animation-wrapper {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: 56px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 10;
}

@media (min-width: 640px) {
  .wave-animation-wrapper {
    height: 76px;
  }
}

@media (min-width: 1024px) {
  .wave-animation-wrapper {
    height: 98px;
  }
}

.waves-animated-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.wave-parallax > use {
  animation: move-gentle-wave 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.wave-parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 8s;
}

.wave-parallax > use:nth-child(2) {
  animation-delay: -3.5s;
  animation-duration: 12s;
}

.wave-parallax > use:nth-child(3) {
  animation-delay: -5s;
  animation-duration: 16s;
}

.wave-parallax > use:nth-child(4) {
  animation-delay: -6s;
  animation-duration: 22s;
}

@keyframes move-gentle-wave {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* ==========================================================================
   Marine Radar Heading Indicator (Taneet Favicon Rotating Container)
   ========================================================================== */
.radar-heading-container {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #f0fdfc 0%, #ffffff 75%);
  border: 2px solid rgba(40, 173, 164, 0.45);
  box-shadow: 
    0 6px 20px -3px rgba(40, 173, 164, 0.22),
    inset 0 0 15px rgba(40, 173, 164, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

/* Concentric Radar Range Ring */
.radar-range-ring {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(40, 173, 164, 0.3);
  pointer-events: none;
}

/* Radar Crosshairs */
.radar-crosshair-h {
  position: absolute;
  top: 50%;
  left: 6px;
  right: 6px;
  height: 1px;
  background: rgba(40, 173, 164, 0.2);
  transform: translateY(-50%);
  pointer-events: none;
}

.radar-crosshair-v {
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(40, 173, 164, 0.2);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Lubber Line / Ship's Head Marker (Top 000° Heading Index) */
.radar-lubber-line {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #7b0b76;
  z-index: 5;
  filter: drop-shadow(0 1px 2px rgba(123, 11, 118, 0.35));
}

/* Outer Compass Degree Ticks (0°, 90°, 180°, 270°) */
.radar-tick {
  position: absolute;
  width: 2px;
  height: 4px;
  background: rgba(40, 173, 164, 0.6);
  top: 2px;
  left: calc(50% - 1px);
  transform-origin: 1px 50px;
  pointer-events: none;
}
.radar-tick-90 { transform: rotate(90deg); }
.radar-tick-180 { transform: rotate(180deg); }
.radar-tick-270 { transform: rotate(270deg); }

/* Rotating Heading Favicon Disc */
.radar-rotating-disc {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 4px;
  background: #ffffff;
  border: 1.5px solid rgba(40, 173, 164, 0.45);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  animation: radar-heading-rotate 12s linear infinite;
  transition: transform 0.3s ease;
}

/* Heading indicator pointer on the rotating disc */
.radar-rotating-disc::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 5px;
  background: #28ada4;
  border-radius: 1px;
}

.radar-favicon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

/* Radar Expanding Ambient Pulse Ring */
.radar-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(40, 173, 164, 0.45);
  animation: radar-pulse 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes radar-heading-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-rotating-disc,
  .radar-pulse-ring {
    animation: none;
  }
}

