@charset "utf-8";
html, body {
    height: 100%;  /* Ensure full height */
    margin: 0;
    padding    .modal-content {
        background-color: #fefefe !important;
        margin: 15% auto;
        padding: 20px;
        border: 1px solid #888 !important;
        width: 80%;
        max-width: 500px;
        position: relative;
        border-radius: 0.7rem !important;
    } overflow-y: auto;  /* Enable vertical scroll */
}

/* This will ensure that the body takes the full height of the viewport */
body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(136deg,rgba(48,118,194,1.00) 0%,rgba(255,255,255,1.00) 51.30%,rgba(109,183,243,1.00) 100%) /* Gradient background */
}

.container-fluid {
display: flex;
flex-direction: column;
min-height: calc(100vh - 10px); 
padding: 0 !important;
margin: 5px auto !important; /* Move margin here, consistent with submit_success.php */
}

.container-fluid .container .navbar.navbar-expand-xl.navbar-light.bg-light {
background-image: -webkit-linear-gradient(0deg,rgba(79,139,203,1.00) 0%,rgba(244,248,252,1.00) 100%);
background-image: -moz-linear-gradient(0deg,rgba(79,139,203,1.00) 0%,rgba(244,248,252,1.00) 100%);
background-image: -o-linear-gradient(0deg,rgba(79,139,203,1.00) 0%,rgba(244,248,252,1.00) 100%);
background-image: linear-gradient(90deg,rgba(79,139,203,1.00) 0%,rgba(244,248,252,1.00) 100%);
padding-top: 0px !important;
padding-bottom: 0px !important;
}
.navbar-nav.mr-auto .nav-item .nav-link {
    color: #363636;
}
.container .navbar.navbar-expand-xl.navbar-light.bg-light .navbar-toggler {
    background-color: #747474;
    padding-left: 0px;
}
.container {
    width: 100%;
    position: relative;
}

/* Make the header (navbar and everything above "HOA Members") fixed at the top */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Keeps it on top of other elements */
    background-image: linear-gradient(136deg,rgba(48,118,194,1.00) 0%,rgba(255,255,255,1.00) 51.30%,rgba(109,183,243,1.00) 100%); /* Optional: ensure the background color is not transparent */
}

/* Give the table container space below the fixed header */
.main-content {
    /*margin-top: 240px; /* Adjust this depending on the height of your navbar */
    height: calc(100vh - 240px); /* Adjust for header height */
    overflow-y: auto; /* Allows scrolling of table below the header */
}

/* Optional: Style the footer to remain at the bottom */
footer {
    margin-top: 20px; /* Add some margin to ensure footer is below the iframe */
    padding: 0 !important; /* Remove padding from footer if it's applied by Bootstrap */
    text-align: center;
    width: 100%;
}

iframe {
    margin-bottom: 0;
    height: calc(100vh - 166px); /* Adjust the height to ensure footer is below */
}

.table>thead>tr>th.danger {
    background-color:#ffff00;
}

/* Danger class from Bootstrap 3 */
.danger {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

#chatIframeContainer {
    position: fixed;
    bottom: 23px;
    right: 28px;
    z-index: 9;
    min-height: 520px;
    max-height: 520px;
    max-width: 346px;
    border: none;
    display: none;
    flex-direction: column;
    gap: 0px;
}
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.4) !important;
    }
    .modal-content {
        background-color: #fefefe !important;
        margin: 15% auto;
        padding: 0px;
        border: 1px solid #888 !important;
        width: 80%;
        max-width: 500px;
        position: relative;
        border-radius: 0.7rem !important;
    }
    #uploadModal .modal-content, #errorModal .modal-content, #downloadModal .modal-content {
        min-height: 230px;
    }
    .modal-header {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #007bff;
        color: white;
        padding: 10px 0;
    }
    #errorModal .modal-header {
        background-color: #dc3545;
    }
    .modal-header h2 {
        margin: 0;
        font-size: 1.25rem;
        color: white;
        flex: 1;
        text-align: center;
        line-height: 1.5;
    }
    .modal-header .close {
        color: white !important;
        font-size: 1.25rem !important;
        font-weight: bold !important;
        cursor: pointer !important;
        padding: 0;
        background: none;
        border: none;
        line-height: 1.5;
        margin-right: 0;
        opacity: 0.8;
    }
    .modal-header .close:hover,
    .modal-header .close:focus {
        color: #ccc !important;
        text-decoration: none !important;
        cursor: pointer !important;
    }
    .drop-zone {
        border: 2px dashed #ccc !important;
        padding: 20px !important;
        text-align: center !important;
        margin: 20px 0 !important;
    }
    .drop-zone.dragover {
        background-color: #e1e1e1 !important;
        border-color: #999 !important;
    }
    .progress-container {
        width: 100%;
        height: 20px;
        position: relative;
        background-color: #fff; /* White initially */
        border-radius: 5px;
        margin: 20px 0;
        overflow: hidden;
    }
    .progress-background {
        width: 100%;
        height: 100%;
        background-color: #fff; /* White initially */
        border-radius: 5px;
        position: absolute;
        top: 0;
        left: 0;
        transition: background-color 0.3s ease-in-out; /* Smooth gray transition */
    }
    .progress-foreground {
        width: 0%;
        height: 100%;
        background-color: #007bff; /* Blue progress */
        border-radius: 5px;
        position: absolute;
        top: 0;
        left: 0;
        transition: width 0.3s linear; /* Linear progress, no easing at end */
    }
    .progress-text {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        text-align: center;
        line-height: 20px;
        color: #fff; /* White text for visibility */
        font-weight: bold;
        z-index: 1; /* On top of both bars */
    }