/* Collapse sidebar */
#adminSidebar.collapsed {
    width: 70px !important;
    min-width: 70px !important;
    overflow: hidden;
}

/* Hide text blocks */
#adminSidebar.collapsed .sidebar-logo-text,
#adminSidebar.collapsed .sidebar-upcoming,
#adminSidebar.collapsed .sidebar-user-role,
#adminSidebar.collapsed .sidebar-user-email {
    display: none !important;
}

/* Make collapsed nav items true square icon buttons */
#adminSidebar.collapsed .sidebar-nav-item {
    position: relative;
    display: block !important;
    width: 40px;
    height: 40px;
    margin: 6px auto;
    padding: 0 !important;
    font-size: 0;
    line-height: 0;
    text-align: center;
    border-radius: 10px;
}

/* Center icon exactly */
#adminSidebar.collapsed .sidebar-nav-item::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    line-height: 1;
}

/* Icons */
#adminSidebar.collapsed .sidebar-nav-item[data-section="home"]::before {
    content: "⌂";
}

#adminSidebar.collapsed .sidebar-nav-item[data-section="candidates"]::before {
    content: "👥";
}

#adminSidebar.collapsed .sidebar-nav-item[data-section="calendar"]::before {
    content: "📅";
}

#adminSidebar.collapsed .sidebar-nav-item[data-section="materials"]::before {
    content: "▦";
}

#adminSidebar.collapsed .sidebar-nav-item[data-section="email"]::before {
    content: "✉";
}

#adminSidebar.collapsed .sidebar-nav-item[data-section="mentors"]::before {
    content: "🎓";
}

#adminSidebar.collapsed .sidebar-nav-item[data-section="settings"]::before {
    content: "⚙";
}

/* Active item */
#adminSidebar.collapsed .sidebar-nav-item.active {
    background: rgba(137, 237, 147, 0.12);
    color: #89ed93;
}

/* Logout button */
#adminSidebar.collapsed .sidebar-logout-btn {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    margin: 8px auto 0;
    padding: 0 !important;
    font-size: 0;
    line-height: 0;
    border-radius: 10px;
}

#adminSidebar.collapsed .sidebar-logout-btn::before {
    content: "⎋";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    line-height: 1;
}

.sidebar-toggle-btn {
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

#adminSidebar.collapsed .sidebar-toggle-btn {
    transform: rotate(180deg);
}

#adminSidebar.collapsed .sidebar-nav-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 6px auto;
    width: 44px;
    height: 44px;
}

/* Add User shortcut inside sidebar */
.add-member-shortcut {
    margin-top: 10px;
    padding-top: 10px;
}

.btn-add-member {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(137, 237, 147, 0.16), rgba(137, 237, 147, 0.08));
    color: #89ed93;

    border: 1px solid rgba(137, 237, 147, 0.22);
    border-radius: 10px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;

    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.btn-add-member:hover {
    background: linear-gradient(180deg, rgba(137, 237, 147, 0.22), rgba(137, 237, 147, 0.12));
    border-color: rgba(137, 237, 147, 0.38);
    color: #c9ffd0;
    transform: translateY(-1px);
}

.btn-add-member:active {
    transform: translateY(0);
}

.btn-add-member-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;
    background: rgba(137, 237, 147, 0.14);
    border: 1px solid rgba(137, 237, 147, 0.18);

    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.btn-add-member-label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
}

/* Collapsed sidebar version */
#adminSidebar.collapsed .add-member-shortcut {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

#adminSidebar.collapsed .btn-add-member {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
}

#adminSidebar.collapsed .btn-add-member-label {
    display: none;
}

#adminSidebar.collapsed .btn-add-member-icon {
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    font-size: 18px;
}

.user-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.btn-view-members {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #d7d7d7;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-view-members:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(137, 237, 147, 0.22);
    color: #fff;
}

.user-modal {
    max-width: 760px;
}

.user-modal .modal-body {
    padding: 22px 24px;
}


#adminSidebar.collapsed .user-shortcuts {
    align-items: center;
}

#adminSidebar.collapsed .btn-view-members,
#adminSidebar.collapsed .btn-add-member {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
}

#adminSidebar.collapsed .btn-view-members .btn-add-member-label,
#adminSidebar.collapsed .btn-add-member .btn-add-member-label {
    display: none;
}


.btn-users-add {
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #89ed93, #6fdb7d);
    color: #08140b;
    font-size: 0.92rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(137, 237, 147, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    align-self: center;
}

.btn-users-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(137, 237, 147, 0.24);
}

/* animation */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.user-role-select {
    appearance: none;
    min-width: 124px;
    height: 42px;
    padding: 0 38px 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, #102042 0%, #0b1734 100%);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-role-select:hover,
.user-role-select:focus {
    border-color: rgba(137, 237, 147, 0.45);
}

.btn-user-remove-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 92, 92, 0.16);
    background: rgba(255, 92, 92, 0.08);
    color: #ff6262;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
    flex-shrink: 0;
}

.btn-user-remove-icon:hover {
    background: rgba(255, 92, 92, 0.14);
    transform: translateY(-1px);
}

.btn-user-remove-icon svg {
    width: 16px;
    height: 16px;
}


/* ===== Add User Modal Fix ===== */
#addUserModalOverlay .modal {
    max-width: 720px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

#addUserModalOverlay .modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e8eaee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#addUserModalOverlay .modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1f2b;
}

