html,
body{
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    overflow:hidden;
    background:#f4f6f9;
    font-family:Segoe UI,Arial,sans-serif;
}

.navbar{
    height:60px;
    z-index:3000;
}

#app{
    display:flex;
    width:100%;
    height:calc(100vh - 60px);
}

#sidebar{
    width:360px;
    min-width:360px;
    max-width:360px;
    background:#ffffff;
    border-right:1px solid #dee2e6;
    padding:20px;
    overflow-y:auto;
    box-shadow:4px 0 20px rgba(0,0,0,.08);
    z-index:1500;
}

#sidebar h4{
    font-weight:700;
    margin-bottom:20px;
}

#sidebar .card{
    border:none;
    border-radius:16px;
    margin-bottom:18px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

#sidebar .card h6{
    font-weight:700;
}

#mapContainer{
    flex:1;
    position:relative;
}

#map{
    width:100%;
    height:100%;
}

#statusBar{

    position:absolute;

    left:15px;

    right:15px;

    bottom:15px;

    background:#ffffff;

    border-radius:14px;

    padding:12px 18px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 6px 20px rgba(0,0,0,.18);

    z-index:1200;

}

#connectionStatus{

    font-weight:bold;

}

#liveInfo{

    font-size:14px;

    color:#666;

}

.form-control{

    border-radius:12px;

}

.btn{

    border-radius:12px;

}

.leaflet-popup-content{

    font-size:14px;

}

.train-popup h5{

    margin-bottom:10px;

}

.status-online{

    color:#198754;

    font-weight:bold;

}

.status-offline{

    color:#dc3545;

    font-weight:bold;

}

.status-warning{

    color:#ffc107;

    font-weight:bold;

}

@media(max-width:900px){

    #sidebar{

        position:absolute;

        left:0;

        top:0;

        bottom:0;

        width:320px;

        min-width:320px;

        z-index:2500;

    }

    #statusBar{

        left:8px;

        right:8px;

        bottom:8px;

        flex-direction:column;

        gap:6px;

    }

}