:root {
    --red: #BC3324;
    --black: #000000;
    --white: #FFFFFF;
    --grey: #a7abb4;
    --dark-grey: #333;
    --table-row: #85858570;
    --card: #f7f7f7;
}



/*------------------------------------BASE-------------------------------------*/
.hidden {
    display: none !important;
}

/*----------GENERAL----------*/

html, body{
    height: 100%;
    margin: 0;
}

/* Full height */
body {
    display: grid;
    grid-template-rows: 6% 1fr 6%;
    font-family: 'Golos Text', sans-serif;
    padding: 0;
    background-color: var(--dark-grey);
}

/* Main content area */
main {
    grid-row: 2 / 3;
    /* middle row */
    width: 100%;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    background-color: var(--dark-grey);
    padding: 0px;
    margin: 0 auto;
}






.adv-container {
    flex: 1 1 auto;
    max-width: 98%;
    max-height: 85%;
    overflow: scroll;
    margin: 0 auto;
    margin-top: 1rem;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.adv-search-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 81vh;
    /* take the full viewport */
}

#page-title {
    color: var(--white);
    font-size: 25px;
    margin:0 auto;
    text-align: center;
    width: 100%;
}


.top-bar {
    grid-row: 1/2;
    padding: 0.5rem 0;
    width: 100%;
    margin: 0 auto;
}

.page-content{
    grid-row: 2/3;
    display: grid;
    grid-template-rows: 1fr 14fr;
    width: 100%;
    margin: 0 auto;
    padding:0;
}

#help-button {
    color: var(--grey);
    font-size: 30px;
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 0;
    padding: 0;
    transition: transform 0.1s ease, color 0.1s ease;
    /* smooth hover */
}

#download-button {
    color: var(--red);
    font-size: 25px;
    float: left;
    border: 1px solid #d1d5db;
    /* subtle border */
    border-radius: 6px;
    /* small rounded corners */
    background-color: #f9fafb;
    margin: 0;
    padding: 10px 20px;
    transition: color 0.1s ease;
    /* smooth hover */
}

#download-button:hover,
#help-button:hover {
    cursor: pointer;
}


/*----------NAVBAR----------*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6%;
    z-index: 900;
    background-color: var(--red);
    display:flex;
    flex-direction: row;
    justify-content: center space-between;

}

.navbar .navbar-content h2 {
    color: white;
    font-size: 25px;
    padding: 0px;
}

.navbar-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    width: 98%;
    align-items: center;
}

#menu-toggle {
    border: none;
    color: white;
    font-size: 2rem;
    transition: transform 0.1s ease, color 0.1s ease;
}

#menu-toggle:hover {
    cursor: pointer;
    transform: scale(1.1);
    color: var(--dark-grey);
}




#sidenav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    /* below navbar */
    display: none;
}



.sidenav {
    width: 0%;
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    background-color: var(--red);
    color: var(--white);
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 20px;
    z-index: 999;
}

.sidenav-top-bar {
    width: 100%;
    position: absolute;
    top: 0;
}


.nav-link {
    display: flex;                /* use flex for ALL nav links */
    align-items: center;          /* center icon + text vertically */
    justify-content:first baseline;      /* center content if no icon */
    padding: 12px 20px;
    margin: 0 auto;
    text-align: left;
    
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    gap: 0.4rem;
}

/* #profile-nav-link{
    display: inline-flex;
    align-items: center; 
    gap: 0.4rem;         
    text-decoration: none;
    color: inherit;      
    font-size: 1rem;
} */

.nav-link:hover {
    color: var(--dark-grey);
    cursor: pointer;
}


.sidenav .closebtn {
    font-size: 30px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.sidenav .closebtn:hover {
    color: var(--dark-grey);
    cursor: pointer;

}

.sidenav .closebtn {
    position: absolute;
    right: 1.5%;
}




.profile-icon {
    font-size: 1.4rem;
    /* adjust size to balance with text */
    line-height: 1;
}

#nav-options {
    padding-top: 50%;
}





/*----------FOOTER----------*/
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6%;
    z-index: 940;
    background-color: var(--red);
}

.footer-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    width: 98%;
    align-items: center;
}

.footer img {
    width: 2.5em;
    height: 2.5em;
}


.footer p {
    color: var(--white);
}



/*------------------------------------INDEX-------------------------------------*/


.index-banner {
    width: 100%;
    aspect-ratio: 147/32;
    /* full width of parent */
    overflow: hidden;
    /* hide overflow when image is larger */
    position: relative;
    margin: 0;
    padding: 0;
}

.index-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.index-text {
    width: fit-content;
    text-align: center;
    margin: 0 auto;
    margin-top: 3rem;
    color: var(--white);
    font-size: 16px;
}

.index-header {
    color: var(--white);
    font-size: 20px;
    text-align: center;
    margin: 0 auto;
    padding: 1rem;
}


.index-container {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2%;
    justify-content: center;
    align-items: center;
}


.index-container li {
    width: 100%;
    max-width: 30%;
    margin: 10px 0;
}


.index-link {
    display: block;
    text-decoration: none;
    color: white;
    background-color: var(--red);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: background-color 0.3s, box-shadow 0.3s;
    width: 100%;
    box-sizing: border-box;
}