#addUserModalOverlay .modal-body {
    padding: 24px 28px 28px;
}

.add-user-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.add-user-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.add-user-fields .full-width {
    grid-column: 1 / -1;
}

.add-user-form input,
.add-user-form select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d8dde6;
    border-radius: 12px;
    background: #fff;
    color: #1a1f2b;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

.add-user-form input:focus,
.add-user-form select:focus {
    border-color: #89ed93;
    box-shadow: 0 0 0 3px rgba(137, 237, 147, 0.18);
}

.add-user-role-hint {
    margin-top: -2px;
    font-size: 0.84rem;
    line-height: 1.6;
    color: #6b7280;
    background: #f8faf9;
    border: 1px solid #e6ece8;
    border-radius: 12px;
    padding: 14px 16px;
}

.add-user-role-hint strong {
    color: #253140;
}

.add-user-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}

.btn-add-user-cancel,
.btn-add-user-submit {
    min-width: 120px;
    height: 44px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-add-user-cancel {
    background: #fff;
    color: #253140;
    border: 1px solid #d8dde6;
}

.btn-add-user-cancel:hover {
    background: #f7f8fa;
}

.btn-add-user-submit {
    background: linear-gradient(135deg, #89ed93, #6fdb7d);
    color: #08140b;
    border: none;
    box-shadow: 0 10px 24px rgba(137, 237, 147, 0.18);
}

.btn-add-user-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(137, 237, 147, 0.24);
}

@media (max-width: 700px) {
    #addUserModalOverlay .modal {
        max-width: calc(100vw - 24px);
    }

    #addUserModalOverlay .modal-header,
    #addUserModalOverlay .modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .add-user-fields {
        grid-template-columns: 1fr;
    }

    .add-user-actions {
        flex-direction: column-reverse;
    }

    .btn-add-user-cancel,
    .btn-add-user-submit {
        width: 100%;
    }
}

.user-role-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 130px;
}

.user-role-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    line-height: 1;
}

.user-role-select-wrap {
    position: relative;
    min-width: 130px;
}

.user-role-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 42px;
    padding: 0 38px 0 14px;
    border-radius: 12px;
    border: 1px solid #d8dde6;
    background: #fff;
    color: #15202b;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.user-role-select:hover {
    border-color: #b8c2cf;
}

.user-role-select:focus {
    border-color: #89ed93;
    box-shadow: 0 0 0 3px rgba(137, 237, 147, 0.18);
}

.user-role-chevron {
    position: absolute;
    right: 12px;
    top: 40%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1;
}

.compose-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.58);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.compose-confirm-overlay.active {
    display: flex;
}

.compose-confirm-modal {
    width: min(920px, 96vw);
    max-height: 92vh;
    overflow: hidden;
    border-radius: 18px;
    background: #161616;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.compose-confirm-header,
.compose-confirm-footer {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compose-confirm-footer {
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.compose-confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.compose-confirm-header h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.compose-confirm-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.compose-confirm-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.compose-confirm-body {
    padding: 22px;
    overflow: auto;
}

.compose-confirm-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.compose-confirm-meta-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
}

.compose-confirm-meta-card .label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.compose-confirm-email-shell {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.compose-confirm-email-top {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.compose-confirm-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.compose-confirm-recipient-list-wrap,
.compose-confirm-message-wrap {
    padding: 18px;
}

.compose-confirm-recipient-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compose-confirm-recipient-pill {
    background: rgba(137, 237, 147, 0.12);
    color: #9bf3a4;
    border: 1px solid rgba(137, 237, 147, 0.24);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.8rem;
}

.compose-confirm-message {
    white-space: pre-wrap;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    min-height: 140px;
}

.compose-confirm-warning {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(253, 126, 20, 0.10);
    border: 1px solid rgba(253, 126, 20, 0.22);
    color: #ffcf9d;
    font-size: 0.88rem;
}

.btn-user-remove-icon {
    order: 2;
    margin-left: auto;
}

.user-role-control {
    order: 1;
}

.user-role-readonly {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #d8dde6;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.88rem;
    font-weight: 700;
}

.user-mgmt-wrap {
    padding: 16px 24px 28px;
}

.user-mgmt-notice {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 420px;
}

/* SUCCESS */
.user-mgmt-notice.success {
    background: rgba(137, 237, 147, 0.12);
    color: #3ca65a;
    border: 1px solid rgba(137, 237, 147, 0.25);
}

/* ERROR */
.user-mgmt-notice.error {
    background: rgba(255, 92, 92, 0.08);
    color: #d64545;
    border: 1px solid rgba(255, 92, 92, 0.2);
}

.user-mgmt-topbar {
    display: block;
    margin-bottom: 18px;
}

.user-mgmt-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.user-mgmt-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.1;
}

.user-mgmt-heading p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
}

.btn-users-add {
    align-self: flex-start;
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #89ed93, #6fdb7d);
    color: #08140b;
    font-size: 0.88rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(137, 237, 147, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-users-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(137, 237, 147, 0.2);
}

.user-mgmt-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    gap: 16px;
    align-items: start;
}

.user-mgmt-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-height: 142px;
    padding: 18px 18px 16px;
    border-radius: 16px;
    background: #f8f9fb;
    border: 1px solid #e6eaf0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.user-mgmt-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-mgmt-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-mgmt-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: #15202b;
    line-height: 1.2;
    word-break: break-word;
}

.user-mgmt-email {
    font-size: 0.86rem;
    color: #5f6c7b;
    line-height: 1.3;
    word-break: break-word;
}

.user-mgmt-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.user-mgmt-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.user-mgmt-role-badge,
.user-mgmt-owner-badge {
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    white-space: nowrap;
}

.user-mgmt-role-badge.super-admin {
    background: rgba(255, 215, 0, 0.12);
    color: #c9a800;
    border: 1px solid rgba(255, 215, 0, 0.28);
}

.user-mgmt-role-badge.admin {
    background: rgba(137, 237, 147, 0.14);
    color: #43b85a;
    border: 1px solid rgba(137, 237, 147, 0.2);
}

.user-mgmt-role-badge.member {
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.user-mgmt-owner-badge {
    background: rgba(47, 79, 79, 0.08);
    color: #405b5b;
    border: 1px solid rgba(47, 79, 79, 0.14);
}

.user-role-control {
    min-width: 136px;
}

.user-role-select-wrap {
    position: relative;
    min-width: 136px;
}

.user-role-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 40px;
    padding: 0 34px 0 12px;
    border-radius: 10px;
    border: 1px solid #d8dde6;
    background: #fff;
    color: #15202b;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.user-role-select:hover {
    border-color: #bcc5d1;
}

.user-role-select:focus {
    border-color: #89ed93;
    box-shadow: 0 0 0 3px rgba(137, 237, 147, 0.14);
}

.user-role-chevron {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1;
}

.btn-user-remove-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 92, 92, 0.14);
    background: rgba(255, 92, 92, 0.06);
    color: #ff6262;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
    flex-shrink: 0;
}

