@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ####################  GLOBAL / RESET  #################### */

* {
    font-family: 'Inter Tight', sans-serif;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

li {
    margin-block: 5px;
}

section {
    margin-block: 5px;
}


/* ##################  END GLOBAL / RESET  ################## */

/* ########################  NAVBAR  ######################## */

#navbar {
    display: flex;
    justify-content: space-between;
    padding: 1em;
    border-bottom: 2px #ececec solid;
    gap: 16px;
}

#navbar img {
    width: 100px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 66px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.primary-navigation {
    display: flex;
    align-items: center;
}

.primary-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    padding-right: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.primary-navigation a {
    color: black;
    background-color: #ececec;
    border-radius: 10px;
    padding: 0.5em 1em;
    font-weight: bold;
    text-decoration: none;
}

.primary-navigation a:hover {
    background-color: #d8d8d8;
}

.nav-toggle {
    display: none;
    background-color: #ececec;
    color: black;
    font-size: 1.4rem;
}

.nav-toggle:hover {
    background-color: #d8d8d8;
}

@media (max-width: 768px) {
    #navbar {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .primary-navigation {
        display: none;
        width: 100%;
    }

    #navbar.open .primary-navigation {
        display: block;
    }

    .primary-navigation ul {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
    }
}


/* ######################  END NAVBAR  ###################### */

/* ####################  FLASH MESSAGES  #################### */

