@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.btn-link {
    color: white;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Navigation items */
.nav-item {
    color: black;
    border-bottom: 1px solid #e0e0e0;
}

    .nav-item:first-of-type {
        margin-top: 1.4rem;
    }

    .nav-item:last-of-type {
        margin-bottom: 1rem;
        border-bottom: none;
    }

/* Navigation links */
.nav-link {
    color: black !important;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

    .nav-link.active, .nav-link.active:hover {
        color: black !important;
        background-color: #E8E8E8;
        font-weight: bold !important;
        text-decoration: underline !important;
    }

    .nav-link:hover {
        color: black !important;
        background-color: #F0F0F0;
    }

    .nav-item:first-of-type .nav-link:hover {
        border-radius: 6px 6px 0 0;
    }
    .nav-item:last-of-type .nav-link:hover {
        border-radius: 0 0 6px 6px;
    }

/* Administration toggle button */
.admin-toggle {
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: black;
    background-color: transparent;
    transition: background-color 0.15s ease-in-out;
}

.admin-toggle:hover {
    background-color: #F0F0F0;
}

.admin-toggle:focus {
    outline: 2px solid #1b6ec2;
    outline-offset: -2px;
}

.admin-toggle:focus:not(:focus-visible) {
    outline: none;
}

.admin-toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}

    .admin-toggle-icon.collapsed {
        transform: rotate(-90deg);
    }

    .admin-toggle-icon.expanded {
        transform: rotate(-180deg);
    }

/* Active state for admin toggle when any admin page is active */
.admin-toggle.has-active-child {
    font-weight: bold;
    background-color: #F6F6F6;
    cursor: auto;
}

.admin-toggle.has-active-child:hover {
    background-color: #F6F6F6;
}

/* Admin submenu styling */
.admin-submenu {
    padding: 0;
    margin: 0;
}

.admin-submenu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 10px;
    border-inline-start: 3px solid #A51417;
}

.admin-submenu-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}
    .admin-submenu-item:last-of-type {
        border-bottom: none;
    }

.admin-sublink {
    padding-inline-start: 1.5rem !important;
}

.washu-logo-b {
}

.washu-logo-c {
    fill: #2c5234;
}

.washu-logo-d {
    fill: #ba0c2f;
}

.code-style {
    /*    font-size: 20px;
    line-height: 28px;*/
    background-color: black;
    color: floralwhite;
}


#navtop {
    background-color: rgb(61, 61, 61);
    color: white;
    padding-left: unset;
    padding: unset;
}

#tablecheckbox {
    text-align: center;
    vertical-align: middle;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#LinkToSource {
    color: red
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}


#washu-branding {
    width: 100%;
    height: 95px;
    overflow: hidden;
}

#washu-branding-container {
    padding-left: 15px;
    margin-left: 0px;
    /*padding-top: 15px*/
}

/* removes lastpass icon */
div[data-lastpass-icon-root] {
    display: none !important;
}

/* removes lastpass iframe dropdown */
div[data-lastpass-root] {
    display: none !important;
}

#toprow {
    background-color: #ba0c2f;
}