.btn-user-remove-icon:hover {
    background: rgba(255, 92, 92, 0.12);
    transform: translateY(-1px);
}

.btn-user-remove-icon svg {
    width: 15px;
    height: 15px;
}

.user-role-readonly {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d8dde6;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .user-mgmt-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .user-mgmt-list {
        grid-template-columns: 1fr;
    }

    .user-mgmt-row {
        min-height: unset;
    }
}

.mentor-submission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 400px));
    gap: 20px;
    justify-content: start;
}

.mentor-session-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.mentor-session-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}

.mentor-session-card h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--navy);
}

.mentor-session-title {
    margin-top: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-600);
}

.mentor-session-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: var(--gray-600);
}

.mentor-session-block {
    margin-bottom: 14px;
}

.mentor-session-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.mentor-session-text {
    font-size: 0.9rem;
    color: var(--gray-800);
}

.mentor-session-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .mentor-session-meta {
        grid-template-columns: 1fr;
    }
}

#mentorTrackerTab .mentor-tracker-shell {
    padding: 28px;
}

#mentorTrackerTab .mentor-tracker-header {
    margin-bottom: 24px;
}

#mentorTrackerTab .mentor-tracker-header h3 {
    color: white;
    margin: 0;
    font-size: 1.05rem;
}

#mentorTrackerTab .mentor-tracker-submissions-section {
    width: 100%;
    margin-bottom: 8px;
    color: white;

}

#mentorTrackerTab .mentor-tracker-subtitle {
    font-size: 0.9rem;
    color: white;
    margin: 8px 0 18px;
}

#mentorTrackerTab .mentor-submission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 355px));
    gap: 18px;
    width: 100%;
    justify-content: start;
}

#mentorTrackerTab .mentor-session-card {
    width: 100%;
    max-width: 370px;
}

#mentorTrackerTab .mentor-session-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

#mentorTrackerTab .mentor-session-card h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--navy);
}

#mentorTrackerTab .mentor-session-title {
    margin-top: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-600);
}

#mentorTrackerTab .mentor-session-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    font-size: 0.85rem;
}

#mentorTrackerTab .mentor-session-meta strong {
    color: var(--gray-700);
    font-weight: 600;
}

#mentorTrackerTab .mentor-session-block {
    margin-bottom: 16px;
}

#mentorTrackerTab .mentor-session-label {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    margin-bottom: 6px;
}

#mentorTrackerTab .mentor-session-text {
    font-size: 0.92rem;
    color: var(--gray-800);
}


#mentorTrackerTab .ops-list-panel {
    width: 100%;
    max-width: none;
}

#mentorTrackerTab .ops-list {
    width: 100%;
}

@media (max-width: 768px) {
    #mentorTrackerTab .mentor-submission-grid {
        grid-template-columns: 1fr;
    }

    #mentorTrackerTab .mentor-session-meta {
        grid-template-columns: 1fr;
    }
}

.btn-action-resend {
    background: #f5f7fa;
    border: 1px solid #e0e4ea;
    color: #2d3748;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-resend:hover {
    background: #e9eef5;
    border-color: #cbd5e0;
}

.btn-action-resend:active {
    transform: scale(0.96);
}

.mentor-table-header,
.mentor-table-row {
    display: grid;
    grid-template-columns: 1.1fr 1.35fr 0.9fr 0.8fr 1fr 0.7fr 1fr 110px;
    gap: 16px;
    align-items: center;
    color: white;
}

.mentor-table-header .mentor-col-session-count,
.mentor-table-row .mentor-col-session-count {
    text-align: center;
}

@media (max-width: 1100px) {
    .mentor-table {
        overflow-x: auto;
    }

    .mentor-table-header,
    .mentor-table-row {
        min-width: 1240px;
    }
}