.msgs {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.warning {
    background-color: #ececec;
    border-radius: 10px;
    padding: 0.6em 1.2em;
    font-weight: 600;
}


/* ##################  END FLASH MESSAGES  ################## */

/* ##############  LAYOUT: CONTAINERS & CARDS  ############## */

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.feedback_card {
    margin-top: 50px;
    width: 500px;
    background-color: #ececec;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 50px;
}

.card h1 {
    margin-top: 0;
}

.card {
    margin-top: 24px;
    width: min(960px, 100%);
    background-color: #ececec;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 40px;
}

.card--wide {
    width: min(1100px, 100%);
}

.login_card {
    margin-top: 50px;
    padding: 50px;
    width: 500px;
    background-color: #ececec;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 25px;
    border-bottom: 2px #ececec solid;
}



/* ############  END LAYOUT: CONTAINERS & CARDS  ############ */

/* ####################  FORMS & INPUTS  #################### */

.form-group {
    width: 100%;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label,
input,
.btn {
    font-weight: 600;
    font-size: 1.25em;

}

.hours-minutes-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.select-wrapper label {
    font-weight: 600;
    font-size: 1rem;
}

.select-wrapper select {
    font-size: 1rem;
}

input {
    border-radius: 15px;
    border: 2px solid rgb(22, 4, 77);
    margin-left: 5px;
    padding: 3px;
    font-size: 1em;
}

/* This is part of sritha's code I'm unsure about incuding

input[type="text"],
input[type="password"],
select, 

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,*/

textarea {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 2px solid #d0d0d0;
    border-radius: 10px;
    font-size: 0.95rem;
    background-color: #ffffff;
    transition: border-color 0.2s;
    min-height: 100px;
}

textarea:focus {
    border-color: #aaaaaa;
}

input[type="range"] {
    width: 100%;
    accent-color: #333333;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

textarea.textarea-lg {
    min-height: 180px;
}

select {
    font-size: 1.15em;
}


/* ##################  END FORMS & INPUTS  ################## */

/* #######################  BUTTONS  ######################## */

button,
.btn,
.btn-view,
.btn-edit,
.btn-secondary,
.btn-delete,
.btn-submit,
.btn-approve,
.btn-reject {
    display: inline-block;
    border: none;
    border-radius: 8px;
    background-color: #333;
    color: white;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

button:hover,
.btn:hover,
.btn-edit:hover,
.btn-submit:hover {
    background-color: #555;
}

a.cancel-link {
    margin-left: 10px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

a.cancel-link:hover {
    color: #333;
}


/* #####################  END BUTTONS  ###################### */

/* ########################  TABLES  ######################## */

/* Table */
.tableBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

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

/* Final evaluation read-only summary */
.eval-summary td:last-child {
    width: 70px;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

/* Keep the mentor's line breaks, tabs, and spacing instead of collapsing them */
.eval-comment {
    white-space: pre-wrap;
}

.table-scroll {
    width: 100%;
    max-height: 60vh;
    overflow: auto;
    border-radius: 15px;
    border: 1px solid #d9d9d9;
}

.table-scroll th {
    position: sticky;
    top: 0;
}

th {
    background-color: #333333;
    color: white;
    padding: 12px 16px;
    text-align: left;
}

td {
    background-color: #ececec;
    padding: 10px 16px;
    border-bottom: 2px solid #ffffff;
    vertical-align: top;
    overflow-wrap: break-word;
}

td form {
    display: inline;
}

.cell-scroll {
    display: block;
    max-width: 260px;
    max-height: 8em;
    overflow: auto;
    scrollbar-width: thin;
    white-space: pre-wrap;
}

.cell-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.cell-scroll::-webkit-scrollbar-thumb {
    background: #b0b0b0;
    border-radius: 3px;
}


/* ######################  END TABLES  ###################### */

/* ###  MISC: HEADINGS, BADGES, ACTION BUTTONS & WIDGETS  ### */

h1 {
    text-align: center;
}

.page-intro {
    text-align: center;
    max-width: 70ch;
    margin: 0 auto 8px;
}

/* Rating badge in table */
.rating-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    background-color: #333;
    color: white;
    border-radius: 8px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 1rem;
}

.rating-badge span {
    font-size: 0.75rem;
    font-weight: 400;
    color: #aaa;
}

/* Action buttons */
.action-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

td .action-btns {
    flex-direction: column;
    align-items: flex-start;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #cccccc;
}

.btn-delete {
    background-color: transparent;
    color: #cc3333;
    border: 2px solid #cc3333;
}

.btn-delete:hover {
    background-color: #cc3333;
    color: white;
}

.btn-submit {
    width: 100%;
    padding: 0.75em;
    font-size: 1rem;
}

/* Ratings legend on the feedback form */
.ratings-legend {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    font-size: 0.9rem;
}

/* Range labels */
.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

/* Live rating number */
.rating-live {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

/* Button row with cancel */
.btn-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}


/* #  END MISC: HEADINGS, BADGES, ACTION BUTTONS & WIDGETS  # */

/* ###################  ADMIN DASHBOARD  #################### */

/* Admin dashboard */
#admin-container {
    width: min(1500px, 100%);
    margin: 0 auto;
    display: block;
    padding: 28px 20px 80px;
}

.admin-header {
    margin-bottom: 18px;
}

.admin-header h1 {
    margin: 0;
    text-align: left;
}

.admin-panel {
    width: 100%;
    background-color: #ececec;
    border-radius: 15px;
    padding: 22px;
    margin-bottom: 22px;
    overflow-x: auto;
}

.admin-panel h2 {
    margin-top: 0;
}

.profile-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 22px;
    margin-top: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8e8;
}

.profile-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: rgb(22, 4, 77);
    font-size: 22px;
}

.profile-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.profile-grid>div {
    min-width: 0;
}

.admin-mentor-assign {
    margin-top: 18px;
}

.admin-mentor-assign .admin-select-row {
    gap: 12px;
}

.admin-mentor-assign select {
    min-width: 0;
}

.profile-card p {
    margin: 0;
    overflow-wrap: anywhere;
}

.profile-label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgb(22, 4, 77);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.student-feedback-section,
.student-averages {
    margin-top: 18px;
}

.student-feedback-section h3,
.student-averages h3 {
    margin-bottom: 14px;
    color: rgb(22, 4, 77);
}

.admin-student-select,
.admin-org-form {
    margin-bottom: 18px;
}

.admin-org-details {
    margin-bottom: 22px;
}

.admin-org-details summary {
    display: inline-flex;
    width: fit-content;
    list-style: none;
    border-radius: 15px;
    background-color: rgb(22, 4, 77);
    color: white;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

.admin-org-details summary::-webkit-details-marker {
    display: none;
}

.admin-org-details summary:hover {
    background-color: #555555;
}

.admin-org-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    max-width: 700px;
}

.admin-org-form input[type="number"],
.admin-org-form input[type="text"],
.admin-org-form input[type="url"] {
    width: 100%;
    margin-left: 0;
}

.admin-checkbox-group {
    display: grid;
    gap: 8px;
    border: 2px solid #d0d0d0;
    border-radius: 10px;
    padding: 12px;
}

.admin-checkbox-group legend {
    font-weight: 700;
}

.admin-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.admin-checkbox-group input {
    margin-left: 0;
}

.admin-select-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-select-row select,
.admin-select-row input {
    flex: 1;
    min-width: 0;
}

.admin-select-row button {
    white-space: nowrap;
}

.admin-table {
    width: 100%;
    margin: 14px 0 24px;
}

.org-type-option {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 12px 0;
}

.mentor-email-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.mentor-email-list {
    list-style: none;
    padding: 0;
}

.mentor-email-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.exclusions-note {
    color: #555;
    font-size: 0.9rem;
    margin-top: 20px;
}

.admin-organizations {
    margin-top: 34px;
}

.admin-org-list {
    margin-bottom: 0;
}


/* #################  END ADMIN DASHBOARD  ################## */

/* ######################  HOME PAGE  ####################### */

/* Home page*/

.landing-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 90px;
}

#purpose {
    width: 70%;
    font-style: italic;
    text-align: center;
}

