/* Static Background */
.static-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0c1445 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 75%, #000000 100%);
  overflow: hidden;
}

/* Stars */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.8), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 3s linear infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Logo and Navigation Styles */
.logo {
  height: 75px;
  width: auto;
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
  transition: all 0.3s ease;
}

.logo:hover {
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
  transform: scale(1.05);
}

.nav-link {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ff88, #0096ff, #8000ff);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link:hover {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Cloud Animations */
@keyframes cloud-drift {
  0% {
    transform: translateX(-100vw);
  }
  100% {
    transform: translateX(100vw);
  }
}

@keyframes cloud-drift-reverse {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100vw);
  }
}

.clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: radial-gradient(ellipse 100px 60px at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 40%, transparent 70%);
  border-radius: 50px;
  opacity: 0.3;
}

.cloud:before {
  content: '';
  position: absolute;
  background: radial-gradient(ellipse 80px 40px at center, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 50%, transparent 80%);
  border-radius: 40px;
  width: 160px;
  height: 80px;
  top: -20px;
  left: 20px;
}

.cloud:after {
  content: '';
  position: absolute;
  background: radial-gradient(ellipse 60px 30px at center, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 60%, transparent 90%);
  border-radius: 30px;
  width: 120px;
  height: 60px;
  top: -10px;
  right: 15px;
}

.cloud-1 {
  width: 200px;
  height: 120px;
  top: 15%;
  animation: cloud-drift 45s linear infinite;
  animation-delay: 0s;
}

.cloud-2 {
  width: 150px;
  height: 90px;
  top: 25%;
  animation: cloud-drift-reverse 60s linear infinite;
  animation-delay: -15s;
}

.cloud-3 {
  width: 180px;
  height: 100px;
  top: 35%;
  animation: cloud-drift 50s linear infinite;
  animation-delay: -30s;
}

.cloud-4 {
  width: 120px;
  height: 70px;
  top: 45%;
  animation: cloud-drift-reverse 65s linear infinite;
  animation-delay: -45s;
}

.cloud-5 {
  width: 160px;
  height: 95px;
  top: 55%;
  animation: cloud-drift 55s linear infinite;
  animation-delay: -20s;
}

.cloud-6 {
  width: 140px;
  height: 85px;
  top: 65%;
  animation: cloud-drift-reverse 70s linear infinite;
  animation-delay: -35s;
}

/* Airplane Animations */
@keyframes airplane-fly {
  0% {
    transform: translateX(-100px) translateY(0px) rotate(90deg);
  }
  25% {
    transform: translateX(25vw) translateY(-10px) rotate(90deg);
  }
  50% {
    transform: translateX(50vw) translateY(5px) rotate(90deg);
  }
  75% {
    transform: translateX(75vw) translateY(-5px) rotate(90deg);
  }
  100% {
    transform: translateX(calc(100vw + 100px)) translateY(0px) rotate(90deg);
  }
}

@keyframes airplane-fly-reverse {
  0% {
    transform: translateX(calc(100vw + 100px)) translateY(0px) rotate(270deg);
  }
  25% {
    transform: translateX(75vw) translateY(8px) rotate(270deg);
  }
  50% {
    transform: translateX(50vw) translateY(-3px) rotate(270deg);
  }
  75% {
    transform: translateX(25vw) translateY(6px) rotate(270deg);
  }
  100% {
    transform: translateX(-100px) translateY(0px) rotate(270deg);
  }
}