.index-link:hover {
    background-color: var(--grey);
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.index-link-text {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}



/*------------------------------------JOIN/UPDATE FORM-------------------------------------*/
/* ==========================
   FORM WRAPPER
========================== */
.organization-form-wrapper {
    width: 85%;
    margin: 1rem auto;
    padding: 0 1rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    transition: max-height 0.4s ease, padding 0.4s ease;
    overflow-y: hidden;

}

.organization-form {
    width: 100%;
    aspect-ratio: 16/6.5;
}

/* FORM TITLE */
.org-form-title {
    font-size: 1.5rem;
    margin: 0 auto;
    color: white;
    text-align: center;
}

/* ==========================
   TABS
========================== */
.tab-list {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.25rem;
    margin-bottom: 0;
    padding: 0;
    padding-bottom: 0.25rem;
    list-style: none;
}

.tab-header {
    padding: 0.7rem;
    width: 10%;
    font-size: 0.8rem;
    cursor: pointer;
    background-color: #e6e5e5;
    border-radius: 6px 6px 0 0;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 600;
    color: #555;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    ;
}

.tab-header.active {
    background-color: #fff;
    border-bottom: 2px solid var(--red);
    /* active underline */
    color: var(--red);
}

.tab-header:hover {
    background-color: #cccccc;
}


/* ==========================
   TAB CONTENT
========================== */
.tab-content {
    display: none;
    padding: 1rem 2rem;
    border: 2px solid #d0d0d0;
    border-radius: 0 0 12px 12px;
    animation: fadeIn 0.3s ease forwards;


}

.tab-content.active {
    display: block;
    overflow-y: scroll;
    background-color: #fff;
    height: 90%;
}

.tab-content h3 {
    color: var(--red);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 6px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================
   FORM SECTIONS
========================== */
.org-form-section-content,
.prof-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prof-category {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pic-wrapper {
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.5rem;
    border: 2px solid #e3e3e3;
    border-radius: 12px;
    background: #fafafa;
}

.category-sub-title {
    font-weight: 600;
    color: #333;
}

.address-item,
.contact-item,
.website-item,
.affiliation-item {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.5rem;
    border: 2px solid #e3e3e3;
    border-radius: 12px;
    background: #fafafa;
}

.address-item label,
.contact-item label,
.website-item label,
.affiliation-item label {
    margin-bottom: 0.3rem;
}

.address-item input,
.contact-item input,
.website-item input,
.affiliation-item select,
.affiliation-item input {
    margin-bottom: 0.5rem;
}


.address-item .trash-icon,
.contact-item .trash-icon,
.website-item .trash-icon,
.affiliation-item .trash-icon {
    font-size: 25px;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.address-item:not(:last-child),
.contact-item:not(:last-child),
.website-item:not(:last-child),
.affiliation-item:not(:last-child) {
    margin-bottom: 1.75rem;
}

/* ==========================
   INPUTS & TEXTAREAS
========================== */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
    font-family: "Inter", sans-serif;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--red);
}

textarea {
    padding: 0.5rem 0.75rem;
    resize: vertical;
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

.checklist {
    width: 100%;
    margin: 0 auto;
    display: grid;
    gap: 0.5rem;
}

.check-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.3rem;
}

.check-row label {
    font-size: 1rem;
}

.check-row input[type="checkbox"] {
    appearance: none;
    width: 1.7em;
    height: 1.7em;
    background-color: white;
    border: 1px solid black;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
}

/* Hover effect */
.check-row input[type="checkbox"]:hover {
    border-color: var(--red);
    /* blue border on hover */
}

/* Checked state */
.check-row input[type="checkbox"]:checked {
    background-color: var(--red);
    /* blue background */
    border-color: var(--red);
}

/* Add checkmark */
.check-row input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0.5em;
    width: 0.4em;
    height: 1em;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#contact-list {
    margin-bottom: 0.5rem;
}
.regions-section{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 50%;
    aspect-ratio: 6/4;
    margin: 0 auto;
    margin-bottom: 0.5rem;
    border: 2px solid #e3e3e3;
    border-radius: 12px;
    background: #fafafa;
    overflow: hidden;
}

.map-container {
    height: 100%;
    padding: 0;
    margin:0;
    overflow: hidden;
}

.map-container svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;  
    
}

.map-container svg #Central,
.map-container svg #Northeast,
.map-container svg #Northwest,
.map-container svg #Southeast,
.map-container svg #Southwest
{
 fill: #919191;
 transition: fill 0.2s ease;
}

.map-container svg #Central:hover,
.map-container svg #Northeast:hover,
.map-container svg #Northwest:hover,
.map-container svg #Southeast:hover,
.map-container svg #Southwest:hover
{
    fill:#727272;
    cursor: pointer;
}

.map-container svg g .selected,
.map-container svg #OutOfState .selected{
    fill: var(--red);
}

.map-container svg #OutOfState:not(.selected){
    fill: #e4e4e4;
}


.map-container svg #OutOfState{
    
    transition: fill 0.2s ease;
}
.map-container svg #OutOfState:hover{
    fill: #797979;
    cursor: pointer;
}



.regions-check-section .regions-list{
    padding: 1rem;
}