.home-about {
    width: min(1000px, 100%);
    margin-top: 10px;
}

.home-about h2 {
    text-align: center;
    margin: 18px 0 12px;
}

.home-about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-about-card {
    background-color: #ececec;
    border-radius: 15px;
    padding: 16px 18px;
}

.home-about-card h3 {
    margin: 0 0 8px;
}

.home-about-card p {
    margin: 0;
    color: #333;
    line-height: 1.4;
}

.home-extra,
.home-faq {
    width: min(1000px, 100%);
    margin-top: 18px;
}

.home-extra h2,
.home-faq h2 {
    text-align: center;
    margin: 18px 0 12px;
}

.home-extra-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-extra-card {
    background-color: #ececec;
    border-radius: 15px;
    padding: 16px 18px;
}

.home-extra-card h3 {
    margin: 0 0 8px;
}

.home-extra-card p {
    margin: 0;
    color: #333;
    line-height: 1.4;
}

.faq-list {
    background-color: #ececec;
    border-radius: 15px;
    padding: 10px 14px;
}

.faq-list details {
    padding: 10px 8px;
    border-bottom: 1px solid #ffffff;
}

.faq-list details:last-child {
    border-bottom: none;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 800;
}

.faq-list p {
    margin: 8px 0 0;
    color: #333;
    line-height: 1.4;
}


/* ####################  END HOME PAGE  ##################### */

/* ######################  ABOUT PAGE  ###################### */

/* About page */
.page {
    width: min(1050px, 100%);
    margin: 0 auto;
    padding: 20px 20px 90px;
}

.page-header {
    text-align: center;
    margin-top: 8px;
}

.page-subtitle {
    margin: 10px auto 0;
    max-width: 70ch;
    color: #444;
    font-weight: 600;
}

.page-section {
    margin-top: 20px;
}

