*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background-color:#f5f5f5;color:#333}.dashboard{display:flex;flex-direction:column;height:100vh}.dashboard-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:20px;box-shadow:0 2px 8px #0000001a}.dashboard-header h1{font-size:28px;margin-bottom:5px}.dashboard-header p{font-size:14px;opacity:.9}.error-banner{background-color:#fff3cd;border-left:4px solid #ffc107;padding:12px 16px;margin:0;color:#856404}.dashboard-container{display:flex;flex:1;overflow:hidden}.sidebar{width:320px;background:#fff;overflow-y:auto;border-right:1px solid #e0e0e0;display:flex;flex-direction:column}.main-content{flex:1;min-width:0}.filter-panel{flex:0 0 auto;padding:20px;border-bottom:1px solid #e0e0e0}.filter-panel h2{font-size:18px;margin-bottom:15px;color:#667eea}.filter-section{margin-bottom:20px}.filter-section h3{font-size:14px;font-weight:500;margin-bottom:10px;color:#555;text-transform:uppercase}.mode-filter{display:flex;flex-direction:column;gap:8px}.checkbox-label{display:flex;align-items:center;padding:8px;border-radius:4px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .2s}.checkbox-label:hover{background-color:#f0f0f0}.checkbox-label input{margin-right:8px;cursor:pointer;width:16px;height:16px}.checkbox-label span{font-size:14px}.time-filter{display:flex;flex-direction:column;gap:10px}.time-display{padding:8px;background-color:#f9f9f9;border-radius:4px}.time-display p{font-size:13px;margin:0}.time-display strong{color:#667eea;font-size:16px}.time-slider{width:100%;cursor:pointer}.time-labels{display:flex;justify-content:space-between;font-size:12px;color:#999;margin-top:-5px}.btn-clear-time{padding:6px 12px;background-color:#f0f0f0;border:1px solid #ddd;border-radius:4px;cursor:pointer;font-size:12px;transition:all .2s}.btn-clear-time:hover{background-color:#e0e0e0}.district-search{display:flex;flex-direction:column;gap:10px}.district-input{padding:8px;border:1px solid #ddd;border-radius:4px;font-size:13px}.district-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea1a}.selected-district{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background-color:#e8eaf6;border-radius:4px;font-size:13px;color:#667eea;font-weight:500}.btn-clear{background:none;border:none;color:#667eea;cursor:pointer;font-size:16px;padding:0}.district-list{list-style:none;border:1px solid #e0e0e0;border-radius:4px;max-height:150px;overflow-y:auto}.district-list li{padding:8px 12px;cursor:pointer;border-bottom:1px solid #e0e0e0;font-size:13px;transition:background-color .2s}.district-list li:hover{background-color:#f0f0f0}.district-list li.selected{background-color:#e8eaf6;color:#667eea;font-weight:500}.districts-grid{display:grid;grid-template-columns:1fr;gap:6px}.district-btn{padding:6px 10px;border:1px solid #ddd;background-color:#fff;border-radius:4px;cursor:pointer;font-size:12px;transition:all .2s}.district-btn:hover{border-color:#667eea;color:#667eea}.district-btn.selected{background-color:#667eea;color:#fff;border-color:#667eea}.btn-reset{padding:10px 16px;background-color:#667eea;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:13px;font-weight:500;transition:background-color .2s;width:100%}.btn-reset:hover{background-color:#5568d3}.statistics{flex:1;padding:20px;overflow-y:auto}.statistics h2{font-size:16px;margin-bottom:15px;color:#667eea}.statistics.loading{display:flex;align-items:center;justify-content:center;color:#999}.stat-card{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:20px;border-radius:8px;margin-bottom:15px;text-align:center}.stat-card h3{font-size:32px;margin-bottom:5px}.stat-card p{font-size:13px;opacity:.9}.stat-section{margin-bottom:20px}.stat-section h4{font-size:13px;font-weight:500;margin-bottom:10px;color:#555}.stat-list{list-style:none}.stat-list li{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #e0e0e0;font-size:13px}.stat-list li:last-child{border-bottom:none}.stat-list .count{font-weight:600;color:#667eea}.leaflet-container{background-color:#ddd}.loading{display:flex;align-items:center;justify-content:center;height:100%;color:#999;font-size:14px}.popup-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;align-items:flex-end;z-index:1000}.popup-content{background:#fff;width:100%;max-width:500px;max-height:80vh;overflow-y:auto;border-radius:12px 12px 0 0;padding:20px;position:relative}.popup-content .close-btn{position:absolute;top:10px;right:10px;background:none;border:none;font-size:28px;color:#999;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center}.popup-content .close-btn:hover{color:#333}.popup-content h2{font-size:22px;margin-bottom:15px;color:#333}.popup-content h3{font-size:16px;margin:20px 0 10px;color:#555}.route-info,.stop-info{background-color:#f9f9f9;padding:12px;border-radius:4px;margin-bottom:15px;font-size:13px}.route-info p,.stop-info p{margin-bottom:8px}.color-box{display:inline-block;width:20px;height:20px;border-radius:2px;margin-left:8px;border:1px solid #ddd}.stops-list,.routes-list{list-style:none;max-height:300px;overflow-y:auto}.stops-list li,.routes-list li{padding:10px;border-bottom:1px solid #e0e0e0;font-size:13px;display:flex;justify-content:space-between;align-items:center}.stops-list li:last-child,.routes-list li:last-child{border-bottom:none}.stop-name{font-weight:500;flex:1}.stop-id{font-size:12px;color:#999;margin-left:8px}.mode-badge{display:inline-block;background-color:#667eea;color:#fff;padding:2px 8px;border-radius:3px;font-size:11px;font-weight:500;margin-right:8px}.route-name{flex:1}@media(max-width:768px){.dashboard-container{flex-direction:column}.sidebar{width:100%;border-right:none;border-bottom:1px solid #e0e0e0;max-height:40vh}.main-content{min-height:60vh}.popup-content{width:100%;border-radius:12px}.districts-grid{grid-template-columns:2fr 2fr}}