/* ==========================
   BUTTONS
========================== */
button.org-form-button {
    background-color: var(--dark-grey);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.3rem 1rem;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
}

button.submit-btn {
    transition: background-color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    background-color: var(--red);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
}



button.submit-btn:hover {
    background-color: var(--dark-grey);
    transform: scale(1.05);
}

button.org-form-button:hover {
    background-color: var(--red);
    transform: scale(1.05);
}

.org-form-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.org-form-button .material-symbols-outlined.add-btn {
    font-size: 20px;
    vertical-align: middle;
}

/* ==========================
   FILE UPLOAD
========================== */


#submit-wrapper {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0.5rem;
    
}

.button-label,
.button-wrapper button{
    background-color: var(--dark-grey);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.3rem 1rem;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-wrapper,
.button-wrapper button{
    width: 110px;
    text-align: center;
}

.button-label:hover {
    background-color: var(--red);
    transform: scale(1.05);
}

.form-banner-container {
    width: 100%;
    aspect-ratio: 4.5/1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1rem auto;

    border-radius: 12px;
    border: 3px solid #ddd;
    overflow: hidden; /* ensures the img doesn't spill over */
    position: relative; /* optional, for absolute positioning if needed */
    padding: 0; /* remove any default padding */
}

.form-banner-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding:0;
}

.form-logo-container {
    width: 22%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 1rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid #ddd;
}


.form-logo-pic {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ==========================
   ADD/DELETE ICONS
========================== */

.material-symbols-outlined.trash-icon {
    cursor: pointer;
    vertical-align: middle;
    color: var(--red);
    transition: transform 0.2s, color 0.2s;
}

.trash-icon:hover {
    color: var(--dark-grey);
    transform: scale(1.1);
}


/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
    .tab-list {
        flex-wrap: wrap;
    }

    .tab-header {
        flex: 1 1 48%;
        text-align: center;
    }

    .organization-form-wrapper {
        padding: 1rem;
    }
}

.join-modal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.join-modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.join-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ==========================
   MODAL BACKDROP
=========================== */
.change-modal {
    display: flex; /* Flex to center content */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 1rem; /* Small padding so modal isn't flush on mobile */
}

/* ==========================
   MODAL CONTENT
=========================== */
.change-modal-content {
    background: #f9f9f9;
    padding: 2rem 2rem 1rem 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

/* ==========================
   MODAL CLOSE BUTTON
=========================== */
.change-modal-content .close {
    position: absolute;
    top:0.5rem;
    right:0.5rem;
    cursor: pointer;
    font-size: 25px;
    color: var(--dark-grey);
    transition: transform 0.2s, color 0.2s;
}

.change-modal-content .close:hover {
    color: var(--red);
    transform: scale(1.1);
}

/* ==========================
   HEADINGS
=========================== */
.change-modal-content h3 {
    color: var(--red);
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    text-align: center;
}

/* ==========================
   FORM
=========================== */
.pass-form {
    background-color: #fff;
    padding: 1rem;
    border: 2px solid #d0d0d0;
    border-radius: 12px;
    box-sizing: border-box;
}

/* ==========================
   LABELS & INPUTS
=========================== */
.change-modal-section label {
    display: block;
    text-align: left;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.change-modal-section input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

/* ==========================
   MODAL BUTTONS
=========================== */
.pass-form-buttons {
    display: flex;
    text-align:center;
    flex-direction: column;
    gap: 0.7rem;
    justify-content: center;
    margin: 0 auto;
    padding-top: 1rem;
    width: 100%;
    position: relative;
}

.pass-form-buttons button {
    flex: 1;
    width: 30%;
    margin: 0 auto;
    padding: 0.3rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.pass-form-buttons .primary-btn {
    background-color: var(--red);
    color: #fff;
}

.pass-form-buttons .primary-btn:hover {
    background-color: var(--dark-grey);
    transform: scale(1.05);
}

.pass-form-buttons .secondary-btn {
    background-color: var(--dark-grey);
    color: #fff;
}

.pass-form-buttons .secondary-btn:hover {
    background-color: var(--red);
    transform: scale(1.05);
}

/* ==========================
   PASSWORD SECTION
=========================== */

.change-modal-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.change-modal-section .password-field input{
    width: 100% !important;
}

.change-modal-section .error{
    width: 100%;
    position: absolute;
    text-align: center;
    top: -0.5rem;
    color: red;
    margin: 0 auto;
    padding: 0;
}











.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    width: 85%;
    padding-right: 10%;
    /* space for the eye */
}



.visibility-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--grey);
    font-size: 20px;
    transition: color 0.2s;
}

.visibility-icon:hover {
    color: var(--dark-grey);
}

#visibilityOff {
    display: none;
}

.password-section .error {
    color: red
}


/*------------------------------------SEARCH-------------------------------------*/

/* -------Search Options--------- */
.search-options-container {
    width: 95%;
    padding: 0;
    margin: 0 auto;
    margin-top: 1rem;
}

.search-options {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}


/* -------Search Bar--------- */
.search-bar {
    display: flex;
    align-items: center;
    width: 300px;
    /* fixed width */
    border: 1px solid #d1d5db;
    /* subtle border */
    border-radius: 6px;
    /* small rounded corners */
    overflow: hidden;
    background-color: #fff;
    /* white background */
    transition: box-shadow 0.2s ease;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    background-color: transparent;
}

