/* layout-fixes.css */
/* Layout fixes for better responsiveness and visualization */

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: visible; /* Changed from hidden to visible */
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: visible; /* Changed from hidden to visible */
}

.four-column-layout {
  flex: 1;
  overflow: visible; /* Changed from hidden to visible */
}

/* Adjust visualization container for better display */
.visualization-container {
  position: relative;
  padding-bottom: 30px; /* Increased padding at bottom */
  margin-bottom: 20px; /* Added margin at bottom */
  overflow: visible; /* Changed from hidden to visible */
}

.svg-container {
  width: 100%;
  min-height: 300px; /* Minimum height to ensure visibility */
}

/* Fix for display options scrolling */
.panel-content {
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

/* Timeline container spacing */
.timeline-container {
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Legend spacing */
.legend {
  margin-top: 15px;
  padding: 12px 16px;
}

/* Better mobile experience */
@media (max-width: 767px) {
  main {
    padding: 12px;
  }
  
  .controls {
    margin-bottom: 8px;
  }
  
  .controls button, .controls select {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .legend {
    padding: 8px;
    font-size: 12px;
  }
  
  .legend-item {
    margin-right: 8px;
    margin-bottom: 4px;
  }
}

/* Better tablet experience */
@media (min-width: 768px) and (max-width: 1023px) {
  .four-column-layout {
    gap: 12px;
  }
  
  .visualization-container {
    margin-right: 0;
  }
}

/* Improved wide screen layout */
@media (min-width: 1600px) {
  .four-column-layout {
    gap: 24px;
  }
  
  main {
    padding: 24px;
  }
  
  .controls {
    margin-bottom: 16px;
  }
  
  .svg-container {
    padding: 24px;
  }
}

/* Debug box positioning */
#debug-info {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 500px;
  max-height: 300px;
  overflow: auto;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}