/* StarShip Bridge Theme - LCARS-inspired */
.starship-bridge-theme {
  position: relative;
  min-height: 100vh;
}

.starship-bridge-theme::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.starship-bridge-theme .lcars-panel {
  background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.starship-bridge-theme .lcars-accent {
  background: #ff8c00;
  height: 4px;
  width: 100%;
  margin: 10px 0;
}

.starship-bridge-theme .console-glow {
  box-shadow: 
    0 0 20px rgba(255, 140, 0, 0.5),
    inset 0 0 20px rgba(255, 140, 0, 0.1);
}

/* Emergency Control Room Theme */
.emergency-control-theme {
  position: relative;
  overflow: hidden;
}

/* Alert strobe light effect */
@keyframes emergency-strobe {
  0%, 10% { opacity: 0; }
  11%, 20% { opacity: 1; }
  21%, 100% { opacity: 0; }
}

@keyframes emergency-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.emergency-control-theme::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(220, 38, 38, 0.2) 100%);
  animation: emergency-strobe 3s infinite;
  pointer-events: none;
  z-index: 999;
}

.emergency-control-theme .alert-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #dc2626 0%, #991b1b 100%);
  border-radius: 50%;
  animation: emergency-pulse 1s infinite;
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.8);
  z-index: 1000;
}

.emergency-control-theme .amber-warning {
  border-left: 5px solid #f59e0b;
  border-right: 5px solid #f59e0b;
  animation: amber-flash 2s infinite;
}

@keyframes amber-flash {
  0%, 50%, 100% { border-color: #f59e0b; }
  25%, 75% { border-color: #d97706; }
}

.emergency-control-theme .emergency-button {
  position: relative;
  overflow: hidden;
}

.emergency-control-theme .emergency-button::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #dc2626, #f59e0b, #dc2626);
  animation: emergency-border 2s linear infinite;
  z-index: -1;
}

@keyframes emergency-border {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mission Control Theme */
.mission-control-theme {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

.mission-control-theme .control-panel {
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.mission-control-theme .control-panel:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.mission-control-theme .status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.mission-control-theme .focus-indicator {
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.mission-control-theme .focus-indicator:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Shared utility classes */
.scenario-theme {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* LCARS-style corners for StarShip theme */
.lcars-corner-tl {
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
}

.lcars-corner-br {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

/* Emergency klaxon sound visual indicator */
.klaxon-visual {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: #dc2626;
  border-radius: 50%;
  opacity: 0;
  animation: klaxon-pulse 1.5s infinite;
}

@keyframes klaxon-pulse {
  0%, 100% { 
    opacity: 0;
    transform: scale(0.8);
  }
  50% { 
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .emergency-control-theme .alert-indicator {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
  
  .starship-bridge-theme .lcars-panel {
    clip-path: none;
    border-radius: 0.5rem;
  }
}