.mentor-table-header {
    min-height: 44px;
    padding: 0 16px;
}

.mentor-table-row {
    min-height: 56px;
    padding: 10px 16px;
}

.mentor-col-name,
.mentor-col-email,
.mentor-col-invited-by,
.mentor-col-topic,
.mentor-col-status,
.mentor-col-session-count,
.mentor-col-date,
.mentor-col-actions,
.mentor-row-name,
.mentor-row-email,
.mentor-row-topic,
.mentor-row-status,
.mentor-row-date,
.mentor-row-confirmed-date,
.mentor-row-actions {
    width: auto;
    min-width: 0;
}

.mentor-row-name,
.mentor-row-email,
.mentor-row-topic,
.mentor-row-status,
.mentor-row-date,
.mentor-row-confirmed-date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mentor-row-actions,
.mentor-col-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.btn-action-resend {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .mentor-table {
        overflow-x: auto;
    }

    .mentor-table-header,
    .mentor-table-row {
        min-width: 1100px;
    }
}

/* Base */
.mentor-col-status {
    font-weight: 600;
}

/* Status colors */
.status-invited {
    color: #f59e0b;
    /* amber */
}

.status-sent {
    color: #3b82f6;
    /* blue */
}

.status-accepted {
    color: #10b981;
    /* green */
}

.status-declined {
    color: #ef4444;
    /* red */
}

.status-expired {
    color: #9ca3af;
    /* gray */
}

.mentor-session-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
}

.mentor-session-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.mentor-session-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #111827;
}

.mentor-session-subtitle {
    margin-top: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
}

.mentor-session-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7280;
    margin-bottom: 4px;
}

.meta-value {
    display: block;
    font-size: 0.92rem;
    color: #111827;
    line-height: 1.45;
    word-break: break-word;
}

.mentor-session-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mentor-session-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7280;
}

.mentor-session-text {
    font-size: 0.94rem;
    color: #111827;
}


.mentor-session-actions button {
    min-height: 40px;
}

@media (max-width: 768px) {
    .mentor-session-meta-grid {
        grid-template-columns: 1fr;
    }
}

.mentor-invite-help {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
}

.mentor-invite-purpose-box {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    line-height: 1.45;
}

#mentorTrackerTab .mentor-session-card {
    gap: 12px;
    padding: 18px;
}

#mentorTrackerTab .mentor-session-card-top {
    margin-bottom: 4px;
}

#mentorTrackerTab .mentor-session-meta-grid {
    gap: 10px 16px;
    margin-bottom: 0;
}

#mentorTrackerTab .mentor-session-block {
    margin-bottom: 0;
}

#mentorTrackerTab .mentor-session-label {
    margin-bottom: 4px;
}



#mentorTrackerTab .mentor-session-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    align-items: start;
}

#mentorTrackerTab .mentor-session-detail {
    min-width: 0;
}

#mentorTrackerTab .mentor-session-detail-wide {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    #mentorTrackerTab .mentor-session-detail-grid {
        grid-template-columns: 1fr;
    }

    #mentorTrackerTab .mentor-session-detail-wide {
        grid-column: auto;
    }
}

.mentor-doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mentor-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #eceff3;
    border-radius: 10px;
    background: #fafbfc;
}

.mentor-doc-badge {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(47, 79, 79, 0.08);
    color: var(--gray-700);
    text-transform: capitalize;
}

.mentor-table-row-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.mentor-table-row-clickable:hover {
    background: rgba(137, 237, 147, 0.06);
}

.mentor-tracker-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mentor-topic-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(137, 237, 147, 0.14);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 10px;
}

.mentor-topic-filter-clear {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.btn-action-view-topic {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--navy);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.mentor-col-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action-view-topic,
.btn-action-resend {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-action-view-topic {
    border: none;
    background: linear-gradient(135deg, #89ed93, #6fdb7d);
    color: #08140b;
    box-shadow: 0 8px 18px rgba(137, 237, 147, 0.16);
}

.btn-action-view-topic:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(137, 237, 147, 0.22);
}

.btn-action-resend {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f3f4f6;
}

.btn-action-resend:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1100px) {
    .mentor-col-actions {
        justify-content: flex-start;
    }
}

.mentor-col-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mentor-col-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* REMOVE THIS BLOCK ❌ */
/*
.mentor-table-row .mentor-col-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mentor-table-row:hover .mentor-col-actions {
    opacity: 1;
}
*/

/* Clean icon buttons */
.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

/* Hover */
.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* Accent colors */
.icon-topic {
    color: #6fdb7d;
}

.icon-resend {
    color: #9ca3af;
}

.icon-topic {
    background: rgba(111, 219, 125, 0.08);
}

.icon-topic:hover {
    background: rgba(111, 219, 125, 0.18);
}

.icon-resend {
    background: rgba(255, 255, 255, 0.04);
}

.confirmation-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.confirmation-modal.hidden {
    display: none;
}

.confirmation-modal-content {
    background: #111;
    padding: 20px;
    border-radius: 12px;
    width: 320px;
    color: white;
}

.confirmation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn-confirmation {
    background: #6fdb7d;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.admin-material-card {
    height: 100%;
    min-height: 260px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e9e9e9;
    box-sizing: border-box;
}


.admin-material-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    min-height: 30px;
}


.admin-material-session-left {
    flex: 1 1 42%;
}

.admin-material-session-center {
    flex: 1 1 42%;
    text-align: center;
}