.search-bar input::placeholder {
    color: #9ca3af;
    /* subtle placeholder */
}

.search-bar button {
    border: none;
    background-color: var(--red);
    /* blue button */
    padding: 8px 12px;
    cursor: pointer;
    color: #fff;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.search-bar button:hover {
    background-color: var(--red);
    /* darker blue */
}

.search-bar:focus-within {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
    /* soft focus ring */
}


.container {
    max-width: 95%;
    height: 72vh;
    overflow: hidden;
    margin: 1rem auto;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    position: relative;

}

.scroll-table {
    width: 100%;
    height: 100%;
    overflow: auto;
    border-radius: 6px;
    scrollbar-width: none;
    /* small rounded corners */
    /* border: 1px solid #e5e7eb;  */
}

.scroll-content::-webkit-scrollbar {
  display: none;
}

/* Horizontal */
.h-bar {
  position: absolute;
  bottom: 0;
  left: 0;

  height: 12px;
  width: 100%;
  background: #eeeeeebe;
}

.h-thumb {
  height: 100%;
  width: 150px;
  background: #afafaf;
  border-radius: 6px;
  position: absolute;
  cursor: pointer;
}

/* Vertical */
.v-bar {
  position: absolute;
  top: 0;
  right: 0;
    z-index: 900;
  width: 12px;
  height: 100%;
  background: #eeeeeebe;
}

.v-thumb {
  width: 100%;
  height: 150px;
  background: #afafaf;
  border-radius: 6px;
  position: absolute;
  cursor: pointer;
}

.all-table {
    border-collapse: collapse;
    width: 100%;
    font-family: 'Golos Text', sans-serif;
    font-size: 0.95rem;
    color: black;
}

/* Table cells */
.all-table th,
.all-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75em 1em;
    text-align: left;
    vertical-align: middle;
    background-color: #fff;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    line-height: 20px;
}

/* Sticky header */
.all-table thead th {
    position: sticky;
    top: 0;
    background-color: var(--red);
    /* dark header */
    color: #fff;
    font-weight: 600;
    z-index: 10;
}

/* Hover & selected row */
.scroll-table tr:hover td {
    background-color: #f3f4f6;
    /* subtle hover */
}



/* Table links */
.table-link {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

/* Center cells */
.all-table td.center {
    text-align: center;
    vertical-align: middle;
}

.table-url {
    color: black;
}



/*----------------------------------HELP MODAL-----------------------------------*/

/* The Modal (background) */
.help-modal {
    display: none;
    /* Initially hidden */
    position: absolute;
    /* Fixed position */
    z-index: 10;
    /* High z-index to be on top */
    left: 0;
    /* Full width */
    top: 0;
    /* Full height */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.450);
    /* Semi-transparent background */
}

/* Modal Content/Box */
.help-modal-content {
    background-color: var(--dark-grey);
    margin: 105px auto;
    padding: 20px;
    border-radius: 5px;
    width: 1300px;
    max-height: 80vh;
    box-sizing: border-box;
    position: relative;
    color: white;
    display: flex;
    flex-direction: row;
}

.help-instructions {
    text-align: center;
    color: var(--white);
    font-size: 18px;
    margin-top: -10px;
}

/* The Close Button */
.help-modal-content .close-red {
    color: var(--dark-grey);
    font-size: 36px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    margin-top: -10px;
}

.help-modal-content .close-red:hover {
    color: var(--grey);
    text-decoration: none;
}


.help-nav-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.help-modal-title {
    text-align: center;
    color: var(--grey);
    margin-top: 40px;
    font-size: 28px;
}

.top-header {
    margin-top: -10px;
}


.list-group ul {
    list-style-type: none;
    padding: 0;
    width: 300px;
    margin: 70px;
    margin-top: 30px;
}

.list-group li {
    background-color: var(--grey);
    /* Match modal background */
    border-bottom: 1px solid var(--red);
    /* Subtle separation */
    text-align: center;
    padding: 20px;
    color: black;
    font-size: 17px;
}


.list-group li:hover {
    background-color: var(--red);
    cursor: pointer;
    color: var(--white);
}

.list-group a {
    color: white;
    text-decoration: none;
}

.scrollspy-example {
    background-color: var(--white);
    border: 1px solid var(--grey);
    overflow: scroll;
    padding: 20px;
    border-radius: 8px;
    height: 500px;
    margin: 20px auto;

}

.scrollspy-example h4 {
    color: var(--dark-grey);
    font-size: 26px;
    text-decoration: underline;
}

.scrollspy-example p {
    color: var(--black);
    font-size: 18px;
    line-height: 30px;
}

.help-border {
    border-bottom: solid 2px var(--red);
    padding-bottom: 20px;
}

.request-subtitle {
    font-size: 22px;
    color: var(--red);
    margin-bottom: 10px;
}




#filter-icon {
    color: var(--red);
    font-size: 23px !important;
    font-weight: 600;
}


#arrow-up,#arrow-down{
    color: var(--dark-grey);
    font-size: 30px;
    transition: transform 0.2s;
}

#arrow-up:hover,#arrow-down:hover{
    transform: scale(1.2);
}

