body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Source Sans Pro", "Crimson Pro", Arial, sans-serif;
    font-size: 16px;
    color: #3f4040;
}

.uh-logo{
    cursor: pointer;
}

#uh-logo-img{
    height: 28px;
}

.info-container {
    width: 100%;
    background-image: url('../img/bg2.jfif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Prevents repeating of the image */
    position: relative;
    /* white is too strong */
    /* color: #F5F5F5;*/
    /* color: #FAFAFA; */
    color: #EFEFEF;
    min-height: 924px;

    padding: 20px;

    .content{
        position: relative;
        z-index: 1; /* Bring the content above the overlay */
        text-align: left;
        /* text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); */
        
    }

    a {
        color: #FF8A80 ; /* Aligns with the red theme */
    }
    
}


.info-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.2)
    );
    z-index: 0; /* Make sure the overlay stays behind the content */
}


.glossary-container, .contact-container {
    width: 100%;
}

.loader-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Slightly dim background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it’s on top of other content */
  }
  


.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #c8102e;
    animation: spin 1s linear infinite;
  }
  
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#backToTop{
    display: none;
    background-color:#c8102e;
    /* position: absolute; */
    position: fixed; /* Fixed position */
    bottom: 20px; /* 20px from the bottom */
    right: 20px; /* 20px from the right */
    color: white;
    padding: 14px;
    border: none;
    border-radius: 2px;
    z-index: 99;
    cursor: pointer;
}

.contact-container{
    padding: 12px;
}


#userList{
    border: 1px solid black;
    border-collapse: collapse;

    
    th, td {
        min-width: 160px;
        border: 1px solid black;
        border-collapse: collapse;
        padding: 12px;
    }

    th:last-child,
    td:last-child {
        min-width: 60px;
        width: 60px;
        max-width: 60px;
        white-space: nowrap;
    }

    button {
        margin: auto 2px;
    }
    
    .row-highlight {
        background-color: #e3f2fd !important;
        border-left: 4px solid #2196f3 !important;
    }
}

.superadmin-disabled{
    cursor: not-allowed;
    background-color: #e0e0e0;
    color: #666;
    border-color: #666;
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(100%);
}

.search-container{
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

#search-bar{
    flex: 1;
}

#search-results{
    display: flex;
    flex-direction: column;
    flex: 1;
}

#search-results-number{
    min-width: 500px;
}

#search-results-card{
    min-width: 500px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;

    div{
        line-height: 0.2rem;
    }
}


#addUserButton, #searchButton, #resetButton {
    background-color: #c8102e;
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    min-width: 78px;
}

.add-user-form {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Access dropdown basic UI */
.access-cell { position: relative; }
.manage-access-btn {
    background-color: #c8102e;
    color: white;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
}
.access-panel {
    position: absolute;
    bottom: 80%;
    left: 5%;
    width: 360px;
    max-height: 360px;
    overflow: auto;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 8px 12px 8px;
    display: none;
    z-index: 20;
}
.access-panel.show { display: block; }
.access-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 8px;
}
.access-search { flex: 1; padding: 4px 6px; }
.access-tree-root { list-style: none; padding-left: 0; margin: 0; }
.access-all { margin: 8px 0; }
.access-college { margin: 8px 0; }
.access-college-row { font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.access-department-list { list-style: none; padding-left: 16px; margin: 0; }
.access-department { margin: 4px 0; }
.access-checkbox { accent-color: #2e7d32; }

/* Access selection buttons */
.access-select-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 24px;
}
.access-select-btn:hover {
    background-color: #e0e0e0;
    border-color: #999;
}
.access-all-btn {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}
.access-all-btn:hover {
    background-color: #bbdefb;
}
.access-college-btn {
    background-color: #f3e5f5;
    border-color: #9c27b0;
    color: #7b1fa2;
}
.access-college-btn:hover {
    background-color: #e1bee7;
}

.add-user-form h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
    /* text-align: center; */
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.form-row label {
    flex: 0 0 30%;
    font-weight: bold;
    color: #555;
}

.form-row input,
.form-row select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-row span {
    flex: 0 0 10%;
    text-align: center;
    color: #666;
}


/* CSS */
.alert {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #c8102e; /* red background */
    color: white;
    padding: 16px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: opacity 0.5s ease;
    opacity: 1;
    z-index: 1000;
}
  
.alert.hidden {
    opacity: 0;
    pointer-events: none;
}

.instructions{
    /* font-style: italic; */
    background-color: #fbefde;
    padding: 10px;
}


.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
/* Modal Content */
.help-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 1000px;
}

/* The Close Button */
.closeModal {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.closeModal:hover,
.closeModal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.year-info{
    margin: 0px;
    margin-top: 10px; 
    padding: 10px;
    background-color: #fbefde;
}

.report-info {
    margin-top: 10px; 
    margin-bottom: 20px;
    padding: 10px 10px;
    background-color: #fbefde;
}

.history-container-2{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
}