.admin-material-session-right {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.admin-material-value,
.admin-material-session-title,
.admin-material-session-date,
.admin-material-subtle,
.admin-material-file-name,
.admin-material-file-subtext,
.admin-material-description {
    word-break: break-word;
}

.admin-material-session-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

@media (max-width: 768px) {
    .admin-material-session-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-material-session-center {
        text-align: left;
    }

    .admin-material-session-right {
        justify-content: flex-start;
    }
}

.admin-material-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.admin-material-type-badge.is-file {
    background: rgba(47, 79, 79, 0.08);
    color: var(--blue);
}

.admin-material-type-badge.is-link {
    background: rgba(253, 126, 20, 0.12);
    color: #8a4a08;
}

.admin-material-body {
    min-height: 20px;
    display: flex;
    align-items: flex-start;
}

.admin-material-file-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--navy);
    word-break: break-word;
}

.admin-material-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.material-file-label {
    min-width: 0;
    flex: 1;
    line-height: 1.45;
}

.material-actions {
    flex-shrink: 0;
}

.admin-material-session-title,
.admin-material-value,
.admin-material-subtle,
.material-file-label {
    overflow-wrap: anywhere;
}

.admin-material-body .admin-material-session-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 800;

}

.admin-material-file-subtext {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--gray-600);
}

.admin-material-description {
    margin-top: 12px !important;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .admin-material-session-head {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .admin-material-session-center {
        text-align: left;
    }
}

.admin-material-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 10px;
    padding: 0 4px;
}

.admin-material-group-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.admin-material-group-date {
    font-size: 0.84rem;
    color: var(--gray-400);
}

.admin-material-subtle {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--gray-600);
}

#materialsList,
.materials-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    align-items: stretch;
}



@media (max-width: 768px) {
    #materialsList {
        grid-template-columns: 1fr;
    }
}

.materials-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.materials-toolbar label {
    font-size: 13px;
    color: var(--gray-600);
}

.materials-toolbar select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.materials-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.materials-sort-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.materials-sort-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-pill {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #444;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-pill:hover {
    background: #f1f5f9;
}

.mentor-session-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    transition: all 0.2s ease;
}

/* collapsed state */
.mentor-session-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* show 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* button */
.mentor-session-toggle {
    margin-top: 6px;
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.mentor-session-toggle:hover {
    text-decoration: underline;
}

.doc-hidden {
    display: none;
}

.mentor-doc-wrapper {
    transition: all 0.2s ease;
}

.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.custom-modal-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.custom-modal-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.custom-modal-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

.custom-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.mentor-session-actions button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.mentor-session-card-loading {
    position: relative;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-danger:hover {
    background: #b91c1c;
}

.mentor-submission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 400px));
    gap: 20px;
    justify-content: start;
}

.mentor-session-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.mentor-session-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}

.mentor-session-card h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--navy);
}

.mentor-session-title {
    margin-top: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gray-600);
}

.mentor-session-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: var(--gray-600);
}

.mentor-session-block {
    margin-bottom: 14px;
}

.mentor-session-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.mentor-session-text {
    font-size: 0.9rem;
    color: var(--gray-800);
}

@media (max-width: 768px) {
    .mentor-session-meta {
        grid-template-columns: 1fr;
    }
}

#mentorTrackerTab .mentor-tracker-shell {
    padding: 28px;
}

#mentorTrackerTab .mentor-tracker-header {
    margin-bottom: 24px;
}

#mentorTrackerTab .mentor-tracker-header h3 {
    color: white;
    margin: 0;
    font-size: 1.05rem;
}

#mentorTrackerTab .mentor-tracker-submissions-section {
    width: 100%;
    margin-bottom: 8px;
    color: white;

}

#mentorTrackerTab .mentor-tracker-subtitle {
    font-size: 0.9rem;
    color: white;
    margin: 8px 0 18px;
}


#mentorTrackerTab .mentor-session-card {
    width: 100%;
    max-width: 370px;
}

#mentorTrackerTab .mentor-session-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

#mentorTrackerTab .mentor-session-card h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--navy);
}

#mentorTrackerTab .mentor-session-title {
    margin-top: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-600);
}

#mentorTrackerTab .mentor-session-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    font-size: 0.85rem;
}

#mentorTrackerTab .mentor-session-meta strong {
    color: var(--gray-700);
    font-weight: 600;
}

#mentorTrackerTab .mentor-session-block {
    margin-bottom: 16px;
}

#mentorTrackerTab .mentor-session-label {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    margin-bottom: 6px;
}

#mentorTrackerTab .mentor-session-text {
    font-size: 0.92rem;
    color: var(--gray-800);
}


#mentorTrackerTab .ops-list-panel {
    width: 100%;
    max-width: none;
}

#mentorTrackerTab .ops-list {
    width: 100%;
}

@media (max-width: 768px) {
    #mentorTrackerTab .mentor-submission-grid {
        grid-template-columns: 1fr;
    }

    #mentorTrackerTab .mentor-session-meta {
        grid-template-columns: 1fr;
    }
}

.btn-action-resend {
    background: #f5f7fa;
    border: 1px solid #e0e4ea;
    color: #2d3748;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-resend:hover {
    background: #e9eef5;
    border-color: #cbd5e0;
}

.btn-action-resend:active {
    transform: scale(0.96);
}

