﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #222b35;
    color: white;
    font-size: 13px;
    font-family: Helvetica, sans-serif;
}


h1 {
    border-bottom: 2px solid #5b9bd5; /* Blue line under the text */
    padding-bottom: 10px; /* Space between text and line */
    /*text-decoration: underline;
    text-decoration-color: #5b9bd5;*/ /* Change to your desired color */
    /*text-decoration-thickness: 1px;
    text*/
    display: inline-block;
    margin-bottom: 20px;
}

div.titleLine {
    /*background: #5b9bd5;*/
    width: 305px;
    height: 2px;
    margin-bottom: 10px;
}

div.titleContainer {
    height: 100px;
    background: #222b35;
    z-index: 2;
    left: 0;
    top: 0;
    right: 0;
}

div.titleContainer.reportTitle {
    height: 150px;
    padding-top: 50px;
    padding-left: 50px;
    background: #222b35;
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    right: 0;
}

h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 20px;
}

table, table.table {
    color: white;
    width: auto;
    position: relative;
}

    table.table tr {
        border: none;
    }

    table.table th {
        background-color: #333f4f;
        color: white;
        padding: 15px;
        border: 1px solid #333f4f;
        border-bottom: 0;
    }

    table.table td {
        padding: 15px;
        border: 1px solid #333f4f;
    }

/* Reusable sticky header for scrollable tables */
.sticky-header th {
    position: sticky;
    top: -51px;
    z-index: 1;
}


    table.sortable tr th {
        cursor: pointer;
    }

        table.sortable tr th:hover {
            background-color: #5b9bd5;
        }


        table.sortable tr:hover td {
            background-color: #445263;
        }


th[aria-sort] {
    cursor: pointer;
}

th[aria-sort="ascending"]::after {
    content: '▲';
    position: absolute;
    right: 2px;
    bottom: 0;
    transform: scaleY(0.7);
    font-size: 0.8em;
    color: #222b35;
}

th[aria-sort="descending"]::after {
    content: '▼';
    position: absolute;
    right: 2px;
    bottom: 0;
    transform: scaleY(0.7);
    font-size: 0.8em;
    color: #222b35;
}


button {
    padding: 10px 10px;
    margin-bottom: 20px;
    color: white;
    font-weight: bold;
}

button i {
    margin-right: 5px;
}

/* Base styling for the input */
input[type="date"] {
    background-color: #333f4f !important;
}

.blueButton {
    background-color: #2b8dd8 !important;
    border-radius: 0;
    border: none;
    cursor: pointer;
}

    .blueButton:hover {
        background-color: #007fd3 !important;
    }

.redButton {
    background-color: #dc3545 !important;
    border-radius: 0;
    border: none;
    cursor: pointer;
    color: white;
}

    .redButton:hover {
        background-color: #bb2d3b !important;
    }

.greenButton {
    background-color: #20930f !important;
    border-radius: 0;
    border: none;
    cursor: pointer;
    color: white;
}

    .greenButton:hover {
        background-color: #1b7e0c !important;
    }


/*    button:not(#mapTrak button):not(.dz-button), button.btn-primary {
        background-color: #2b8dd8 !important;
        border-radius: 0;
        border: none;
    }*/

datalist {
    /*display: block;*/
    z-index: 1000;
    visibility: visible;
}

    datalist option {
        /*display: block;*/
        visibility: visible;
        /*color: black;*/ /* Ensures text is visible */
    }

.btn-primary:hover {
    text-decoration: none !important;
}

a.btn:hover {
    text-decoration: none !important;
    color: white !important;
}