#back-button,
.back-button {
    color: var(--grey);
    font-size: 30px;
    position: absolute;
    margin:0;
    padding:0;
    padding-left: 0.5rem;
    transition: transform 0.1s ease, color 0.1s ease;
    z-index: 800;
    /* smooth hover */
}

#back-button:hover,
.back-button:hover {
    cursor: pointer;
    transform: scale(1.1);
    color: white;
}

#back-button:visited,
.back-button:visited {
    color: var(--grey);
}


.length_results {
    text-align: center;
    color: white;
    font-size: 16px;
}





.contractor-table-container {
    margin: 1% auto;
    width: 45%;
}

/* Title */
.contractor-title {
    text-align: center;
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Scrollable wrapper */
.contractor-table-wrapper {
    max-height: 600px;
    overflow-y: scroll;
    overflow-x: scroll;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    background: var(--white);
    scrollbar-gutter: stable both-edges;
}

/* Table styling */
.contractor-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
}

.contractor-info-table th,
.contractor-info-table td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

/* Left column (labels) */
.contractor-info-table th {
    background: var(--red);
    color: white;
    font-weight: 550;
    font-size: 18px;
    width: 30%;
    
}

/* Right column (data) */
.contractor-info-table td {
    color: var(--black);
    line-height: 1.5;
    font-size: 16px;
}

/* Row dividers */
.contractor-info-table tr:not(:last-child) td,
.contractor-info-table tr:not(:last-child) th {
    border-bottom: 1px solid #ddd;
}


/* Buttons */
.request-buttons {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.create-update-request-button,
.create-update-delete-button {
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    background-color: var(--red);
    color: var(--white);
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.create-update-request-button:hover,
.create-update-delete-button:hover {
    background-color: var(--grey);
    color: var(--black);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}



/*------------------------------------LOGIN-------------------------------------*/
.login-link {
    text-decoration: none;
    color: white;
    border-radius: 8px;
    padding: 1%;
    transition: background-color 0.2s ease;
}

.login-link:hover {
    background-color: var(--dark-grey);

}

.logo-background {
    position: fixed;
    /* stay fixed behind the form */
    top: 0;
    left: 0;
    width: 100%;
    height: 95%;
    z-index: 0;
    /* behind the login form */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Repeating background logo */
    background-image: url('../images/iuci-logo.png'), linear-gradient(rgba(49, 49, 49, 1), rgba(49, 49, 49, 1));
    background-repeat: repeat;
    background-blend-mode: overlay;
    /* or overlay */
    background-size: 100px 100px;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* horizontal centering */
    align-items: center;
    width: 90%;
    /* vertical centering */
    height: 90%;
    /* full viewport height */
    position: relative;
    /* so z-index works */
    z-index: 1;
}

.claim-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;

}

.back-login {
    display: inline-flex;
    /* keeps icon and text aligned */
    align-items: center;
    /* vertically centers icon/text */
    gap: 0.4rem;
    /* space between icon and text */
    background-color: var(--red);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    position: absolute;
    top: 5rem;
    left: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.back-login:hover {
    background-color: var(--grey);
    color: black;
    /* darker red */
    transform: translateY(-2px);
    /* subtle lift */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.claim-container,
.login-container {
    position: relative;
    z-index: 1;
    /* above background */
    /* Optional styling for form */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 5;
}


#login-title {
    color: var(--white);
    text-align: center;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    padding: 1%;
}

.claim-title{
    color: var(--black);
    text-align: center;
    font-size: 1.8em;
    font-weight: 600;
    margin: 0 auto;
    padding: 1% 1% 0 1%;
}
.claim-form{
    margin: 0 auto;
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 40rem;
    height: auto;
}
.login-form {
    margin: 0 auto;
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 25rem;
}
.claim-form input[type="text"],
.claim-form input[type="email"],
.claim-form input[type="password"],
.login-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.claim-form input:first-child{
    margin-bottom: 0px;
}

.claim-form .autocomplete-tags{
    margin-bottom: 18px;
}

.claim-form .password-field{
    margin-bottom: 18px;
}   
.claim-form input[type="text"]:focus,
.claim-form input[type="email"]:focus,
.claim-form input[type="password"]:focus,
.login-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
    outline: none;
}

.claim-form label,
.login-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--red);
    font-size: 18px;
    font-weight: 600;
}

.login-form-content {
    margin: 0 auto;
}