.mentor-table-header,
.mentor-table-row {
    display: grid;
    grid-template-columns: 1.1fr 1.35fr 0.9fr 0.8fr 1fr 0.7fr 1fr 110px;
    gap: 16px;
    align-items: center;
    color: white;
}

.mentor-table-header .mentor-col-session-count,
.mentor-table-row .mentor-col-session-count {
    text-align: center;
}

@media (max-width: 1100px) {
    .mentor-table {
        overflow-x: auto;
    }

    .mentor-table-header,
    .mentor-table-row {
        min-width: 1240px;
    }
}

.mentor-table-header {
    min-height: 44px;
    padding: 0 16px;
    background-color: #323232;
}

.mentor-table-row {
    min-height: 56px;
    padding: 10px 16px;
}

.mentor-col-name,
.mentor-col-email,
.mentor-col-invited-by,
.mentor-col-topic,
.mentor-col-status,
.mentor-col-session-count,
.mentor-col-date,
.mentor-col-actions,
.mentor-row-name,
.mentor-row-email,
.mentor-row-topic,
.mentor-row-status,
.mentor-row-date,
.mentor-row-confirmed-date,
.mentor-row-actions {
    width: auto;
    min-width: 0;
}

.mentor-row-name,
.mentor-row-email,
.mentor-row-topic,
.mentor-row-status,
.mentor-row-date,
.mentor-row-confirmed-date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mentor-row-actions,
.mentor-col-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.btn-action-resend {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .mentor-table {
        overflow-x: auto;
    }

    .mentor-table-header,
    .mentor-table-row {
        min-width: 1100px;
    }
}

/* Base */
.mentor-col-status {
    font-weight: 600;
}

/* Status colors */
.status-invited {
    color: #f59e0b;
    /* amber */
}

.status-sent {
    color: #3b82f6;
    /* blue */
}

.status-accepted {
    color: #10b981;
    /* green */
}

.status-declined {
    color: #ef4444;
    /* red */
}

.status-expired {
    color: #9ca3af;
    /* gray */
}

.mentor-session-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
}

.mentor-session-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.mentor-session-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #111827;
}

.mentor-session-subtitle {
    margin-top: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
}

.mentor-session-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7280;
    margin-bottom: 4px;
}

.meta-value {
    display: block;
    font-size: 0.92rem;
    color: #111827;
    line-height: 1.45;
    word-break: break-word;
}

.mentor-session-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mentor-session-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7280;
}

.mentor-session-text {
    font-size: 0.94rem;
    color: #111827;
}


.mentor-session-actions button {
    min-height: 40px;
}

@media (max-width: 768px) {
    .mentor-session-meta-grid {
        grid-template-columns: 1fr;
    }
}

.mentor-invite-help {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
}

.mentor-invite-purpose-box {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    line-height: 1.45;
}

#mentorTrackerTab .mentor-session-card {
    gap: 12px;
    padding: 18px;
}

#mentorTrackerTab .mentor-session-card-top {
    margin-bottom: 4px;
}

#mentorTrackerTab .mentor-session-meta-grid {
    gap: 10px 16px;
    margin-bottom: 0;
}

#mentorTrackerTab .mentor-session-block {
    margin-bottom: 0;
}

#mentorTrackerTab .mentor-session-label {
    margin-bottom: 4px;
}



#mentorTrackerTab .mentor-session-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    align-items: start;
}

#mentorTrackerTab .mentor-session-detail {
    min-width: 0;
}

#mentorTrackerTab .mentor-session-detail-wide {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    #mentorTrackerTab .mentor-session-detail-grid {
        grid-template-columns: 1fr;
    }

    #mentorTrackerTab .mentor-session-detail-wide {
        grid-column: auto;
    }
}

.mentor-doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mentor-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #eceff3;
    border-radius: 10px;
    background: #fafbfc;
}

.mentor-doc-badge {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(47, 79, 79, 0.08);
    color: var(--gray-700);
    text-transform: capitalize;
}

.mentor-table-row-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.mentor-table-row-clickable:hover {
    background: rgba(137, 237, 147, 0.06);
}

.mentor-tracker-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mentor-topic-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(137, 237, 147, 0.14);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 10px;
}

