.role-selector{display:flex;justify-content:center;align-items:center;min-height:60vh}.role-selector-content{width:100%;max-width:900px}.role-selector-content h2{font-size:2.5rem;text-align:center;color:#2d3748;margin-bottom:.5rem}.subtitle{text-align:center;color:#718096;font-size:1.1rem;margin-bottom:3rem}.role-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;margin-bottom:3rem}.role-card{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 4px 6px #00000012;transition:all .3s ease;cursor:pointer;border:3px solid transparent}.role-card:hover{transform:translateY(-8px);box-shadow:0 12px 24px #00000026}.driver-card:hover{border-color:#667eea}.user-card:hover{border-color:#48bb78}.role-icon{font-size:4rem;text-align:center;margin-bottom:1rem}.role-card h3{font-size:1.8rem;color:#2d3748;margin-bottom:.5rem;text-align:center}.role-card>p{text-align:center;color:#718096;margin-bottom:1.5rem;font-size:1rem}.role-card ul{list-style:none;padding:0;margin:1.5rem 0}.role-card ul li{color:#4a5568;position:relative;padding:.5rem 0 .5rem 1.5rem}.role-card ul li:before{content:"✓";position:absolute;left:0;color:#48bb78;font-weight:700}.role-button{width:100%;padding:1rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;color:#fff}.driver-button{background:linear-gradient(135deg,#667eea,#764ba2)}.driver-button:hover{transform:scale(1.02);box-shadow:0 6px 12px #667eea66}.user-button{background:linear-gradient(135deg,#48bb78,#38a169)}.user-button:hover{transform:scale(1.02);box-shadow:0 6px 12px #48bb7866}.info-box{background:#edf2f7;border-radius:12px;padding:1.5rem;border-left:4px solid #667eea}.info-box h4{color:#2d3748;margin-bottom:.5rem;font-size:1.1rem}.info-box p{color:#4a5568;line-height:1.6;margin:0}@media (max-width: 768px){.role-selector-content h2{font-size:2rem}.role-cards{grid-template-columns:1fr;gap:1.5rem}}.map-view{position:relative;width:100%;height:100%;min-height:500px;border-radius:8px;overflow:hidden;background:#e2e8f0}.leaflet-container{width:100%;height:100%;border-radius:8px}.car-marker{font-size:2rem;display:flex;align-items:center;justify-content:center;width:40px;height:40px;animation:carPulse 2s ease-in-out infinite;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3))}@keyframes carPulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.custom-marker{background:none!important;border:none!important}.marker-popup{font-family:inherit}.marker-popup h4{margin:0 0 .5rem;font-size:1rem;color:#2d3748}.marker-popup p{margin:.25rem 0;font-size:.85rem;color:#4a5568}.marker-popup strong{color:#2d3748;font-weight:600}.map-legend{position:absolute;bottom:20px;left:20px;background:#fff;padding:1rem;border-radius:8px;box-shadow:0 2px 8px #00000026;z-index:1000;display:flex;flex-direction:column;gap:.75rem}.legend-item{display:flex;align-items:center;gap:.75rem}.legend-icon{font-size:1.5rem;width:30px;text-align:center}.legend-line{width:30px;height:4px;background:linear-gradient(to right,#51ff06 50%,transparent 50%);background-size:10px 4px;border-radius:2px}.legend-text{font-size:.85rem;color:#4a5568;font-weight:500}@media (max-width: 768px){.map-view{min-height:400px}.map-legend{bottom:10px;left:10px;padding:.75rem;font-size:.8rem}.car-marker{font-size:1.5rem;width:30px;height:30px}}.driver-panel{width:100%}.panel-header{display:flex;align-items:center;gap:1rem;margin-bottom:2rem}.back-button{padding:.5rem 1rem;background:#e2e8f0;border:none;border-radius:8px;font-size:.9rem;cursor:pointer;transition:all .2s;color:#2d3748;font-weight:500}.back-button:hover{background:#cbd5e0;transform:translate(-2px)}.panel-header h2{font-size:2rem;color:#2d3748;margin:0}.panel-grid{display:grid;grid-template-columns:400px 1fr;gap:2rem}.controls-section{display:flex;flex-direction:column;gap:1.5rem}.map-section{min-height:600px}.card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 4px #0000001a}.card h3{font-size:1.3rem;color:#2d3748;margin:0 0 1.5rem;padding-bottom:.75rem;border-bottom:2px solid #e2e8f0}.form-group{margin-bottom:1.5rem}.form-group label{display:block;font-weight:600;color:#4a5568;margin-bottom:.5rem;font-size:.9rem}.input{width:100%;padding:.75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:1rem;transition:all .2s}.input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.input:disabled{background:#f7fafc;cursor:not-allowed}.checkbox-label{display:flex;align-items:center;gap:.75rem;cursor:pointer;padding:.75rem;background:#f7fafc;border-radius:8px;transition:all .2s}.checkbox-label:hover{background:#edf2f7}.checkbox-label input[type=checkbox]{width:20px;height:20px;cursor:pointer}.checkbox-label input[type=checkbox]:disabled{cursor:not-allowed}.checkbox-label span{font-weight:500;color:#2d3748}.hint{display:block;color:#718096;font-size:.85rem;margin-top:.5rem}.track-button{width:100%;padding:1rem;border:none;border-radius:8px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .2s;color:#fff}.track-button.start{background:linear-gradient(135deg,#48bb78,#38a169)}.track-button.start:hover:not(:disabled){transform:scale(1.02);box-shadow:0 6px 12px #48bb784d}.track-button.stop{background:linear-gradient(135deg,#f56565,#e53e3e)}.track-button.stop:hover:not(:disabled){transform:scale(1.02);box-shadow:0 6px 12px #f565654d}.track-button:disabled{opacity:.5;cursor:not-allowed}.stats-card .stat-item{display:flex;justify-content:space-between;padding:.75rem 0;border-bottom:1px solid #e2e8f0}.stats-card .stat-item:last-child{border-bottom:none}.stat-label{font-weight:500;color:#718096;font-size:.9rem}.stat-value{font-weight:600;color:#2d3748;font-size:.9rem;font-family:monospace}.stat-value.active{color:#48bb78}.map-card{height:100%;display:flex;flex-direction:column}.map-card>div:last-child{flex:1;min-height:500px}@media (max-width: 768px){.panel-header h2{font-size:1.5rem}.panel-grid{gap:1rem}.card{padding:1rem}}.user-panel{width:100%}.input-group{display:flex;gap:.5rem}.input-group .input{flex:1}.subscribe-button{padding:.75rem 1.5rem;background:linear-gradient(135deg,#48bb78,#38a169);color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s;white-space:nowrap}.subscribe-button:hover:not(:disabled){transform:scale(1.02);box-shadow:0 4px 8px #48bb784d}.subscribe-button:disabled{opacity:.5;cursor:not-allowed}.status-box{background:#f7fafc;border-radius:8px;padding:1rem;margin-top:1rem}.status-item{display:flex;align-items:center;gap:.75rem}.status-icon{font-size:1.2rem}.status-text{font-weight:600;color:#2d3748}.info-card{background:linear-gradient(135deg,#e6fffa,#e0f2fe);border:2px solid #4299e1}.info-card h4{color:#2d3748;margin:0 0 1rem;font-size:1.1rem}.info-card ol{margin:0;padding-left:1.5rem;color:#4a5568}.info-card ol li{margin-bottom:.5rem;line-height:1.5}.info-card ol li:last-child{margin-bottom:0}.info-card strong{color:#2d3748;font-weight:600}.map-container{position:relative;width:100%;height:100%;min-height:500px}.map-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:#fffffff2;display:flex;align-items:center;justify-content:center;z-index:1000;pointer-events:none}.overlay-message{text-align:center;color:#718096}.no-location-icon{font-size:4rem;margin-bottom:1rem;animation:pulse 2s ease-in-out infinite}.overlay-message h4{font-size:1.3rem;color:#4a5568;margin:0 0 .5rem}.overlay-message p{font-size:1rem;margin:0}.overlay-message strong{color:#667eea;font-weight:700}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.1)}}@media (max-width: 1200px){.panel-grid{grid-template-columns:1fr}.map-section{min-height:500px}}@media (max-width: 768px){.input-group{flex-direction:column}.subscribe-button{width:100%}}.connection-status{display:flex;align-items:center;gap:.5rem;background:#ffffff26;padding:.5rem 1rem;border-radius:20px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:.9rem;font-weight:500}.status-icon{font-size:1rem}.status-text{color:#3a3939}.socket-id{background:#fff3;padding:.2rem .6rem;border-radius:10px;font-size:.75rem;font-family:monospace;color:#fff;cursor:help}.status-connecting .status-icon{animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.app{min-height:100vh;display:flex;flex-direction:column}.app-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1.5rem 2rem;box-shadow:0 4px 6px #0000001a}.header-content{max-width:1400px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.app-header h1{font-size:1.8rem;font-weight:700;margin:0}.app-main{flex:1;padding:2rem;max-width:1400px;width:100%;margin:0 auto}.app-footer{background:#2d3748;color:#a0aec0;text-align:center;padding:1rem;font-size:.9rem}.app-footer p{margin:0}@media (max-width: 768px){.app-header h1{font-size:1.4rem}.app-main{padding:1rem}}*{margin:0;padding:0;box-sizing:border-box}body{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;background:#f5f7fa}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.leaflet-container{width:100%;height:100%}
