/* =========================================================
   ISU RESPONDS - MAIN CSS
   ========================================================= */

/* =========================================================
   GLOBAL RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    overflow: hidden;

    font-family: Arial, Helvetica, sans-serif;

    background: #191919;
    color: #ffffff;
}

body {
    position: relative;
}


/* =========================================================
   TOP HEADER
   ========================================================= */

.top-bar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: 80px;

    display: flex;
    flex-direction: row;

    margin: 0;
    padding: 0;

    background: #191919;

    z-index: 2000;

    border-bottom: 1px solid #242424;
}


/* =========================================================
   ISU RESPONDS LOGO AREA
   ========================================================= */

.project-title-section {
    position: relative;

    width: 125px;
    min-width: 125px;
    max-width: 125px;

    height: 80px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    background: #191919;

    border-right: 2px solid #4a9eff;

    flex-shrink: 0;
}


/* LOGO */

.responds-logo {
    display: block;

    width: 48px;
    height: 48px;

    margin: 0;
    padding: 0;

    object-fit: contain;

    flex-shrink: 0;
}


/* =========================================================
   ISU / RESPONDS TITLE
   ========================================================= */

.responds-title {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;

    margin: 2px 0 0 0;
    padding: 0;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 15px;
    font-weight: 700;

    line-height: 1;

    text-align: center;

    white-space: normal;
}


/* EACH WORD */

.responds-title span {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    line-height: 1.05;
}


/* =========================================================
   LOCATION SELECTORS
   ========================================================= */

.location-selectors {
    flex: 1 1 auto;

    height: 80px;

    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    margin: 0;
    padding: 0 18px;

    box-sizing: border-box;

    overflow: visible;
}


/* EACH LOCATION GROUP */

.location-group {
    width: 145px;
    min-width: 145px;
    max-width: 180px;

    flex: 0 1 160px;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/* LABEL */

.location-label {
    display: block;

    margin: 0 0 4px 0;
    padding: 0;

    color: #4a9eff;

    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    text-transform: uppercase;
}


/* DROPDOWN */

.location-dropdown {
    display: block;

    width: 100%;
    height: 36px;

    margin: 0;
    padding: 0 10px;

    background-color: #303030;

    color: #ffffff;

    border: 1px solid #444444;
    border-radius: 4px;

    outline: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;

    cursor: pointer;
}


/* DROPDOWN HOVER */

.location-dropdown:hover {
    border-color: #4a9eff;
}


/* DROPDOWN FOCUS */

.location-dropdown:focus {
    border-color: #4a9eff;

    box-shadow: 0 0 0 1px rgba(74, 158, 255, 0.25);
}


/* DISABLED DROPDOWNS */

.location-dropdown:disabled {
    opacity: 0.55;

    cursor: not-allowed;

    background-color: #252525;
}


/* =========================================================
   LEFT SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;

    top: 80px;
    left: 0;
    bottom: 0;

    width: 245px;

    margin: 0;
    padding: 0 10px;

    background: #191919;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 1500;

    border-right: 1px solid #242424;
}


/* SIDEBAR SCROLLBAR */

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: #191919;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 5px;
}


/* =========================================================
   SIDEBAR SECTIONS
   ========================================================= */

.sidebar-section {
    width: 100%;

    margin: 0;
    padding: 0;
}


/* =========================================================
   SIDEBAR HEADINGS
   ========================================================= */

.sidebar-heading {
    display: block;

    width: 100%;

    margin: 0;
    padding: 15px 0 8px 0;

    color: #4a9eff;

    border-bottom: 2px solid #4a9eff;

    font-size: 16px;
    font-weight: 600;

    line-height: 1;

    text-align: left;
}


/* FLOOD EXTENT HEADING */

.flood-heading {
    margin-top: 22px;

    color: #ffae00;

    border-bottom-color: #4a9eff;
}


/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.sidebar-nav {
    width: 100%;

    margin: 8px 0 0 0;
    padding: 0;
}


/* NAV ITEM */

.nav-item {
    display: flex;

    align-items: center;

    width: 100%;
    min-height: 45px;

    margin: 0;
    padding: 8px 12px;

    color: #ffffff;

    background: transparent;

    border: none;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.2;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}


/* NAV ICON */

.nav-item i {
    width: 22px;

    margin-right: 8px;

    color: #ffffff;

    font-size: 15px;

    text-align: center;
}


/* NAV HOVER */

.nav-item:hover {
    color: #4a9eff;

    background: #242424;

    text-decoration: none;
}

.nav-item:hover i {
    color: #4a9eff;
}


/* =========================================================
   FLOOD EXTENT CONTENT
   ========================================================= */

.flood-extent-content {
    width: 100%;

    margin: 0;
    padding: 0;
}


/* FLOOD EXTENT LINK */

.flood-extent-content > .nav-item {
    margin-top: 8px;
}


/* =========================================================
   FLOOD DROPDOWN
   ========================================================= */

.flood-dropdown {
    display: block;

    width: 100%;
    height: 38px;

    margin: 8px 0 0 0;
    padding: 0 10px;

    background: #303030;

    color: #ffffff;

    border: 1px solid #444444;
    border-radius: 4px;

    outline: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;

    cursor: pointer;
}

.flood-dropdown:hover {
    border-color: #4a9eff;
}

.flood-dropdown:focus {
    border-color: #4a9eff;
}


/* =========================================================
   FLOOD BUTTONS
   ========================================================= */

.flood-buttons {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 12px;
}


/* BUTTON */

.flood-btn {
    display: block;

    width: 100%;
    height: 38px;

    margin: 0;
    padding: 0 10px;

    border: none;
    border-radius: 3px;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}


/* INFOGRAPHICS */

.infographics-btn {
    background: #ffffff;

    color: #222222;
}