.mentor-topic-filter-clear {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.btn-action-view-topic {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--navy);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.mentor-col-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action-view-topic,
.btn-action-resend {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-action-view-topic {
    border: none;
    background: linear-gradient(135deg, #89ed93, #6fdb7d);
    color: #08140b;
    box-shadow: 0 8px 18px rgba(137, 237, 147, 0.16);
}

.btn-action-view-topic:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(137, 237, 147, 0.22);
}

.btn-action-resend {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f3f4f6;
}

.btn-action-resend:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1100px) {
    .mentor-col-actions {
        justify-content: flex-start;
    }
}

.mentor-col-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mentor-col-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* REMOVE THIS BLOCK ❌ */
/*
.mentor-table-row .mentor-col-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mentor-table-row:hover .mentor-col-actions {
    opacity: 1;
}
*/

/* Clean icon buttons */
.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

/* Hover */
.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* Accent colors */
.icon-topic {
    color: #6fdb7d;
}

.icon-resend {
    color: #9ca3af;
}

.icon-topic {
    background: rgba(111, 219, 125, 0.08);
}

.icon-topic:hover {
    background: rgba(111, 219, 125, 0.18);
}

.icon-resend {
    background: rgba(255, 255, 255, 0.04);
}

.confirmation-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.confirmation-modal.hidden {
    display: none;
}

.confirmation-modal-content {
    background: #111;
    padding: 20px;
    border-radius: 12px;
    width: 320px;
    color: white;
}

.confirmation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn-confirmation {
    background: #6fdb7d;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}


.admin-material-session-left,
.admin-material-session-center,
.admin-material-session-right {
    min-width: 0;
}

.admin-material-session-left {
    flex: 1 1 42%;
}

.admin-material-session-center {
    flex: 1 1 42%;
    text-align: center;
}

.admin-material-session-right {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.admin-material-value,
.admin-material-session-title,
.admin-material-session-date,
.admin-material-subtle,
.admin-material-file-name,
.admin-material-file-subtext,
.admin-material-description {
    word-break: break-word;
}

@media (max-width: 768px) {
    .admin-material-session-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-material-session-center {
        text-align: left;
    }

    .admin-material-session-right {
        justify-content: flex-start;
    }
}

.admin-material-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.admin-material-type-badge.is-file {
    background: rgba(47, 79, 79, 0.08);
    color: var(--blue);
}

.admin-material-type-badge.is-link {
    background: rgba(253, 126, 20, 0.12);
    color: #8a4a08;
}

.admin-material-file-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--navy);
    word-break: break-word;
}

.admin-material-file-subtext {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--gray-600);
}

.admin-material-description {
    margin-top: 12px !important;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .admin-material-session-head {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .admin-material-session-center {
        text-align: left;
    }
}

.admin-material-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 10px;
    padding: 0 4px;
}

.admin-material-group-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.admin-material-group-date {
    font-size: 0.84rem;
    color: var(--gray-400);
}

.admin-material-subtle {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--gray-600);
}



@media (max-width: 768px) {
    #materialsList {
        grid-template-columns: 1fr;
    }
}

.materials-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.materials-toolbar label {
    font-size: 13px;
    color: var(--gray-600);
}

.materials-toolbar select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.materials-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.materials-sort-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.materials-sort-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-pill {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #444;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-pill:hover {
    background: #f1f5f9;
}

.sort-pill.active {
    background: linear-gradient(135deg, #89ed93, #7dcf85);
    color: white;
    border-color: transparent;
}

.mentor-session-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    transition: all 0.2s ease;
}

/* collapsed state */
.mentor-session-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* show 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* button */
.mentor-session-toggle {
    margin-top: 6px;
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.mentor-session-toggle:hover {
    text-decoration: underline;
}

.doc-hidden {
    display: none;
}

.mentor-doc-wrapper {
    transition: all 0.2s ease;
}

.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.custom-modal-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.custom-modal-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.custom-modal-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

.custom-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.mentor-session-actions button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.mentor-session-card-loading {
    position: relative;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-danger:hover {
    background: #b91c1c;
}

.sidebar-back-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #999;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 4px 10px;
    margin-bottom: 6px;
    transition: color 0.18s ease;
}

.sidebar-back-btn:hover {
    color: #89ed93;
}

.admin-home-section {
    padding: 32px;
}

.admin-home-shell {
    width: 100%;
    margin: 0 auto;
}

.admin-home-header {
    margin-bottom: 28px;
}

.admin-home-kicker {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #89ed93;
}

.admin-home-header h2 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

.admin-home-subtitle {
    margin: 10px 0 0;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.96rem;
    line-height: 1.6;
}


.admin-home-container {
    width: 100%;
    max-width: 100%;
    /* remove any limit */
    padding: 20px 32px;
    margin: 0;
    /* remove auto centering */
}

.admin-home-card {
    width: 100%;
    height: 100%;
}

.admin-home-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
    .admin-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.admin-home-tile {
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #1d1d1d 0%, #171717 100%);
    border-radius: 18px;
    padding: 22px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    color: #fff;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-home-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(137, 237, 147, 0.32);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.admin-home-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(137, 237, 147, 0.12);
    color: #89ed93;
    font-size: 1.4rem;
}

.admin-home-tile-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #fff;
}

.admin-home-tile-text {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 34ch;
}

@media (max-width: 768px) {
    .admin-home-section {
        padding: 20px 16px 24px;
    }

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

    .admin-home-header h2 {
        font-size: 1.55rem;
    }

    .admin-home-tile {
        min-height: 150px;
    }
}

#mentorSessionModalOverlay .mentor-session-modal {
    background: #161616;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    padding-bottom: 0 !important;

}

#mentorSessionModalOverlay .mentor-session-modal .modal-header {
    background: #1d1d1d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

#mentorSessionModalOverlay .mentor-session-modal .modal-header h2 {
    color: #fff;
}

#mentorSessionModalOverlay .mentor-session-modal .modal-close {
    color: rgba(255, 255, 255, 0.7);
}

#mentorSessionModalOverlay .mentor-session-modal .modal-close:hover {
    color: #89ed93;
}

#mentorSessionModalOverlay .mentor-session-modal .modal-body {
    background: #161616;
    color: #fff;
    overflow-y: auto;
    flex: 1;
    padding-bottom: 0;
}

#mentorSessionModalOverlay .mentor-session-modal .materials-form-actions {
    position: sticky;
    bottom: 0;
    margin: 0;
    /* important */
    background: #161616;
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    z-index: 10;
}

#mentorSessionModalOverlay .mentor-session-modal .detail-section h3 {
    color: #89ed93;
}