.page-section h2 {
    margin: 18px 0 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.info-card {
    background-color: #ececec;
    border-radius: 15px;
    padding: 16px 18px;
}

.info-card h3 {
    margin: 0 0 8px;
}

.info-card p {
    margin: 0;
    color: #333;
    line-height: 1.4;
}

.clean-list {
    margin: 0;
    padding-left: 18px;
    color: #333;
    line-height: 1.5;
}

.steps {
    background-color: #ececec;
    border-radius: 15px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgb(22, 4, 77);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.step-body h3 {
    margin: 0 0 6px;
}

.step-body p {
    margin: 0;
    color: #333;
    line-height: 1.4;
}

.manual {
    background-color: #ececec;
    padding: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    color: rgb(22, 4, 77);
    margin: -5px;
}

.manual--placeholder {
    opacity: 0.7;
    cursor: not-allowed;
}


/* ####################  END ABOUT PAGE  #################### */

/* #################  FEEDBACK FORM LAYOUT  ################# */

/* Feedback forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    width: 100%;
}

.form-grid .form-group {
    margin: 0;
}

.form-span-2 {
    grid-column: span 2;
}


/* ###############  END FEEDBACK FORM LAYOUT  ############### */

/* #############  RESPONSIVE (MAX-WIDTH 900PX)  ############# */

@media (max-width: 900px) {
    .home-about-grid {
        grid-template-columns: 1fr;
    }

    .home-extra-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    #purpose {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-span-2 {
        grid-column: auto;
    }

    .brand {
        min-width: 0;
    }

    .admin-select-row {
        align-items: stretch;
        flex-direction: column;
    }
}


/* ###########  END RESPONSIVE (MAX-WIDTH 900PX)  ########### */

/* ######  ADMIN: WEEKLY FEEDBACK, EDIT FORMS & VIEWS  ###### */

/* Admin weekly feedback section */
.admin-student-select {
    margin-bottom: 24px;
    padding: 18px;
    background-color: #faf7ff;
    border: 1px solid #e5defc;
    border-radius: 10px;
}

.admin-student-select label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgb(22, 4, 77);
}

.admin-student-select .admin-select-row {
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-student-select select {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid #d9d2f8;
    border-radius: 8px;
    background-color: #ffffff;
    color: rgb(22, 4, 77);
}

.admin-student-select button {
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    background-color: #6c63ff;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.admin-student-select button:hover {
    background-color: #5248d1;
}

.admin-panel summary {
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgb(22, 4, 77);
    margin-bottom: 16px;
}

.admin-panel .admin-org-details summary {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0;
}

.edit-container {
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
}

.edit-header,
.admin-edit-form {
    width: min(640px, 100%);
}

.edit-header h1 {
    margin: 0 0 18px;
    text-align: left;
}

.admin-edit-form {
    background-color: #ececec;
    border-radius: 18px;
    padding: 24px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

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

.form-row input,
.form-row select {
    width: 100%;
    margin-left: 0;
    padding: 10px 12px;
}

.form-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* Admin "Select a View" radios + searchable user tables */
.view-select {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}

#table-search {
    width: min(320px, 100%);
    margin-bottom: 14px;
    padding: 10px 12px;
}

.edit-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding-right: 44px;
}

.student-link {
    color: #1a0b66;
    text-decoration: underline;
    cursor: pointer;
}


/* ####  END ADMIN: WEEKLY FEEDBACK, EDIT FORMS & VIEWS  #### */

/* ##################  DOCUMENTS CAROUSEL  ################## */

/* Supplementary documents carousel */
.doc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.doc-toolbar form {
    margin: 0;
}

.doc-frame {
    width: 100%;
    height: 60vh;
    border: 1px solid #ccc;
}

/* Images scale down to fit the popup instead of showing at full resolution */
.doc-img {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    margin: 0 auto;
    object-fit: contain;
    border: 1px solid #ccc;
}

.doc-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}


/* ################  END DOCUMENTS CAROUSEL  ################ */

/* ######################  STAT FLAGS  ###################### */

/* Green check / red X in the admin stat columns */
.flag-yes {
    color: #1a7f37;
}

.flag-no {
    color: #cc3333;
}


/* ####################  END STAT FLAGS  #################### */

/* #################  IMPERSONATION BANNER  ################# */

/* Banner shown while an admin is acting as a mentor */
#impersonation-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background-color: #ffcc00;
    color: #000;
    padding: 8px 16px;
    font-weight: 600;
}


/* ###############  END IMPERSONATION BANNER  ############### */

/* ###################  STUDENT CALENDAR  ################### */

.student-calendar-section {
    margin-top: 24px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: minmax(320px, 2fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: start;
}

#student-calendar {
    min-height: 540px;
    border: 1px solid #e5defc;
    border-radius: 14px;
    padding: 12px;
    background-color: #ffffff;
}

.calendar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-card {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #e5defc;
    background-color: #faf7ff;
}

.summary-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1rem;
}

.summary-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-card li {
    margin-bottom: 10px;
    line-height: 1.4;
}

@media (max-width: 1040px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}


/* #################  END STUDENT CALENDAR  ################# */

/* ###################  WEEKLY AVERAGES  #################### */

