.timeline-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.timeline-container h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.night-summary {
  background: #2c3e50;
  border: 1px solid #34495e;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 10px;
  gap: 10px;
  color: #ecf0f1;
}

.summary-item {
  padding: 5px 0;
}

.summary-item strong {
  color: #bdc3c7;
  margin-right: 8px;
}

.summary-item .detail {
  color: #95a5a6;
  font-size: 0.9em;
}

.gantt-container {
  background: #2c3e50;
  border: 1px solid #34495e;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  overflow-x: auto;
  color: #ecf0f1;
}

.time-axis {
  position: relative;
  height: 30px;
  border-bottom: 2px solid #bdc3c7;
  margin-bottom: 20px;
}

.time-label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.85em;
  color: #bdc3c7;
  bottom: -20px;
}

.gantt-chart {
  position: relative;
  height: 200px;
  background: #1a252f;
  border: 1px solid #34495e;
  border-radius: 4px;
  overflow: hidden;
}

.grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.grid-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #34495e;
}

.hour-line {
  background: #34495e;
}

.half-hour-line {
  background: #2c3e50;
  opacity: 0.5;
}

.observation-block {
  position: absolute;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  overflow: hidden;
  /* Visual hint for right-click */
  position: relative;
}

.observation-block::after {
  content: '⋮';
  position: absolute;
  top: 2px;
  right: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.observation-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  z-index: 10;
}

.observation-block:hover::after {
  opacity: 1;
}

/* Conflicted observation styles */
.observation-block.conflicted {
  opacity: 0.7;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 102, 102, 0.1) 10px,
    rgba(255, 102, 102, 0.1) 20px
  );
}

.observation-block.conflicted .obs-label {
  text-decoration: line-through;
  -webkit-text-decoration-color: rgba(255, 102, 102, 0.5);
          text-decoration-color: rgba(255, 102, 102, 0.5);
  text-decoration-thickness: 2px;
}

.observation-block.conflicted::before {
  content: '⚠';
  position: absolute;
  top: 2px;
  right: 4px;
  color: #ff6666;
  font-size: 14px;
  z-index: 3;
}

.obs-label {
  padding: 4px 8px;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.obs-name {
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.obs-details {
  font-size: 0.75em;
  opacity: 0.9;
}

/* Time-based observation styles */
.observation-block.time-based {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0) 100%);
  position: relative;
}

.min-time-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.8);
  border-left: 1px dashed rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.min-time-marker::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid rgba(255, 255, 255, 0.8);
}

.min-time-marker::after {
  content: 'MIN';
  position: absolute;
  left: 4px;
  top: 2px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Transit ingress/egress markers */
.transit-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 3;
  pointer-events: none;
}

.ingress-marker {
  background: linear-gradient(to bottom, 
    rgba(100, 255, 100, 0.8) 0%, 
    rgba(100, 255, 100, 0.4) 50%, 
    rgba(100, 255, 100, 0.8) 100%);
  box-shadow: 0 0 4px rgba(100, 255, 100, 0.6);
}

.egress-marker {
  background: linear-gradient(to bottom,
    rgba(255, 100, 100, 0.8) 0%,
    rgba(255, 100, 100, 0.4) 50%,
    rgba(255, 100, 100, 0.8) 100%);
  box-shadow: 0 0 4px rgba(255, 100, 100, 0.6);
}

.transit-marker .marker-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(44, 62, 80, 0.9);
  color: #ecf0f1;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
  pointer-events: auto;
  cursor: help;
}

.ingress-marker .marker-label {
  border: 1px solid rgba(100, 255, 100, 0.5);
}

.egress-marker .marker-label {
  border: 1px solid rgba(255, 100, 100, 0.5);
}

.moon-indicator {
  position: absolute;
  top: 10px;
  font-size: 20px;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 5;
}

.legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85em;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.observation-list {
  background: #2c3e50;
  border: 1px solid #34495e;
  border-radius: 8px;
  padding: 20px;
}

.observation-list h3 {
  margin-bottom: 15px;
  color: #ecf0f1;
}

.observation-list table {
  width: 100%;
  border-collapse: collapse;
}

.observation-list th {
  background: #34495e;
  padding: 10px;
  text-align: left;
  border-bottom: 2px solid #2c3e50;
  font-weight: 600;
  color: #bdc3c7;
}