.claim-form-content {
    margin: 0 auto;
}
.claim-form-button,
.login-form-button {
    display: block;
    width: 60%;
    margin: 1.5rem auto 0 auto;
    padding: 12px;
    background-color: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.claim-form-button{
    margin: 1rem auto;
}

.claim-form-button:hover,
.login-form-button:hover {
    background-color: var(--dark-grey);
}

.claim-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;  /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.claim-modal-content {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
  position: relative;
}





.message {
    color: var(--white);
    text-align: center;
    font-size: 18px;
}

.login-form-top-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.login-form-instructions {
    text-align: center;
}


.password-bar {
    width: 100%;
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
}


/*------------------------------------DELETE-------------------------------------*/

.delete_form {
    /* margin: 0 auto;
        background-color: var(--grey);
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-width: 40%;
        height: 35rem;
        overflow: scroll;
        margin-bottom: 18px; */

    max-width: 600px;
    /* a bit wider than 40% for readability */
    margin: 1.5rem auto;
    background-color: #f7f7f7;
    /* softer grey */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 70vh;
    /* allow form to grow */
    overflow-y: auto;
}

.delete_form label {
    /* display: block;
        margin-bottom: 8px;
        color: #333;
        font-size: 18px;
        font-weight: bold; */

    display: block;
    margin-bottom: 6px;
    color: var(--red);
    font-size: 18px;
    font-weight: 600;
}

.delete_form input[type="text"] {
    /* width: 100%;
        padding: 10px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        font-size: 18px; */

    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.delete_form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: var(--red);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.delete_form input[type="submit"]:hover {
    background-color: var(--dark-grey);
}

.delete_form textarea[id='reason'] {
    min-height: 5%;
    max-height: 30%;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.delete_form input:focus,
.delete_form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
    outline: none;
}




/* ---------------XBE TOOLTIP------------------- */

/* Wrapper ensures proper positioning */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
    /* important for absolute positioning inside table cell */
    cursor: pointer;
}

/* Star styling */

.star-icon {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 10px;
    /* small size, adjust as needed */
    color: var(--red);
    line-height: 1;
    /* prevents extra vertical space */
    vertical-align: middle;
    /* centers with the text in the cell */
    padding: 0;
    margin: 0;
    display: inline-block;
    /* avoids block spacing issues */
}

/* Tooltip */
.tooltip-wrapper .tooltiptext {
    visibility: hidden;
    width: max-content;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 8px;
    border-radius: 6px;

    position: absolute;
    z-index: 9999;
    top: 50%;
    /* above the star */
    left: 105%;
    transform: translateY(-50%);

    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    /* prevent line breaks */
}

/* Arrow */
.tooltip-wrapper .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    /* arrow at bottom of tooltip */
    left: -5px;
    transform: translateY(-50%);
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #555 transparent transparent;
}

/* Show on hover */
.tooltip-wrapper:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


/* ------------- PROFILE STYLING ------------ */

/* Wrapper for entire profile */
.contractor-profile-wrapper {
    /* fixed width for all profiles */
    width: 1150px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: none;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .contractor-profile-wrapper {
    width: 900px;
  }

  .profile-header-card {
    width: 900px;
  }

  .contractor-profile{
    width: 900px;
  }
}

/* Control center (buttons) */
.control-center {
    display: flex;
    width: 20%;
    justify-content: center;   /* center the buttons */
    gap: 15px;                 /* space between buttons */
    padding: 0.8rem 1.5rem;
    
    margin: 0 auto;
}

/* Make all buttons and links inside control-center look identical */
.control-center button,
.control-center a.button-red {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background-color: var(--table-row);
    color: #fff;
    font-weight: 500;
    font-size: 14px;       /* same font size */
    line-height: 1;        /* normalize line-height */
    font-family: inherit;  /* use the same font as surrounding text */
    text-transform: none;  /* prevent uppercase differences */
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-decoration: none; /* remove underline from links */
    
}

/* Ensure icons inside buttons/links are same size */
.control-center button .material-symbols-outlined,
.control-center a.button-red .material-symbols-outlined {
    font-size: 18px;
    vertical-align: middle;
}

/* Hover effect */
.control-center button:hover,
.control-center a.button-red:hover {
    background-color: var(--red); /* slightly darker red */
    transform: scale(1.05);
    transition: background-color 0.2s ease, transform 0.2s ease;
}


/* Banner section */
.profile-header-card {
    position: relative;
    width: 1150px;
    height: 250px;
    /* fill the wrapper width *         /* fixed height for all banners */
    margin-bottom: 90px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: none;
    border-radius: 12px;
    /* hide anything outside the fixed area */
}

.profile-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

/* Profile pic overlapping the banner */
.profile-pic {
    position: absolute;
    bottom: -75px;
    left: 50%;
    transform: translateX(-50%);
    width: 175px;
    height: 175px;
    border-radius: 50%;
    border: 4px solid var(--table-row);
    object-fit: cover;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* adds depth */

}



/* Organization name overlay */
.profile-org-name {
    width: 100%;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    /* makes text readable on banner */
}

/* Profile info container */
.profile-info {
    display: grid;
    grid-template-columns: 3fr 5fr;
    /* two columns */
    grid-auto-rows: auto;
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.prof-left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.prof-right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Profile sections */
.profile-section {
    position: relative;
    background-color: #f7f7f7;
    border-radius: 12px;
    padding: 1rem 1.7rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}



.profile-section h4 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--red);
    font-size: 1.4rem;
    border-bottom: 2px solid var(--table-row);
    padding-bottom: 6px;
}