.weekly-averages {
    margin-top: 22px;
    padding: 18px;
    background-color: #f4f3ff;
    border: 1px solid #e0d9ff;
    border-radius: 10px;
}

.weekly-averages h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: rgb(22, 4, 77);
}

@media (max-width: 900px) {
    .admin-student-select .admin-select-row {
        flex-direction: column;
        align-items: stretch;
    }
}


/* #################  END WEEKLY AVERAGES  ################## */

/* ########################  FOOTER  ######################## */

footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    border-top: 2px solid #ececec;
    padding: 15px;
    background-color: #ffffff;
}

footer a {
    text-decoration: none;
    color: rgb(22, 4, 77);
    margin: 0 25px;
}


/* ######################  END FOOTER  ###################### */

/* ###################  MENTOR APPROVAL  #################### */

/* Mentor approval styles */
.mentor-approval-section {
    margin-top: 24px;
}

.mentor-approval-section h3 {
    margin-bottom: 16px;
    color: rgb(22, 4, 77);
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.status-badge.approved {
    background-color: #d4f1d4;
    color: #2b6b2b;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.rejected {
    background-color: #f8d7da;
    color: #842029;
}

.btn-approve {
    background-color: #28a745;
    font-size: 1.2rem;
}

.btn-approve:hover {
    background-color: #218838;
}

.btn-reject {
    background-color: #dc3545;
    font-size: 1.2rem;
}

.btn-reject:hover {
    background-color: #c82333;
}

#mentor-container {
    width: min(1500px, 100%);
    margin: 0 auto;
    display: block;
    padding: 28px 20px 80px;
}

.mentor-header {
    margin-bottom: 18px;
}

.mentor-header h1 {
    margin: 0;
    text-align: left;
}


/* #################  END MENTOR APPROVAL  ################## */

/* ################  STUDENT HOURS SUMMARY  ################# */

/* Student hours summary */
.student-summary {
    width: min(1000px, 100%);
    margin-top: 20px;
    margin-bottom: 30px;
}

.student-summary h2 {
    text-align: center;
    margin: 18px 0 20px;
    color: rgb(22, 4, 77);
}

.student-hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.hours-card {
    background: linear-gradient(135deg, #6c63ff 0%, #8b7fff 100%);
    color: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.25);
}

.hours-card h3 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.95;
}

.hours-value,
.hours-value-pending {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.hours-value-pending {
    color: #ffd700;
}

/* View button on table */
.btn-view {
    background-color: #6c63ff;
}

.btn-view:hover {
    background-color: #574fd6;
}


/* ##############  END STUDENT HOURS SUMMARY  ############### */

/* ###################  MODALS / POPUPS  #################### */

/* Popups */
.modal {
    border: none;
    border-radius: 16px;
    padding: 24px;
    width: min(560px, 92vw);
    max-height: 85vh;
    overflow: auto;
    position: relative;
}

/* Wide popups: as wide as a normal page container, still scrollable */
.modal-wide {
    width: min(1500px, 94vw);
}

.modal-x-form {
    position: absolute;
    top: 8px;
    right: 14px;
}

.modal-x {
    background: none;
    color: #555;
    font-size: 1.6rem;
    line-height: 1;
    padding: 2px 8px;
}

.modal-x:hover {
    background: none;
    color: #000;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.modal-close {
    margin-top: 16px;
}

.modal-body dt {
    font-weight: 700;
    margin-top: 14px;
}

.modal-body dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}


/* #################  END MODALS / POPUPS  ################## */

/* #####################  FLASH TOASTS  ##################### */

/* Flash toasts */
#toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 2000;
}

.toast {
    margin-bottom: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    background-color: #333;
    color: #fff;
    cursor: pointer;
}

.toast-success {
    background-color: #2e7d32;
}

.toast-danger {
    background-color: #c62828;
}

.toast-warning {
    background-color: #ffca28;
    color: #333;
}

.toast-info {
    background-color: #1565c0;
}


/* ###################  END FLASH TOASTS  ################### */

/* ##################  MISC / DANGER ZONE  ################## */

.danger-zone {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: right;
}

/* ################  END MISC / DANGER ZONE  ################ */