/* Reset and base styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 1.6; color: #333; background-color: #f5f5f5; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } /* Header styles */ header { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 20px; } header h1 { color: #2c3e50; margin-bottom: 10px; } .status-bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.9em; color: #666; } /* Main layout */ .main-layout { display: flex; gap: 20px; min-height: 500px; } /* Adjust layout for always-visible details panel */ .content-area { flex: 1; min-width: 300px; } /* Table styles */ .station-table-container { background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); overflow: hidden; } table { width: 100%; border-collapse: collapse; } th { background-color: #34495e; color: white; text-align: left; padding: 12px 15px; font-weight: 600; } td { padding: 12px 15px; border-bottom: 1px solid #ecf0f1; } tr:last-child td { border-bottom: none; } tr:hover { background-color: #f8f9fa; } tr.selected { background-color: #e3f2fd; cursor: pointer; } tr.selected:hover { background-color: #bbdefb; } tr.selected td:first-child { border-left: 4px solid #2196f3; } tr:not(.selected):hover { background-color: #f8f9fa; cursor: pointer; } /* Status colors */ .status-new { background-color: #e74c3c; color: white; padding: 4px 8px; border-radius: 12px; font-size: 0.8em; font-weight: bold; text-align: center; } .status-medium { background-color: #f39c12; color: white; padding: 4px 8px; border-radius: 12px; font-size: 0.8em; font-weight: bold; text-align: center; } .status-established { background-color: #27ae60; color: white; padding: 4px 8px; border-radius: 12px; font-size: 0.8em; font-weight: bold; text-align: center; } /* Details panel */ .details-panel { width: 400px; background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; flex-direction: column; } .details-header { display: flex; justify-content: space-between; align-items: center; background-color: #34495e; color: white; padding: 15px 20px; border-radius: 8px 8px 0 0; } .details-header h2 { margin: 0; font-size: 1.2em; } .close-btn { background: none; border: none; color: white; font-size: 1.5em; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; } .close-btn:hover { background-color: rgba(255, 255, 255, 0.2); } .details-content { padding: 20px; flex: 1; overflow-y: auto; max-height: 500px; } .detail-item { display: flex; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #ecf0f1; align-items: flex-start; } .detail-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; } .detail-label { font-weight: 600; color: #2c3e50; min-width: 150px; padding-right: 15px; text-align: left; flex-shrink: 0; } .detail-value { color: #34495e; flex: 1; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; } /* Tooltip styling */ .tooltip { position: relative; display: inline-block; border-bottom: 1px dotted #95a5a6; cursor: help; } .tooltip .tooltiptext { visibility: hidden; width: 200px; background-color: #34495e; color: #fff; text-align: left; border-radius: 6px; padding: 8px; position: absolute; z-index: 1; bottom: 125%; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity 0.3s; font-size: 0.9em; font-weight: normal; word-wrap: break-word; white-space: normal; } .tooltip .tooltiptext::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #34495e transparent transparent transparent; } .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; } /* Mono font for technical values */ .detail-value.mono { font-family: monospace; font-size: 0.9em; } .detail-value.mono { font-family: monospace; font-size: 0.9em; } /* Loading and error states */ .loading { text-align: center; padding: 40px; color: #7f8c8d; font-style: italic; } .error { background-color: #fadbd8; color: #c0392b; padding: 15px; border-radius: 4px; margin: 20px 0; text-align: center; } .hidden { display: none; } /* Footer */ footer { text-align: center; margin-top: 30px; padding: 20px; color: #7f8c8d; font-size: 0.9em; } /* Responsive design */ @media (max-width: 1024px) { .main-layout { flex-direction: column; } .details-panel { width: 100%; } .container { padding: 10px; } table { font-size: 0.9em; } th, td { padding: 8px 10px; } .status-bar { flex-direction: column; gap: 5px; text-align: center; } } @media (max-width: 768px) { .container { padding: 10px; } table { font-size: 0.9em; } th, td { padding: 8px 10px; } .status-bar { flex-direction: column; gap: 5px; text-align: center; } }