:root {
    --theme-color: rgb(11, 86, 138);
    --bar-color: 41, 169, 216;
    --text-color: white;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Roboto, sans-serif;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

#top-panel {
    display: flex;
}

#main-container {
    display: flex;
    flex-direction: row;
    height: 100%;
}

#left-panel {
    width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
    transition: width 0.3s ease;
}

#right-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#message-panel {
    position: relative;
    width: 100%;
    height: 40px;
    line-height: 50px;
    display: block;
    overflow: hidden;
}

#map-container {
    flex-grow: 1;
    margin: 10px;
}

#plowops-map {
    /* position: absolute; */
    /* set dynamically in JS
      top: 108px;
      height: calc(100vh - 108px);
    */
    width: 100%;
    height: 100%;
    border-radius: 24px;
}

.plowops-logo {
    position: fixed;
    right: 15px;
    bottom: 10px;
}

.maplibregl-ctrl-attrib-inner {
    display: none;
}

.hidden {
    display: none !important;
}


/* Hide the checkbox */
#panel-toggle {
    display: none;
}

.toggle-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    padding: 0;
    margin: 5px 0 -5px 5px;
}

.toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.toggle-btn:active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Mobile: hide panel by default */
@media (max-width: 768px) {
    /* Show panel when checkbox is checked */
    #panel-toggle:checked ~ #main-container #left-panel {
        width: 250px;
    }

    /* Change button text when panel is open */
    #panel-toggle:checked ~ .toggle-btn::before {
        /*content: '✕ Close';*/
    }

    .toggle-btn::before {
        /*content: '☰ Menu';*/
    }
}

/* Desktop: always show panel, hide toggle button */
@media (min-width: 769px) {
    #left-panel {
        width: 350px;
    }

    .toggle-btn {
        display: none;
    }
}