.observation-list td {
  padding: 10px;
  border-bottom: 1px solid #34495e;
  color: #ecf0f1;
}

.observation-list tr:hover {
  background: #34495e;
}

.timeline-container.error {
  color: #dc3545;
  text-align: center;
  padding: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gantt-container {
    padding: 10px;
  }
  
  .observation-block {
    height: 25px;
  }
  
  .obs-name {
    font-size: 0.75em;
  }
  
  .obs-details {
    display: none;
  }
}
.multi-day-timeline-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  color: #ecf0f1;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.timeline-header h2 {
  margin: 0;
  color: #3498db;
}

.timeline-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.timeline-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.timeline-controls select {
  padding: 5px 10px;
  background: #34495e;
  color: #ecf0f1;
  border: 1px solid #7f8c8d;
  border-radius: 4px;
}

.timeline-controls button {
  padding: 8px 15px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.timeline-controls button:hover {
  background: #2980b9;
}

.observatory-info {
  background: #34495e;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Night Section */
.night-section {
  margin-bottom: 20px;
  border: 1px solid #34495e;
  border-radius: 8px;
  overflow: hidden;
  background: #2c3e50;
}

.night-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 15px 20px;
  border-bottom: 2px solid #3498db;
}

.night-header:hover {
  background: linear-gradient(135deg, #34495e 0%, #3a4f63 100%);
}

.night-header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.expand-icon {
  font-size: 12px;
  color: #3498db;
  width: 15px;
}

.night-header h3 {
  margin: 0;
  flex-shrink: 0;
  color: #ecf0f1;
  font-size: 18px;
}

.night-summary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-left: auto;
}

.summary-item {
  font-size: 13px;
  padding: 4px 10px;
  background: rgba(52, 73, 94, 0.8);
  border-radius: 4px;
  white-space: nowrap;
}

.summary-item.available {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  font-weight: 600;
}

/* Night Content */
.night-content {
  padding: 20px;
}

.night-times {
  background: #34495e;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
}

/* Schedule Table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #2c3e50;
}

.schedule-table thead {
  background: #34495e;
}

.schedule-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #3498db;
  border-bottom: 2px solid #3498db;
}

.schedule-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #34495e;
}

.schedule-table tbody tr {
  transition: background-color 0.2s;
}

.schedule-table tbody tr:hover {
  background: rgba(52, 152, 219, 0.1);
}

/* Row Types */
.row-observation {
  background: rgba(52, 152, 219, 0.05);
}

.row-available {
  background: rgba(46, 204, 113, 0.05);
}

.row-available .available-text {
  color: #95a5a6;
  font-style: italic;
}

/* Type Badges */
.type-cell {
  padding: 8px 12px !important;
}

.type-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.type-badge.observation {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.4);
}

.type-badge.available {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

/* Observation Type Badges */
.obs-type-badge {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-block;
}

.obs-type-badge.obs-type-fixed {
  background: rgba(230, 126, 34, 0.2);
  color: #e67e22;
  border: 1px solid rgba(230, 126, 34, 0.4);
}

.obs-type-badge.obs-type-timebased {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.4);
}

.obs-type-badge.obs-type-risetoset {
  background: rgba(155, 89, 182, 0.2);
  color: #9b59b6;
  border: 1px solid rgba(155, 89, 182, 0.4);
}

.obs-type-badge.obs-type-flexible {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

/* Priority Badges */
.priority-badge {
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.priority-badge.priority-high {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

.priority-badge.priority-medium {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.4);
}

.priority-badge.priority-low {
  background: rgba(149, 165, 166, 0.2);
  color: #95a5a6;
  border: 1px solid rgba(149, 165, 166, 0.4);
}

/* Indicators */
.time-based-indicator,
.transit-indicator {
  margin-left: 6px;
  font-size: 14px;
}

.time-based-indicator {
  color: #f39c12;
}

.transit-indicator {
  color: #9b59b6;
}

/* Error State */
.multi-day-timeline-container.error {
  color: #e74c3c;
  padding: 40px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .night-summary {
    gap: 10px;
  }

  .summary-item {
    font-size: 12px;
    padding: 3px 8px;
  }
}

@media (max-width: 900px) {
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .night-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .night-summary {
    width: 100%;
  }

  .schedule-table {
    font-size: 12px;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 8px;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/*# sourceMappingURL=main.70dc9060.css.map*/