.airplanes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.airplane {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.4;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.airplane svg {
  width: 100%;
  height: 100%;
  fill: rgba(255, 255, 255, 0.7);
}

.airplane-1 {
  top: 20%;
  animation: airplane-fly 80s linear infinite;
  animation-delay: 0s;
}

.airplane-2 {
  top: 40%;
  animation: airplane-fly-reverse 100s linear infinite;
  animation-delay: -30s;
}

.airplane-3 {
  top: 60%;
  animation: airplane-fly 90s linear infinite;
  animation-delay: -60s;
}

/* Navigation Lights */
.nav-light {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  pointer-events: none;
}

/* Position lights (steady) */
.nav-light-red {
  background-color: #ff0000;
  box-shadow: 0 0 8px #ff0000, 0 0 15px rgba(255, 0, 0, 0.6);
}

.nav-light-green {
  background-color: #00ff00;
  box-shadow: 0 0 8px #00ff00, 0 0 15px rgba(0, 255, 0, 0.6);
}

/* Beacon light (flashing red in center) */
.nav-light-beacon {
  background-color: #ff0000;
  width: 4px;
  height: 4px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Strobe lights (flashing white on wingtips) */
.nav-light-strobe {
  background-color: #ffffff;
  width: 5px;
  height: 5px;
}

/* Position light positions for left-to-right planes */
.airplane-ltr .nav-light-red {
  top: 60%;
  right: 1px;
}

.airplane-ltr .nav-light-green {
  bottom: 30%;
  left: 1px;
}

.airplane-ltr .nav-light-strobe-right {
  top: 60%;
  right: 1px;
}

.airplane-ltr .nav-light-strobe-left {
  bottom: 30%;
  left: 1px;
}

/* Position light positions for right-to-left planes */
.airplane-rtl .nav-light-red {
  top: 60%;
  right: 1px;
}

.airplane-rtl .nav-light-green {
  bottom: 31%;
  left: 1px;
}

.airplane-rtl .nav-light-strobe-right {
  top: 60%;
  right: 1px;
}

.airplane-rtl .nav-light-strobe-left {
  bottom: 31%;
  left: 1px;
}

/* Beacon flash animation (3 second cycle) */
@keyframes beacon-flash {
  0%, 90% { 
    opacity: 0;
    box-shadow: none;
  }
  91%, 95% { 
    opacity: 1;
    box-shadow: 0 0 12px #ff0000, 0 0 25px rgba(255, 0, 0, 0.8);
  }
  96%, 100% { 
    opacity: 0;
    box-shadow: none;
  }
}

/* Strobe flash animation (starts just after beacon) */
@keyframes strobe-flash {
  0%, 94% { 
    opacity: 0;
    box-shadow: none;
  }
  95%, 98% { 
    opacity: 1;
    box-shadow: 0 0 10px #ffffff, 0 0 20px rgba(255, 255, 255, 0.9);
  }
  99%, 100% { 
    opacity: 0;
    box-shadow: none;
  }
}

/* Apply animations with staggered delays */
.airplane-1 .nav-light-beacon {
  animation: beacon-flash 3s infinite;
  animation-delay: 0s;
}

.airplane-1 .nav-light-strobe {
  animation: strobe-flash 3s infinite;
  animation-delay: 0s;
}

.airplane-2 .nav-light-beacon {
  animation: beacon-flash 3s infinite;
  animation-delay: 1s;
}

.airplane-2 .nav-light-strobe {
  animation: strobe-flash 3s infinite;
  animation-delay: 1s;
}

.airplane-3 .nav-light-beacon {
  animation: beacon-flash 3s infinite;
  animation-delay: 2s;
}

.airplane-3 .nav-light-strobe {
  animation: strobe-flash 3s infinite;
  animation-delay: 2s;
}

/* Login page background without aurora */
.login-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0c1445 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 75%, #000000 100%);
  overflow: hidden;
}

/* Content area styling */
.content-area {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Compact Dashboard Optimizations */
@media (max-width: 768px) {
  /* Ensure grid columns stack properly on mobile */
  .grid.grid-cols-1.lg\:grid-cols-2.xl\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  
  /* Reduce padding on mobile for more content */
  .content-area {
    padding: 0.5rem !important;
  }
  
  /* Hide queue overview on very small screens */
  .xl\:col-span-1 {
    display: none;
  }
}

@media (max-width: 1024px) {
  /* Ensure two-column layout on tablets */
  .grid.grid-cols-1.lg\:grid-cols-2.xl\:grid-cols-3 {
    grid-template-columns: 1fr 1fr !important;
  }
  
  /* Hide third column on medium screens */
  .xl\:col-span-1 {
    display: none;
  }
}

/* Ensure good visibility for streaming monitor setup */
@media (min-width: 1280px) {
  /* Optimize for streaming monitor - typically 1280x720 or similar */
  body {
    font-size: 14px;
  }
  
  /* Ensure all content fits in viewport height */
  main {
    /* Removed max-height and overflow-y to prevent double scrollbars */
  }
  
  /* Constrain message queue height for streaming */
  .max-h-80 {
    max-height: 16rem !important;
  }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .content-area {
    backdrop-filter: blur(8px);
  }
}

/* Coming Soon Ribbon */
.coming-soon-ribbon {
  position: absolute;
  top: 20px;
  left: -40px;
  width: 180px;
  padding: 8px 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(-45deg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.coming-soon-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  pointer-events: none;
}

/* Disabled Section */
.section-disabled {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
  filter: grayscale(0.3);
}

.section-disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  pointer-events: none;
}