#mentorSessionModalOverlay .mentor-session-modal .detail-label {
    color: rgba(255, 255, 255, 0.62);
}

#mentorSessionModalOverlay .mentor-session-modal .detail-value {
    color: #fff;
}

#mentorSessionModalOverlay .mentor-session-modal .detail-value.long-text {
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
}

#mentorSessionModalOverlay .mentor-session-modal .mentor-doc-item {
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#mentorSessionModalOverlay .mentor-session-modal .mentor-doc-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
}

#mentorSessionModalOverlay .mentor-session-modal .materials-field label {
    color: rgba(255, 255, 255, 0.78);
}

#mentorSessionModalOverlay .mentor-session-modal .materials-field input,
#mentorSessionModalOverlay .mentor-session-modal .materials-field textarea,
#mentorSessionModalOverlay .mentor-session-modal .materials-field select {
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

#mentorSessionModalOverlay .mentor-session-modal .materials-field input:focus,
#mentorSessionModalOverlay .mentor-session-modal .materials-field textarea:focus,
#mentorSessionModalOverlay .mentor-session-modal .materials-field select:focus {
    border-color: #89ed93;
    box-shadow: 0 0 0 3px rgba(137, 237, 147, 0.12);
    outline: none;
}

#mentorSessionModalOverlay .mentor-session-modal .btn-secondary-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

#mentorSessionModalOverlay .mentor-session-modal .btn-secondary-action:hover {
    background: rgba(255, 255, 255, 0.1);
}

#mentorSessionModalOverlay .mentor-session-modal .btn-material-primary {
    background: linear-gradient(135deg, #89ed93, #6fdb7d);
    color: #08140b;
    border: none;
}

#mentorSessionModalOverlay .mentor-session-modal .ops-notice.success {
    background: rgba(137, 237, 147, 0.14);
    color: #89ed93;
    border-color: rgba(137, 237, 147, 0.28);
}

#mentorSessionModalOverlay .mentor-session-modal .ops-notice.error {
    background: rgba(255, 92, 92, 0.10);
    color: #ff8a8a;
    border-color: rgba(255, 92, 92, 0.22);
}

.email-compose-link-mentor {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

#mentorInviteForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 24px 0;
    overflow-y: auto;
}

.mentor-invite-intro {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(137,237,147,0.10), rgba(137,237,147,0.04));
    border: 1px solid rgba(137,237,147,0.18);
}

.mentor-invite-intro-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(137,237,147,0.14);
    color: #89ed93;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.mentor-invite-intro h4 {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #fff;
}

.mentor-invite-intro p {
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 0.88rem;
    line-height: 1.5;
}

.mentor-invite-section-title {
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #89ed93;
}

#mentorInviteForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

#mentorInviteForm > .mentor-invite-intro,
#mentorInviteForm > .mentor-invite-section-title,
#mentorInviteForm > #mentorInviteNotice,
#mentorInviteForm > #mentorInviteLinkBox,
#mentorInviteForm > .materials-form-actions {
    grid-column: 1 / -1;
}

.mentor-invite-field {
    padding: 0;
    margin: 0;
}

.mentor-invite-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.2px;
}

.mentor-invite-field input,
.mentor-invite-field select,
.mentor-invite-field textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    background: #1f1f1f;
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    padding: 12px 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-sizing: border-box;
}

.mentor-invite-field textarea {
    min-height: 116px;
    resize: vertical;
}

.mentor-invite-field input::placeholder,
.mentor-invite-field textarea::placeholder {
    color: rgba(255,255,255,0.34);
}

.mentor-invite-field input:focus,
.mentor-invite-field select:focus,
.mentor-invite-field textarea:focus {
    outline: none;
    border-color: #89ed93;
    box-shadow: 0 0 0 3px rgba(137,237,147,0.14);
    background: #232323;
}

.mentor-invite-field:has(textarea) {
    grid-column: 1 / -1;
}

#mentorInviteNotice.ops-notice {
    margin: 0;
}

#mentorInviteLinkBox {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

#mentorInviteLinkDisplay {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    color: #d1d5db;
    font-size: 0.84rem;
    word-break: break-all;
}

#mentorInviteForm .materials-form-actions {
    position: sticky;
    bottom: 0;
    margin: 0 -24px 0;
    padding: 16px 24px;
    background: #161616;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    z-index: 5;
}

#mentorInviteForm .btn-secondary-action {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
}

#mentorInviteForm .btn-secondary-action:hover {
    background: rgba(255,255,255,0.10);
}

#mentorInviteForm .btn-material-primary {
    background: linear-gradient(135deg, #89ed93, #6fdb7d);
    color: #08140b;
    border: none;
    box-shadow: 0 10px 24px rgba(137,237,147,0.18);
}

#mentorInviteForm .btn-material-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(137,237,147,0.24);
}

@media (max-width: 760px) {
    .mentor-invite-modal {
        width: min(100vw, 100vw);
        max-height: 100dvh;
        border-radius: 18px 18px 0 0;
    }

    #mentorInviteForm {
        grid-template-columns: 1fr;
        padding: 18px 18px 0;
    }

    #mentorInviteForm .materials-form-actions {
        margin: 0 -18px 0;
        padding: 14px 18px;
        flex-direction: column-reverse;
    }

    #mentorInviteForm .btn-secondary-action,
    #mentorInviteForm .btn-material-primary {
        width: 100%;
    }
}