/* MUI Dark Theme Colors */
:root {
  --mui-dark-bg: #121212;
  --mui-dark-surface: #1e1e1e;
  --mui-dark-paper: #2d2d2d;
  --mui-dark-text-primary: #ffffff;
  --mui-dark-text-secondary: #b3b3b3;
  --mui-dark-primary: #90caf9;
  --mui-dark-secondary: #f48fb1;
  --mui-dark-error: #f44336;
  --mui-dark-warning: #ff9800;
  --mui-dark-success: #4caf50;
  --mui-dark-info: #29b6f6;
  
  /* Radar specific colors */
  --radar-bg: #0a1a2a;
  --radar-grid: #1e3a5f;
  --radar-rings: #2d5a8b;
  --boat-arrow: #00ff88;
  --boat-shadow: #00cc6a;
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--mui-dark-bg);
  color: var(--mui-dark-text-primary);
  overflow: hidden;
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background-color: var(--mui-dark-surface);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--mui-dark-paper);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header h1 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--mui-dark-primary);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--mui-dark-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  gap: 0;
  padding: 0;
  overflow: hidden;
  margin-top: 60px; /* Account for fixed header */
}

/* Radar Container */
.radar-container {
  flex: 1;
  position: relative;
  background-color: var(--radar-bg);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

#radarCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--radar-bg);
}

.radar-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--mui-dark-text-secondary);
}

.radar-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Information Panel */
.info-panel {
  width: 300px;
  background-color: var(--mui-dark-surface);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.panel-section {
  background-color: var(--mui-dark-paper);
  border-radius: 6px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-section h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--mui-dark-primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.data-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  border-left: 3px solid var(--mui-dark-primary);
}

.data-item label {
  font-size: 0.875rem;
  color: var(--mui-dark-text-secondary);
  font-weight: 400;
}

.data-item span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--mui-dark-text-primary);
}

.data-item .unit {
  font-size: 0.75rem;
  color: var(--mui-dark-text-secondary);
  margin-left: 0.25rem;
}

/* Mobile/Tablet Optimizations */
@media (max-width: 768px) {
  .header {
    padding: 0.5rem 1rem;
  }
  
  .header h1 {
    font-size: 1.1rem;
  }
  
  .main-content {
    margin-top: 50px;
  }
  
  #radarCanvas {
    width: 100vw;
    height: calc(100vh - 50px);
  }
}

/* Landscape orientation for tablets */
@media (orientation: landscape) and (max-height: 600px) {
  .header {
    padding: 0.25rem 1rem;
  }
  
  .header h1 {
    font-size: 1rem;
  }
  
  .main-content {
    margin-top: 40px;
  }
  
  #radarCanvas {
    height: calc(100vh - 40px);
  }
}