button:hover, button.btn-primary:hover {
    background-color: #008ae6 !important;
} .form-floating {
    background-color: #191b20;
} .input {
    background-color: #191b20;
    color: white;
} select {
    background-color: #333f4f !important;
    color: white;
    border: none;
    padding: 7px;
    font-weight: bold;
} a > i {
    margin-right: 10px;
} form div {
    height: 50px;
} form label {
    width: 100px;
} form .mb-3 label {
    width: 300px;
} form input {
    background-color: #191b20 !important;
    color: white !important; /* Set the text color */
    border: none !important; /* Remove borders */
    outline: none !important; /* Remove focus outline */
    box-shadow: none !important; /* Remove any applied box shadows */
    padding: 10px;
    width: 300px
}
form select {
    width: 300px;
    height: 39px;
    padding-right: 2rem; /* Adjust this value as needed */
    padding-left: 10px;
    appearance: none; /* Removes default styles in some browsers */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 10l5 5 5-5H7z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center; /* Adjusts arrow position */
    background-size: 18px; /* Makes the arrow bigger */
}.form-control {
    border-radius: 0;
    border: none;
    background-color: #191b20 !important;
    color: white;
} .form-control:focus {
    border-radius: 0;
    border: none;
    background-color: #191b20 !important;
    color: white;
} .text-danger {
    /*padding: 10px;*/
    position: relative;
    top: -5px;
} .text-danger span {
        font-size: 13px;
        padding-left:12px
    } a {
    text-decoration: none;
    color: white;
} a:hover {
        text-decoration: underline;
        color: white;
    } .login {
    width: 400px;
    position: relative;
    left: -200px;
    margin-top: -100px;
} .fs-container {
    display: flex; /* Enables Flexbox */
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    height: 100vh; /* Takes full height of the viewport */
    width: 100vw; /* Takes full width of the viewport */
} .projectBadge {
    width: 560px !important;
    height: 60px;
    margin-bottom: 10px;
    background: #333f4f;
    color: white;
    position: relative;
    padding: 12px;
    cursor: pointer;
} .projectBadge:hover {
        background: #191b20;
    } .projectBadge.selected {
    background: #5b9bd5;
} .projectBadge i {
        position: absolute;
        top: 18px;
        left: 15px;
        font-size: 20px;
        color: #5b9bd5
    } .projectBadge.selected i {
        color: white;
    } .projectBadge p {
        margin: 0;
        margin-top: 0px;
        line-height: 1.4em;
        margin-left: 35px;
    } .projectBadge p.projectName {
        font-weight: bold;
        font-size: 15px
    }
        .projectBadge p.projectAddress {
            margin-top: 2px;
            font-size: 11px
        }
        .projectBadge p.projectedSavings {
            position: absolute;
            right: 15px;
            top: 12px;
            font-weight: bold;
        }
        .projectBadge p.potentialSavings {
            position: absolute;
            right: 15px;
            top: 33px;
            color: #8895ac;
            font-weight: bold;
        }

.projectsSummary {
    margin-top: 20px;
    height: 110px;
    width: 575px;
}
.summaryBadge:hover {
    background: #191b20;
}

.projectBadge.selected p.potentialSavings {
    color: #222b35;
}

.summaryBadge {
    float: left;
    clear: right;
    width: 180px;
    height: 100px;
    background-color: #333f4f;
    margin-right: 10px;
    padding: 10px;
}
    .summaryBadge span {
        width: 100%;
        display: block;
        text-align: center;
    }

    iframe#reportFrame {
        display: block;
        border: none;
        position: absolute;
        left: 50px;
        right: -15px;
        bottom: -42px;
        top: 152px;
        width: calc(100% - 50px);
        height: calc(100% - 127px);
    }

.summaryValue {
    color: white;
    font-size: 25px;
    margin-top: 10px;
    font-weight: bold;
}
.summaryLabel {
    color: #8995aa;
    font-size: 15px;
    margin-top: 0px;
    font-weight: bold;
}


/* Map Trak */
#mapInfo {
    position: absolute;
    left: 0;
    bottom: 0px;
    top: 0px;
    width: 340px;
    height: 100%;
    padding: 40px;
} #mapTrak {
    position: absolute;
    left: 340px;
    right: 0px;
    bottom: 0px;
    top: 0px;
} .totalDeficit {
    margin-top: 0px;
    font-size: 60px;
    font-weight: bold;
    letter-spacing: 2px;
    display: block;
    align-content: center;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #5b9bd5;
} .totalLabel {
    text-align: center;
    width: 100%;
    display: block;
    margin-top: 10px;
    font-size: 16px;
} h4 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 40px;
} #mapInfo input {
    margin-top: 10px;
    position: relative;
    top: 1px;
    margin-left: 1px;
    margin-right: 2px;
    background-color: #191b20;
} input[type="checkbox"]:checked {
    background-color: #191b20;
} .countyStat {
    position: relative;
    margin-bottom: 10px;
}
    .countyStat .countyLabel {
        width: 220px; /* Adjust the width as needed */
        white-space: nowrap; /* Prevents text from wrapping to the next line */
        overflow: hidden; /* Hides text that overflows the container's width */
        text-overflow: ellipsis; /* Adds an ellipsis (...) at the end of the truncated text */
        display: inline-block; /* Ensures the width is respected */
    }
    .countyStat .valueBar {
        background-color: #5b9bd5;
        height: 5px;
        position: relative;
        top: -1px;
    } .countyStat .valueLabel {
    position: absolute;
    right: 0px;
    opacity: 0.5;
}
#regionDeficitContainer {
    position: absolute;
    top: 360px;
    bottom: 20px;
    right: 40px;
    left: 40px;
    overflow: auto; /* Enables scrolling */
    scrollbar-width: none; /* For Firefox */
}
    #regionDeficitContainer::-webkit-scrollbar {
        display: none;
    }
.mapTrakLogo {
    position: absolute;
    right: 20px;
    top: 20px;
    height: 50px;
    z-index: 1;
    width: 140px;
}
    .mapTrakLogo:hover {
        filter: brightness(100%); /* Increase brightness on hover */
        opacity: 0.8;
    }