/* Profile content */
.profile-section-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.prof-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prof-category {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.category-title {
    font-weight: 600;
    color: var(--black);
    font-size: 1.2rem;
    margin: 0;
    margin-bottom: 5px;
}

.category-sub-title {
    color: var(--black);
    font-size: 1rem;
}

.category-info {
    color: var(--black);
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.category-list {
    list-style-type: none;
    color: var(--black);
    padding: 0;
    text-align: left;
    margin: 0;
}

.category-list li {
    margin-bottom: 4px;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th,
.profile-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--table-row);
    text-align: left;
}


.profile-table td {
    background-color: var(--white);
    font-size: 1rem;
    line-height: 1.4;
}

.profile-table th {
    background-color: var(--table-row);
    color: var(--black);
    font-size: 1.1rem;
}

.info-blocks {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.address-block,
.contact-block {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Address lines */
.address-block p,
.contact-block p {
    margin: 0;
    font-size: 1rem;
    color: var(--black);
}

/* Contact name highlight */
.contact-block p span {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--black);
}

.region-options {
    position: relative;
}


.region-button {
    color: black;
    border: none;
    background-color: #f7f7f7;
    position: absolute;
    right: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.region-button:hover {
    cursor: pointer;
    color: var(--red);
    transform: scale(1.1);
}

.region-map {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--table-row);
}

.region-map svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}


.in-state {
    fill: #535353;
}

.out-state:not(.selected) {
    fill: #d5d5d5 !important;
}

.selected path{
    fill: #BC3324 !important;
}


.region-label text {
    stroke: #000000;
    stroke-width: 0.5;
}

.region-toggle{
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;  
}

.region-list{
    display: none;
}

.edit-square {
    color: var(--grey);
    font-size: 40px;
    float: right;
    margin: 0;
    padding: 0.5rem;
    transition: transform 0.1s ease, color 0.1s ease;
    /* smooth hover */
}

.edit-square:hover {
    cursor: pointer;
    transform: scale(1.1);
    color: white;
}


/* Filter button styling */


#openFilterModal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* space between icon and text */
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 550;
    border: 1px solid #d1d5db;
    /* subtle border */
    border-radius: 6px;
    /* small rounded corners */
    background-color: #f9fafb;
    /* light background */
    color: #111827;
    /* dark text */
    cursor: pointer;
    transition: all 0.2s ease;
}

#openFilterModal:hover {
    background-color: #e5e7eb;
    /* subtle hover background */
    border-color: #9ca3af;
    /* slightly darker border */
}

#openFilterModal:active {
    background-color: #d1d5db;
    /* pressed effect */
}

#openFilterModal .material-symbols-outlined {
    font-size: 18px;
    /* slightly larger icon */
    color: var(--red);
    /* blue icon */
}

/* Optional: filter count badge */
#filter-count {
    display: none;
    min-width: 18px;
    padding: 2px 6px;
    margin-left: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-color: var(--red);
    border-radius: 999px;
    /* pill-shaped badge */
    text-align: center;
}

/* Modal Overlay */
.filter-modal {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    /* hidden by default */
}

/* Show overlay */
.filter-modal:not(.hidden) {
    display: block;
}

/* Slide-in content */
.filter-modal-content {
    position: absolute;
    top: 0;
    left: -100%;
    /* start off-screen left */
    width: min(400px, 90vw);
    height: 100%;
    background-color: var(--card);
    padding: 0;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--dark-grey);
    font-family: 'Manrope', sans-serif;
    overflow: visible;
}

/* Slide-in when modal is active */
.filter-modal:not(.hidden) .filter-modal-content {
    left: 0;
    /* slide in */
}




.filter-sections {
    height: 85%;
    overflow-y: scroll;
    padding: 0 1rem;
}

.filter-modal.show .filter-modal-content {
    left: 0;
}

/* Header & Close */
.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--grey);
    padding: 1rem 0.5rem;
    margin-bottom: 0.5rem;
}

.filter-modal-header h2 {
    margin: 0;
    color: var(--black);
}

.close-modal {
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--red);
}

/* Global tags container */
.selected-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    padding: 0.3rem 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    background-color: var(--red);
    color: white;
    vertical-align: middle;
}




.selected-tag .remove-tag {
    margin-left: 0.4rem;
    margin-right: 0;
    padding:0;
    cursor: pointer;
    font-size: 25px;
    font-weight: 500;
    border: none;
    background-color: var(--red);
    color: white;
}

/* Filter sections */
.filter-category {
    border: 1px solid var(--table-row);
    border-radius: 6px;
    padding: 0.6rem 0.7rem;
    margin-bottom: 0.6rem;
    background-color: var(--white);
    transition: box-shadow 0.2s ease;
}

.filter-category:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}


.filter-header {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: bold;
    color: var(--black);
    margin-top: 0.5rem;
}

.filter-content {
    max-height: fit-content;
    transition:
        max-height 0.3s ease,
        opacity 0.2s ease,
        padding 0.2s ease;
    opacity: 0;
    padding-top: 0;
}

/* When visible */
.filter-content:not(.hidden) {
    opacity: 1;
    padding-top: 0.4rem;
}

.filter-content .subcategory{
    margin-bottom: 0.5rem;
}

/* Autocomplete Tags */
.autocomplete-tags {
    position: relative;
    margin-top: 0.3rem;
}

.autocomplete-input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--grey);
    border-radius: 4px;
    color: var(--black);
    background-color: var(--white);
    box-sizing: border-box;
}

.autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid var(--grey);
    background-color: var(--white);
    z-index: 9999;
}


.subcategory .autocomplete-list {
    position: absolute;
    z-index: 9999;
    overflow: scroll;
}