.spinner {
    border: 16px solid silver;
    border-top: 16px solid #337AB7;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 40%;
    left: 55%;
    position: absolute;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.warning-message {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    padding: 0.625rem;
    border-radius: 0.25rem;
    margin-block-start: 1rem;
    font-weight: 500;
}

.info-message {
    color: #004085;
    background-color: #cce5ff;
    border: 1px solid #b8daff;
    padding: 0.625rem;
    border-radius: 0.25rem;
    margin-block-start: 1rem;
    font-weight: 500;
}

.search-box {
    margin: 0.5rem 0;
}

.search-box input[type="search"],
.search-box select {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.search-box input[type="search"]:focus,
.search-box select:focus {
    border-color: #1b6ec2;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(27, 110, 194, 0.25);
}

/* Search container */
.search-container {
    display: inline-block;
}

/* Data table styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-block-start: 1rem;
    font-size: 0.875rem; /* Smaller font size (14px) */
}

.data-table thead {
    background-color: #f8f9fa;
    border-block-end: 2px solid #dee2e6;
}

.data-table th {
    padding: 0.5rem; /* Reduced from 0.75rem */
    text-align: start;
    font-weight: 600;
    border-block-end: 1px solid #dee2e6;
}

.data-table td {
    padding: 0.5rem; /* Reduced from 0.75rem */
    border-block-end: 1px solid #dee2e6;
}

/* Alternating row backgrounds */
.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Full row hover highlighting */
.data-table tbody tr {
    transition: background-color 0.15s ease-in-out;
}

.data-table tbody tr:hover {
    background-color: #e9ecef;
    cursor: pointer;
}

/* Non-clickable table rows (like Academic Details) should not appear clickable */
.data-table.non-clickable tbody tr:hover {
    background-color: transparent;
    cursor: default;
}

.data-table.non-clickable tbody tr:nth-child(even):hover {
    background-color: #f8f9fa;
}

/* Highlight recently modified row */
.data-table tbody tr.recently-modified {
    background-color: #fff3cd !important;
}

/* Prevent hover on checkbox cell */
.data-table tbody tr td:first-child {
    cursor: default;
}

/* Checkbox column width */
.data-table th:first-child,
.data-table td:first-child {
    width: 3rem;
    text-align: center;
}

/* Make checkbox cells not trigger row hover cursor */
.data-table tbody tr td:first-child input[type="checkbox"] {
    cursor: pointer;
}

/* Comment icon button in recommendations table */
.comment-icon-btn {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    line-height: 1;
    border: none;
    background: transparent;
    color: #1b6ec2;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
}

.comment-icon-btn:hover {
    color: #155a9c;
    text-decoration: none;
}

.comment-icon-btn:focus {
    outline: 2px solid #1b6ec2;
    outline-offset: 2px;
}

/* Modal styling */
.modal-backdrop-overlay {
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.fade.show {
    display: block;
    opacity: 1;
    transition: opacity 0.15s linear;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-content {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-block-end: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.modal-title {
    margin-block-end: 0;
    line-height: 1.5;
}

.modal-body {
    padding: 1.5rem;
    position: relative;
    flex: 1 1 auto;
}

.modal-footer {
    border-block-start: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

/* Comment text formatting - preserves line breaks while wrapping long lines */
.comment-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-block-end: 0;
}

/* Form page condensed styling */
.form-page h3 {
    font-size: 1.5rem; /* Reduced from default ~2rem */
    margin-block-end: 0.75rem;
}

.form-page h4 {
    font-size: 1.25rem; /* Reduced from default ~1.5rem */
    margin-block-end: 0.5rem;
}

.form-page .form-control,
.form-page .form-select {
    font-size: 0.875rem; /* Smaller form inputs */
    padding: 0.375rem 0.5rem; /* Reduced padding */
}

.form-page label {
    font-size: 0.875rem; /* Smaller labels */
    margin-block-end: 0.25rem;
}

.form-page .btn {
    font-size: 0.875rem; /* Smaller buttons */
    padding: 0.375rem 0.75rem;
}

.form-page .card {
    font-size: 0.875rem;
}

/* Condensed spacing for form fields */
.form-page .condensed-field {
    margin-block-end: 0.75rem;
}

/* Student detail page styling */
.student-detail-page .condensed-field {
    margin-block-end: 0.75rem;
}

/* Section card - card-style container for sections */
.section-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.25rem;
    margin-block-end: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Section header - smaller than h4 */
.section-header {
    font-size: 1.125rem; /* Smaller than h4 (1.5rem), slightly larger than h5 (1.25rem) */
    font-weight: 600;
    margin-block-end: 1rem;
    color: #212529;
}

/* Info grid section - aligned labels and values */
.info-grid {
    display: inline-grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    margin-block-end: 0.75rem;
    font-size: 0.875rem; /* Smaller font size (14px) */
}

/* Larger font size variant for cycle info section */
.info-grid.cycle-info-large {
    font-size: 1.05rem;
}

.info-grid-row {
    display: contents;
}

.info-grid-label {
    font-weight: 600;
    text-align: end;
}

/* Add bottom padding to the close for review section */
.close-for-review-section {
    padding-block-end: 2rem;
}

/* Program Review page styling - matching student search page */
.program-review-page h3 {
    font-size: 1.5rem; /* Reduced from default ~2rem */
    margin-block-end: 0.75rem;
}

.program-review-page h6 {
    font-size: 1rem; /* Smaller headings */
    margin-block-end: 0.5rem;
}

.program-review-page .description-text {
    font-size: 0.875rem; /* Smaller description text */
    margin-block-end: 1rem;
}

.program-review-page .program-count-text {
    font-size: 0.875rem;
    color: #0c5460; /* Bootstrap info color */
}

.program-review-page .card {
    font-size: 0.875rem;
}

.program-review-page .card-header {
    padding: 0.5rem 1rem; /* Further reduced padding from 0.75rem to 0.5rem */
}

.program-review-page .card-body {
    padding: 1rem; /* Reduced padding */
}

.program-review-page .btn {
    font-size: 0.875rem; /* Smaller buttons */
    padding: 0.375rem 0.75rem;
}

.program-review-page .alert {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

/* Accessible clickable table rows for Program Review recommendations */
.clickable-recommendation-row {
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.clickable-recommendation-row:hover {
    background-color: #e9ecef;
}

.clickable-recommendation-row:focus {
    outline: 2px solid #1b6ec2;
    outline-offset: -2px;
    background-color: #d3e5f5;
}

.clickable-recommendation-row:focus:not(:focus-visible) {
    outline: none;
}

.clickable-recommendation-row:active {
    background-color: #c8ddf2;
}

/* Collapsible program header styles */
.collapsible-program-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease-in-out;
}

.collapsible-program-header:hover {
    background-color: #155a9c !important;
}

.collapsible-program-header:focus {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

.collapsible-program-header:focus:not(:focus-visible) {
    outline: none;
}

.collapsible-program-header .collapse-icon {
    font-size: 0.875rem;
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

.collapsible-program-header .recommendation-count {
    font-size: 0.875rem;
    font-weight: normal;
}

/* Logout Confirmation and No Access Pages */
.logout-confirmation-page,
.no-access-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-block-size: 60vh;
    padding-block: 2rem;
}

.confirmation-container,
.access-denied-container {
    max-inline-size: 600px;
    text-align: center;
    padding-block: 2rem;
    padding-inline: 1.5rem;
}

.confirmation-icon,
.access-denied-icon {
    color: #1b6ec2;
    margin-block-end: 1.5rem;
}

.confirmation-icon svg,
.access-denied-icon svg {
    inline-size: 64px;
    block-size: 64px;
}

.confirmation-container h1,
.access-denied-container h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-block-end: 1rem;
    color: #333;
}

.confirmation-message,
.access-denied-message {
    font-size: 1.125rem;
    color: #666;
    margin-block-end: 2rem;
    line-height: 1.6;
}

.access-info {
    background-color: #f8f9fa;
    padding-block: 1.5rem;
    padding-inline: 1.5rem;
    border-radius: 0.5rem;
    margin-block-end: 2rem;
}

.access-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-block-end: 0.75rem;
    color: #333;
}

.access-info p {
    margin-block-end: 0.5rem;
    color: #666;
}

.contact-info {
    margin-block-start: 1rem;
    padding-block-start: 1rem;
    border-block-start: 1px solid #dee2e6;
}

.contact-email {
    color: #1b6ec2;
    text-decoration: none;
    font-weight: 500;
}

.contact-email:hover {
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-block-end: 2rem;
}

.action-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-buttons svg {
    inline-size: 16px;
    block-size: 16px;
}

.additional-info {
    padding-block-start: 1rem;
    border-block-start: 1px solid #dee2e6;
}

.additional-info .text-muted {
    font-size: 0.875rem;
}

/* Toast notification styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    padding: 15px 20px;
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 2.5s;
    animation-fill-mode: forwards;
}

.toast-notification.error {
    background-color: #dc3545;
}

.toast-notification.warning {
    background-color: #ffc107;
    color: #000;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: var(--bs-breakpoint-sm, 576px)) {
    .action-buttons {
        flex-direction: column;
    }
        .action-buttons .btn {
            inline-size: 100%;
        }

    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* Blazor Reconnection UI - Hidden for brief glitches */
.components-reconnect-hide {
    display: none;
}

.components-reconnect-show,
.components-reconnect-failed,
.components-reconnect-rejected {
    display: block;
}

/*
 * Delay showing the reconnection overlay for 3 seconds to hide brief network glitches.
 * Uses CSS animation with animation-delay so the modal fades in smoothly after the delay.
 * If connection is restored within 3 seconds, the class changes and modal never appears.
 * 
 * IMPORTANT: pointer-events: none prevents the invisible overlay from blocking user
 * interaction during the delay. The animation enables pointer-events when it completes.
 */
.components-reconnect-show .reconnect-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Start invisible AND non-interactive, animate to visible+interactive after 3s delay */
    opacity: 0;
    pointer-events: none;
    animation: reconnect-fade-in 0.3s ease-out 3s forwards;
}

/* Failed/rejected states show immediately (no delay) since user action is required */
.components-reconnect-failed .reconnect-overlay,
.components-reconnect-rejected .reconnect-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    animation: none;
}

@keyframes reconnect-fade-in {
    to { 
        opacity: 1; 
        pointer-events: auto;
    }
}

.reconnect-dialog {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-inline-size: 320px;
}

.reconnect-content p {
    margin: 1rem 0 0;
    color: #333;
    font-size: 0.95rem;
}

.reconnect-content .spinner {
    inline-size: 40px;
    block-size: 40px;
    border: 3px solid #e0e0e0;
    border-block-start-color: #1b6ec2;
    border-radius: 50%;
    margin-inline: auto;
    animation: reconnect-spin 0.8s linear infinite;
}

@keyframes reconnect-spin {
    to { transform: rotate(360deg); }
}

/* Hide spinner and show reload button for failed/rejected states */
.components-reconnect-failed .spinner,
.components-reconnect-rejected .spinner {
    display: none;
}

.reconnect-reload-btn {
    display: none;
    margin-block-start: 1rem;
}

.components-reconnect-failed .reconnect-reload-btn,
.components-reconnect-rejected .reconnect-reload-btn {
    display: inline-block;
}

/* Update message text for failed/rejected states */
.components-reconnect-failed .reconnect-message::after {
    content: " Unable to reconnect.";
    font-weight: 600;
}

.components-reconnect-rejected .reconnect-message::after {
    content: " Session expired.";
    font-weight: 600;
}