#loadingDiv .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -90px;
    margin-top: -50px;
    color: white; /* Adjust text color as needed */
    font-size: 20px; /* Adjust font size as needed */
    opacity: 1;
}

#fallbackDiv .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -230px;
    margin-top: -50px;
    color: white;
    font-size: 20px;
    opacity: 1;
    text-align: center;
    width: 400px;
}

#fallbackDiv button {
    font-size: 16px;
    padding: 10px 15px;
}

.fas.fa-spinner {
    margin-bottom: 10px; /* Space between icon and text */
    font-size: 30px; /* Adjust spinner size as needed */
    position: relative;
    top: 3px;
    margin-right: 5px;
}

.progressBar {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -120px;
    width: 0px;
    height: 5px;
    background-color: #5b9bd5;
    transition: width 9s linear; /* Transition that animates the width */
}




.dropzone {
    background-color: #222b35; /* Light gray background */
    border: 4px dashed #536981; /* Blue dashed border */
    border-radius: 10px; /* Rounded corners */
    padding: 20px;
    transition: all 0.5s ease; /* Smooth transition for hover effects */
}

    .dropzone:hover {
        background-color: #3a4a5b; /* Slightly darker gray on hover */
        border-color: #5b9bd5; /* Darker blue border on hover */
    }


    .dropzone .dz-message .dz-button {
        position: relative;
        top: 13px;
    }

.filepond--credits {
    display: none !important;
}
.filepond {
    max-width: 500px;
}
.filepond--drop-label {
    background: #333f4f;
    color: white;
    border: 3px dashed #536981;
    border-radius: 5px;
}
    .filepond--drop-label:hover {
        border: 3px dashed #5b9bd5;
    }

.ExcelContainer {
    position: absolute;
    left: 50px;
    right: -30px;
    bottom: -60px;
    top: 102px;
    overflow: hidden;
}

.dashboard-marker {
    position: absolute;
    width: 26px;
    height: 38px;
    background-image: url('../img/mapmarkers2-normal.png');
    background-size: contain;
    cursor: pointer;
    margin-left: -13.5px;
    margin-top: -35px;
}

    .dashboard-marker:hover {
        background-image: url('../img/mapmarkers2-hover.png');
        z-index: 1;
    }

    .dashboard-marker.selected {
        background-image: url('../img/mapmarkers2-selected.png');
        z-index: 2;
    }

.mapMarkers {
/*    height: 100%;
    background-color: red;
    width: 1.38542vh;*/
}


.mapMarkers {
    position: fixed;
    top: 0;
    right: 0;
    /*background-color: rgba(255, 0, 0, 0.5);*/
}

.projectsSummary, .projectBadge {
    z-index: 3;
    position: relative;
}

.statusBall {
    margin-right: 2px;
    position: absolute;
    font-size: 21px;
    margin-top: -8px;
}
.statusLabel {
    margin-left: 18px;
}

.custom-context-menu {
    position: fixed;
    display: none;
    background-color: #252b35;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    min-width: 150px;
    padding: 5px;
}

.menu-item {
    padding: 5px;
    cursor: pointer;
}

.menu-item i {
    margin-right: 6px;
}

    .menu-item:hover {
        background-color: #2b8dd8;
    }

.custom-trigger {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

/* Reusable scrollbar styling */
.scrollbar {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #333f4f #222b35; /* thumb and track */
}

.scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.scrollbar::-webkit-scrollbar-track {
    background: #222b35;
}

.scrollbar::-webkit-scrollbar-thumb {
    background-color: #333f4f;
    border-radius: 4px;
}

  .scrollbar::-webkit-scrollbar-thumb:hover {
      background-color: #4b5d75;
  }

/* Elegant scrollbar styling for project selector dropdown */
#projectSelector::-webkit-scrollbar {
    width: 8px;
}

#projectSelector::-webkit-scrollbar-track {
    background: #333f4f;
    border-radius: 4px;
}

#projectSelector::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

#projectSelector::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* layout helper for actions and search */
.top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .75rem;
    margin-bottom: 25px;
}
/* Reusable search bar styling */
.text-filter-container {
    position: relative;
    display: inline-block;
}

/* unified search bar appearance */
.text-filter-container input {
    width: 250px;
    padding: .65rem .5rem .65rem 2.6rem;
    border: none;
    border-radius: 0;
    font-size: 14px;
    outline: none;
    background-color: #333f4f;
    color: white;
    transition: box-shadow 0.3s ease;
}

.text-filter-container input:focus {
    box-shadow: 0 0 5px rgba(0, 153, 255, 0.5);
}

.text-filter-container .text-filter-icon {
    position: absolute;
    top: 51%;
    left: 13px;
    transform: translateY(-50%);
    color: white;
    font-size: 18px;
    pointer-events: none;
}