.autocomplete-item {
    padding: 0.3rem 0.5rem;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: var(--table-row);
}


.filter-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--grey);
}

.filter-modal-footer button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    transition: background 0.2s ease, transform 0.1s ease;
}

.filter-modal-footer button:hover {
    transform: translateY(-1px);
}



.filter-modal-footer button[type="reset"] {
    background-color: var(--grey);
    color: var(--white);
    float: left;
}

.filter-modal-footer button[type="submit"] {
    background-color: var(--red);
    color: var(--white);
    float: right;
}



.filter-checklist {
    display: flex;
    flex-direction: column;
}

.message-container{
    width: 100%;
    background-color: var(--card);
    padding: 1rem;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--dark-grey);
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
    border-radius: 8px;
}

.message-container h3{
    margin: 0 auto;
    color: var(--red);
}

.message-container p{
    margin: 0.5rem auto;
    color: var(--black);
    font-size: 16px;
}

/* Container pill */
.requests-toggler {
  width: 25%;
  display: flex;
  justify-content: center;
  
  background: #e9ecef;
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
  user-select: none;
  margin: 0 auto;
  margin-bottom: 1rem;
 
}

/* Each side */
.toggle-option {
    width: 50%;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #555;
  font-weight: 600;
  text-align: center;
  text-wrap: nowrap;
}

/* Remove default p spacing */
.toggle-option p {
    font-size: 0.9rem;
  margin: 0;
}

/* Hover feedback */
.toggle-option:hover {
  background: rgba(0,0,0,0.06);
}

/* ACTIVE (selected state) */
.toggle-option.active {
  background: white;
  color: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Container for all cards */
.requests-container {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
}

/* Individual request card */
.request-card {
    max-height: 600px;
    background-color: var(--card);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 1rem 1rem 0.5rem 1rem;
}

/* Header with submitter info */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--dark-grey);
}


.card-header h3 {
    font-weight: bold;
    color: var(--red);
    margin:0;
    font-size: 1.2rem;
}

.submit-info{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: right;
}

.submit-info p{
    margin:0.2rem;
}

.request-info{
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
/* Body with select & comparison */
.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Section select dropdown */
.field-select {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--grey);
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
}

/* Current vs pending comparison box */
.field-comparison {
    display: none;
    margin-top: 0.5rem;
    height: 400px;
    background-color: var(--white);
    border: 1px solid var(--grey);
    border-radius: 6px;
    font-size: 0.9rem;
    /* will show when JS populates */
}

.comparison-content{
    display: flex; flex-direction: row;
    width: 100%;
    height: 100%;
}

.pending-comparison, .current-comparison {
    width: 50%;
    padding: 0.5rem;
    overflow-y: scroll;

}

.current-comparison{ 
    border-right: 1px solid var(--grey);
}

.pending-comparison h3, .current-comparison h3 {
    margin-top: 0;
    color: var(--red);
    font-size: 1.1rem;
    padding-bottom: 4px;
}


/* Highlight changes */
.field-comparison .changed {
    background-color: var(--table-row);
    padding: 2px 4px;
    border-radius: 3px;
}

/* No requests message */
.none-message {
    text-align: center;
    color: var(--grey);
    font-style: italic;
}

.field-item {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.field-item p {
  margin: 4px 0;
  font-size: 14px;
}

.field-item p strong {
  color: #333;
}

.field-item hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 8px 0;
}

.field-banner {
    width: 90%;
    aspect-ratio: 4.5/1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1rem auto;

    border-radius: 12px;
    border: 3px solid #ddd;
    overflow: hidden; /* ensures the img doesn't spill over */
    position: relative; /* optional, for absolute positioning if needed */
    padding: 0; /* remove any default padding */
}

.field-banner img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding:0;
}

.field-logo {
    width: 22%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 1rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid #ddd;
}


.field-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.field-item .xbe-list{
    padding: 0 12px;
    margin: 0;
}

.request-btn{
    display: block;
    width: 20%;
    margin: 0.5rem auto;
    margin-bottom: 0;
    padding: 10px;
    background-color: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;}

.status-pending{
    color: #EA8723 !important;
    font-weight: 500;
}

.status-approved{
    color: #01A049 !important;
    font-weight: 500;
}
.status-rejected{
    color: #BD1E30 !important;
    font-weight: 500;
}

.status-canceled{
    color: #3d61a8 !important;
    font-weight: 500;
}


.contact-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 5rem;
}

/* Contact instructions */
.contact-instructions {
  font-size: 1.1rem;
  line-height: 1.6;
  color: white;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

/* Card container */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 30%;
  margin: 0 auto;
}

/* Each contact method */
.contact-method {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  background-color: #f7f9fc;
  width: 100%;
  padding: 1.5rem 2rem;
  border-radius: 12px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Hover effect */
.contact-method:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Headings inside card */
.contact-method h2 {
  font-size: 1.2rem;
  color: #1a73e8; /* blue accent */
  margin-bottom: 0.8rem;
}

/* Links inside card */
.contact-method a {
  font-size: 1.2rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

/* Hover link effect */
.contact-method a:hover {
  color: #1a73e8;
}

#contact-icon{
    font-size: 1.7rem;
    color: var(--red);
    font-weight: 600;
}