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

html, body { 
  height: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #e8e8e8; 
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.topbar { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 16px 24px; 
  background: #000000;
  border-bottom: 1px solid #ffffff;
}

.title { 
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.actions { 
  display: flex; 
  gap: 12px; 
}

button { 
  background: #000000;
  color: #ffffff; 
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px; 
  border-radius: 0; /* Sharp corners */
  cursor: pointer; 
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover { 
  background: #ffffff;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:active { 
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.main { 
  display: grid; 
  grid-template-columns: 380px 1fr;
  height: calc(100vh - 73px);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1); /* Grid line color */
}

.left { 
  background: #000000;
  padding: 24px; 
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 24px;
}

.left::-webkit-scrollbar {
  width: 2px;
}

.left::-webkit-scrollbar-track {
  background: transparent;
}

.left::-webkit-scrollbar-thumb {
  background: #ffffff;
}

.right { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 24px;
  background: #000000;
}

.section { 
  background: #000000;
  border: 1px solid #ffffff;
  border-radius: 0; /* Sharp corners */
  padding: 20px;
  display: grid;
  gap: 16px;
}

.section-title { 
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  padding-bottom: 8px;
  border-bottom: 1px solid #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

label { 
  display: block; 
  margin-bottom: 12px; 
  font-weight: 500;
  color: #d1d5db;
  font-size: 13px;
}

input { 
  width: 100%; 
  background: #000000;
  color: #ffffff; 
  border: 1px solid #ffffff;
  padding: 12px 16px; 
  border-radius: 0; /* Sharp corners */
  font-size: 14px;
  transition: all 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.row { 
  display: flex; 
  gap: 12px; 
  margin-top: 16px;
}

ul { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

ul::-webkit-scrollbar {
  width: 4px;
}

ul::-webkit-scrollbar-track {
  background: transparent;
}

ul::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

li { 
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
  padding: 12px 0; 
  font-size: 13px;
  color: #9ca3af;
  transition: color 0.2s ease;
}

li:hover {
  color: #ffffff;
}

#canvas { 
  background: #000000; 
  border: 1px solid #ffffff;
  border-radius: 0; /* Sharp corners */
  image-rendering: pixelated;
}

.blink { 
  animation: blink 1s step-start infinite; 
}

@keyframes blink { 
  50% { opacity: 0.4; } 
}

/* Button variants */
.btn-primary {
  background: #000000;
  border: 2px solid #ffffff;
}

.btn-primary:hover {
  background: #ffffff;
  color: #000000;
}

.btn-secondary {
  background: #000000;
  border: 1px solid #ffffff;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #000000;
}

.btn-danger {
  background: #000000;
  border: 1px solid #ffffff;
}

.btn-danger:hover {
  background: #ffffff;
  color: #000000;
}

.btn-outline {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.btn-outline:hover {
  background: #ffffff;
  color: #000000;
}

.btn-clear {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-clear:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
}

.btn-icon {
  margin-right: 6px;
  font-size: 12px;
}

/* Form groups */
.form-group {
  margin-bottom: 16px;
}

/* Alert and log containers */
.alert-container, .log-container {
  position: relative;
  min-height: 120px;
}

.empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6b7280;
  font-style: italic;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

.empty-state.hidden {
  display: none;
}

/* Alert count badge */
.alert-count {
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
}

.alert-count.zero {
  background: #374151;
  color: #9ca3af;
}

/* Canvas container */
.canvas-container {
  position: relative;
  display: inline-block;
}

.canvas-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000000;
  padding: 8px 12px;
  border-radius: 0; /* Sharp corners */
  border: 1px solid #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
  transition: background-color 0.3s ease;
}

.status-dot.running {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-dot.stopped {
  background: #6b7280;
}

.status-text {
  color: #ffffff;
}

/* Section title with actions */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Status indicators */
.status-normal { color: #10b981; }
.status-warning { color: #f59e0b; }
.status-critical { color: #ef4444; }
.status-deviated { color: #06b6d4; }

/* Enhanced list items */
li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

li:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 24px;
}

li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b7280;
}

li.alert::before {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

li.warning::before {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

li.info::before {
  background: #06b6d4;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

li.success::before {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Log entry styling */
.log-time {
  font-size: 11px;
  color: #6b7280;
  font-family: 'Courier New', monospace;
  margin-bottom: 2px;
}

.log-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.log-message {
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.4;
}

/* Alert styling */
.alert-aircraft {
  font-weight: 600;
  color: #ef4444;
  font-size: 13px;
  margin-bottom: 4px;
}

.alert-message {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.3;
}

/* Responsive design */
@media (max-width: 1200px) {
  .left {
    width: 320px;
  }
  
  #canvas {
    width: 480px;
    height: 480px;
  }
}

@media (max-width: 768px) {
  .main {
    flex-direction: column;
  }
  
  .left {
    width: 100%;
    height: auto;
    max-height: 40vh;
  }
  
  .right {
    padding: 16px;
  }
  
  #canvas {
    width: 100%;
    max-width: 400px;
    height: 400px;
  }
}


