/* Menu bar */
.panel-btn {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color-translucent);
}
#menu-bar .panel-btn:hover, #menu-bar .btn.panel-btn:active {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

/* Status bar */
#status-bar .panel-btn {
    cursor: default;
}
#status-bar .panel-btn:hover, #status-bar .btn.panel-btn:active {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* Toggleable areas within the sidebar */
.btn-toggle {
    padding: .25rem .5rem;
    font-weight: 600;
    color: var(--bs-emphasis-color);
    background-color: transparent;
}
.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}
[data-bs-theme="dark"] .btn-toggle::before {
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
}
.btn-toggle[aria-expanded="true"] {
    color: rgba(var(--bs-emphasis-color-rgb), .85);
}
.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

/* Map */
#map {
    font-family: sans-serif;
    font-size: 16px;
    background-color: var(--bs-body-bg);
}

/* Marker and popup styles */
/*noinspection CssUnusedSymbol*/
.leaflet-tooltip, .leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/*noinspection CssUnusedSymbol*/
.leaflet-tooltip {
    border: 1px solid var(--bs-body-bg);
}

/*noinspection CssUnusedSymbol*/
.leaflet-tooltip-top::before {
    border-top-color: var(--bs-body-bg);
}

i.markerPopupIcon {
    display: inline-block;
    vertical-align: top;
    margin-top: 0.1em;
    width: 1.2em;
}

span.popupRefName {
    display: inline-block;
    white-space: normal;
    margin-right: 1em;
}

span.youAreHereNote {
    font-size: 0.7em;
    font-style: italic;
}

/* Bands panel inner styles */
div.bandColHeader {
    text-align: center;
    font-weight: bold;
    padding: 0.5em;
}

div.bandColMiddle {
    margin-left: 3px;
    border-left: 2px dotted var(--bs-body-color);
}

p#bandPanelNoSpots {
    margin: 1em;
    white-space: normal;
}

div.bandColSpot {
    display: block;
    border-radius: 3px;
    padding: 3px;
}

span.bandColSpot {
    vertical-align: bottom;
    display: inline !important;
}

/*noinspection CssUnusedSymbol*/
div.bandColSpotCurrent {
    background: var(--band-col-spot);
}

/*noinspection CssUnusedSymbol*/
div.bandColSpotOld {
    background: var(--band-col-spot-old);
}

/*noinspection CssUnusedSymbol*/
div.bandColSpotSelected {
    background: var(--band-col-spot-selected);
}

/* Don't wrap frequencies */
span.bandColSpotFreq {
    white-space: nowrap;
    display: inline !important;
}

/* Smaller text for the fourth decimal place of MHz */
span.hundredhz {
    font-size: 0.8em;
    line-height: 0.8em;
}

span.bandColSpotMode {
    padding-left: 0.5em;
    font-size: 0.8em;
    line-height: 0.4em;
}

.leaflet-div-icon {
    background-color: transparent;
    border: none;
}
.gridSquareLabel {
    position: relative;
    top: -50%;
    left: -100%;
    text-align: center;
    color: #888888;
}

/* Text/link styles */
a, .leaflet-container a {
    color: var(--bs-link-color);
    text-decoration: none;
}

/* Leaflet.js mods */
/*noinspection CssUnusedSymbol*/
.leaflet-container .leaflet-control-attribution {
    background: none;
    color: var(--bs-body-color);
}