.infographics-btn:hover {
    background: #eeeeee;
}


/* IMPACT REPORT */

.impact-btn {
    background: #444444;

    color: #ffffff;
}

.impact-btn:hover {
    background: #555555;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {
    position: fixed;

    top: 80px;
    left: 245px;
    right: 0;
    bottom: 0;

    width: auto;
    height: auto;

    margin: 0;
    padding: 0;

    background: #ffffff;

    overflow: hidden;

    z-index: 1;
}


/* =========================================================
   MAP
   ========================================================= */

#map {
    position: relative;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #ffffff;
}


/* =========================================================
   OPENLAYERS CONTROLS
   ========================================================= */

.ol-control {
    padding: 2px !important;

    background-color: rgba(255, 255, 255, 0.4) !important;
}


.ol-control > * {
    background-color: #f8f8f8 !important;

    color: #444444 !important;

    border-radius: 2px !important;
}


.ol-control > *:hover,
.ol-control > *:focus {
    background-color: rgba(248, 248, 248, 0.85) !important;
}


/* ZOOM CONTROL */

.ol-zoom {
    top: 10px !important;
    left: 10px !important;
}


/* ATTRIBUTION */

.ol-attribution {
    bottom: 5px !important;
    right: 5px !important;
}


/* =========================================================
   MAP POPUP
   ========================================================= */

.ol-popup {
    position: absolute;

    background-color: #ffffff;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);

    padding: 15px;

    border-radius: 4px;

    border: 1px solid #cccccc;

    min-width: 200px;

    color: #222222;
}


.ol-popup:after,
.ol-popup:before {
    position: absolute;

    top: 100%;

    border: solid transparent;

    content: " ";

    height: 0;
    width: 0;

    pointer-events: none;
}


.ol-popup:after {
    border-top-color: #ffffff;

    border-width: 10px;

    left: 48px;

    margin-left: -10px;
}


.ol-popup:before {
    border-top-color: #cccccc;

    border-width: 11px;

    left: 48px;

    margin-left: -11px;
}


/* POPUP CLOSE */

.ol-popup-closer {
    position: absolute;

    top: 5px;
    right: 5px;

    width: 20px;
    height: 20px;

    text-decoration: none;

    color: #555555;
}

.ol-popup-closer:after {
    content: "✕";

    font-size: 14px;
}


/* =========================================================
   FLOATING CHATBOT BUTTON
   ========================================================= */

.fab {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border: none;

    border-radius: 50%;

    background: #ff8c00;

    color: #ffffff;

    font-size: 20px;

    cursor: pointer;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

    z-index: 3000;

    transition:
        transform 0.15s ease,
        background-color 0.15s ease;
}


.fab:hover {
    background: #ff9d1a;

    transform: scale(1.05);
}


.fab:active {
    transform: scale(0.97);
}


/* =========================================================
   RESPONSIVE - DESKTOP
   ========================================================= */

@media (min-width: 1201px) {

    .sidebar {
        width: 245px;
    }

    .main-content {
        left: 245px;
    }

    .location-selectors {
        padding-right: 18px;
    }

}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .location-selectors {
        gap: 8px;

        padding-left: 10px;
        padding-right: 10px;
    }

    .location-group {
        width: 135px;
        min-width: 135px;
    }

    .location-label {
        font-size: 10px;
    }

    .location-dropdown {
        font-size: 12px;
    }

}


/* =========================================================
   SMALL SCREEN
   ========================================================= */

@media (max-width: 900px) {

    .project-title-section {
        width: 125px;
        min-width: 125px;
    }

    .location-selectors {
        gap: 5px;

        padding-left: 5px;
        padding-right: 5px;
    }

    .location-group {
        min-width: 110px;
        max-width: 150px;
    }

    .location-dropdown {
        padding-left: 6px;
        padding-right: 6px;

        font-size: 11px;
    }

    .sidebar {
        width: 220px;
    }

    .main-content {
        left: 220px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .top-bar {
        height: 70px;
    }

    .project-title-section {
        width: 110px;
        min-width: 110px;

        height: 70px;
    }

    .responds-logo {
        width: 40px;
        height: 40px;
    }

    .responds-title {
        font-size: 13px;
    }

    .location-selectors {
        height: 70px;

        gap: 4px;

        padding: 0 5px;
    }

    .location-group {
        min-width: 0;

        flex: 1 1 0;
    }

    .location-label {
        font-size: 8px;
    }

    .location-dropdown {
        height: 30px;

        padding: 0 4px;

        font-size: 9px;
    }

    .sidebar {
        top: 70px;

        width: 200px;
    }

    .main-content {
        top: 70px;
        left: 200px;
    }

    .sidebar-heading {
        font-size: 14px;
    }

    .nav-item {
        min-height: 40px;

        font-size: 12px;
    }

    .flood-btn {
        height: 35px;

        font-size: 12px;
    }

    .fab {
        width: 48px;
        height: 48px;

        right: 15px;
        bottom: 15px;

        font-size: 17px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .project-title-section {
        width: 100px;
        min-width: 100px;
    }

    .responds-logo {
        width: 36px;
        height: 36px;
    }

    .responds-title {
        font-size: 11px;
    }

    .location-label {
        display: none;
    }

    .location-dropdown {
        height: 32px;

        font-size: 8px;
    }

    .sidebar {
        width: 180px;
    }

    .main-content {
        left: 180px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

button:focus,
select:focus,
a:focus {
    outline: 1px solid #4a9eff;
    outline-offset: 1px;
}

/* ==========================================
   HIDE QGIS / OPENLAYERS LAYER SWITCHER
   ========================================== */

.layer-switcher,
.layer-switcher-panel,
.ol-layerswitcher,
.ol-layerswitcher-panel {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}