﻿
#contactModal .modal-content {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.contact-card:hover {
    box-shadow: 0px 0px 8px rgba(var(--bs-primary-rgb), 0.5);
    transition: box-shadow 0.15s ease-in-out;
}

.matched-upload {
    background-color: #cef1ce5e;
}

.btn-outline-secondary {
    border: 1px solid #ced4da !important;
}

#map {
    width: 100%;
    height: 415px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    box-shadow: 5px 0 #fff, -4px 0 #fff;
    margin-bottom: 2rem;
}

/* Histogram List Styles */
.histogram-background-bar {
    background-color: #e0e0e0; /* The gray background */
    height: 20px;
    width: 100%;
    position: relative;
}

.histogram-bar {
    background-color: #4CAF50; /* Bar color */
    height: 20px;
    position: absolute;
    z-index: 1;
    width: 0; /* Start with 0 width */
    animation: fillBar 2s ease forwards; /* Animation to fill the bar */
}

    .histogram-bar span {
        color: white; /* Color of the text inside the bar */
        position: absolute;
        left: 5px;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        font-size: 0.75em; /* Slightly smaller text */
    }

@keyframes fillBar {
    from {
        width: 0;
    }

    to {
        width: var(--bar-width); /* Use the custom property */
    }
}

.card-body {
    z-index: 0;
}

#market-histograms .row {
    margin-bottom: 10px;
}

#market-histograms .col-3, #market-histograms .col-5, #market-histograms .col-4 {
    padding: 0 5px; /* Add some padding to each column */
}

#market-histograms .col-3 {
    display: flex;
    justify-content: flex-end; /* Align text to the end of the label column */
    align-items: center;
}

#market-histograms .col-5 {
    padding: 0;
}

.histogram-placeholder {
    position: relative;
    height: 100px;
    width: 100%;
}

.contact-card-container {
    position: relative;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Multi-select */
.multiselect-dropdown {
    width: 100% !important;
}

.multiselect-dropdown span.placeholder {
    color: #fff !important;
}

/* Scroll to top button */
.back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
}

#scrollTopBtn:hover {
    background-color: #555;
}
