/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

:root {
/*    --navbar-height: 3.5rem;*/
}

/** --- Desktop / Base Styling --- */
.nav-logo-item {
    list-style: none;
    display: inline-block;
    vertical-align: middle;
}

.nav-about-link {
    align-items: center;
    color: var(--bs-white);
    display: flex;
    height: 40px;
    justify-content: center;
    margin-right: 12px;
    opacity: 0.9;
    padding: 0 0.25rem;
    text-decoration: none;
}

.nav-about-link:hover,
.nav-about-link:focus {
    color: var(--bs-white);
    opacity: 1;
}

.nav-about-icon {
    font-size: 1.55rem;
    line-height: 1;
}

.nav-home-link {
    min-width: 2.25rem;
    text-align: center;
}

.nav-message-link {
    min-width: 2.5rem;
    position: relative;
    text-align: center;
}

.nav-message-badge {
    font-size: 0.6rem;
    position: absolute;
    right: -0.15rem;
    top: 0.1rem;
}

/* Hide mobile version on desktop */
.mobile-only {
    display: none !important;
}

/* --- Small Devices (Mobile) --- */
@media (max-width: 768px) {
    /* 1. Hide the desktop version */
    .desktop-only {
        display: none !important;
    }

    /* 2. Show and pin the mobile version */
    .nav-logo-item.mobile-only {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 3px; /* Fixed distance from top instead of 50% to avoid toggle shift */
        transform: none;
        z-index: 1001; /* Ensure it stays above the collapsing menu */
    }

    .nav-about-link {
        height: 34px;
        margin-right: 0;
    }

    .nav-about-icon {
        font-size: 1.5rem;
    }
}

p {
/*    margin-top: 1.5rem;  
    margin-bottom: 1.5rem;*/
}

/*Prevents clipping of absolutely positioned pseudo-elements such as custom-tooltip */

th {
    overflow: visible !important;
}

/*///////////////////*/

.js-enabled {
    display: none; /* Hidden by default */
}

.table-fixed {
    table-layout: fixed;
    width: 100%;
    margin-top: 10px;
    /* Prevents the table from ever exceeding the parent container's width */
    max-width: 100%;
    /* Ensures words wrap instead of pushing the table width out */
    word-wrap: break-word;
    overflow: hidden;
}

@media (max-width: 768px) {
    .table-fixed {
        margin-top: 20px;
    }
}


a.text-decoration-none:hover {
    text-decoration: underline;
}
.form-control {
    margin-bottom: 1.5rem; /* Adjust the value as needed (e.g., 24px) */
}

.search-inline-row,
.search-input-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-inline-row .form-control,
.search-inline-row .input-field,
.search-input-row .form-control,
.search-input-row .input-field {
    margin-bottom: 0;
    min-height: calc(1.5em + .75rem + 2px);
}

.search-inline-row .btn,
.search-inline-row .aes-button,
.search-input-row .btn,
.search-input-row .aes-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    min-height: calc(1.5em + .75rem + 2px);
    white-space: nowrap;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Recording */
.recording-ui {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0px;
    margin-bottom: 2px;
}

#recording-timer {
    font-weight: bold;
    margin-left: 10px;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.recording-ui {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0px;
    margin-bottom: 2px;
}

#recording-timer {
    font-weight: bold;
    margin-left: 10px;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.navbar.border-bottom {
    /* First Border Color (The main border) */
    border-bottom: 4px solid var(--app-accent-yellow, #FFEE8C) !important;
    /* Second Border Color (Simulated by box-shadow) */
    /* Syntax: H-offset V-offset Blur-radius Spread-radius Color */
    box-shadow: 0 3px 0 0 rgba(var(--bs-primary-rgb), 0.85); /* Adjust '3px' based on your needs */
}

.navbar-light.navbar {
    background-color: rgba(var(--bs-primary-rgb), 0.85) !important; /* Use your desired color */
}

/* Navbar links with reduced opacity by default */
.navbar-light .navbar-nav .nav-link {
    color: var(--bs-white) !important;
    font-weight: 600;
    opacity: 0.9;
}

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link:focus {
        color: var(--bs-white) !important;
        opacity: 1;
        text-shadow: 0 0 1.5px var(--bs-white); /* Simulates bold without shifting */
    }

/* Dropdown toggle */
.navbar-light .navbar-nav .dropdown-toggle {
    color: var(--bs-white) !important;
    opacity: 0.9;
}

    .navbar-light .navbar-nav .dropdown-toggle:hover {
        opacity: 1;
    }


.navbar .navbar-toggler {
    color: white;
    background-color: white !important;
}

/* Dropdown items */
.dropdown-item {
    color: var(--bs-primary) !important;
    opacity: 0.7;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
        color: var(--bs-primary) !important;
        opacity: 1;
    }

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
/*    position: relative;
    min-height: 100%;*/
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 0;
    padding-top: calc(var(--navbar-height) + 10px);
}

.page-content {
    flex: 1 0 auto;
}

.footer {
    position: static;
    flex-shrink: 0;
    width: 100%;
    padding: 8px 15px 15px;
    white-space: normal;
    line-height: 1.2;
}

.footer .row > div {
    min-width: 0;
}

.center-text {
    text-align: center;
}

/* wwwroot/css/site.css */
/* Existing styles, including @media (min-width: 768px) if present */
@media (min-width: 768px) {
    /* Your existing rules */
}

/* Two-column-flow styles */
.two-column-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns on wide screens */
    gap: 1rem;
}

    .two-column-flow > .d-flex {
        margin-bottom: 0.5rem;
        width: 100%;
    }

@media (max-width: 576px) { /* Reverted to 576px */
    .two-column-flow {
        grid-template-columns: 1fr !important; /* Single column */
    }

        .two-column-flow > .d-flex {
            width: 100% !important;
            display: block !important; /* Override d-flex for vertical stacking */
        }

        .two-column-flow > .d-flex .form-control {
            width: 100% !important;
        }
}

/* NavBar Styles (Scoped with nav-container)
-------------------------------------------------- */
/*.nav-container {
    position: relative;*/ /* Ensure proper positioning */
/*}

    .nav-container .navbar-nav {
        display: flex;
        flex-wrap: nowrap;*/ /* Prevent wrapping issues on smaller screens */
        /*align-items: center;*/ /* Vertically center items */
    /*}

    .nav-container .nav-link {
        padding: 0.5rem 1rem;
        color: #343a40 !important;*/ /* Dark text for light background */
        /*text-decoration: none;
        transition: color 0.2s;
    }

        .nav-container .nav-link:hover {
            color: #0056b3 !important;*/ /* Bootstrap 5 link hover color */
        /*}

    .nav-container .dropdown {
        position: relative;*/ /* Ensure dropdown positioning */
    /*}

    .nav-container .dropdown-menu {
        min-width: 10rem;*/ /* Minimum width for readability */
        /*background-color: #fff;*/ /* Match Bootstrap light theme */
        /*border: 1px solid rgba(0, 0, 0, 0.15);*/ /* Default Bootstrap border */
        /*border-radius: 0.25rem;*/ /* Rounded corners */
        /*box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);*/ /* Subtle shadow */
    /*}

    .nav-container .dropdown-item {
        color: #343a40;*/ /* Reset to dark text in dropdown */
    /*}

        .nav-container .dropdown-item:hover {
            background-color: #e9ecef;*/ /* Light gray hover for dropdown */
            /*color: #0d6efd;*/ /* Blue text on hover */
        /*}

    .nav-container .navbar-toggler {
        border: none;*/ /* Remove default border */
        /*padding: 0.25rem 0.75rem;*/ /* Adjust padding */
    /*}

    .nav-container .navbar-collapse {*/
        /* Removed flex-grow: 0; to allow Bootstrap default expansion */
        /* Removed justify-content: space-between; as me-auto handles positioning */
    /*}

@media (max-width: 575.98px) {*/ /* Aligned to Bootstrap sm breakpoint */
    /*.nav-container .navbar-nav {
        flex-direction: column;*/ /* Stack items vertically on collapse */
        /*align-items: stretch !important;*/ /* Override 'center' to make items full width */
    /*}

    .nav-container .nav-link {
        padding: 0.5rem 0;*/ /* Adjust padding for vertical layout */
    /*}

    .nav-container .dropdown-menu {
        position: static;*/ /* Adjust dropdown position on mobile */
        /*float: none;*/ /* Prevent float issues */
        /*width: 100%;*/ /* Full width on mobile */
    /*}*/

    /* Align main/left nav items to the left */
    /*.nav-container .main-nav .nav-item {
        width: 100%;
        justify-content: flex-start;*/ /* Justify content left within full-width item */
    /*}

    .nav-container .main-nav .nav-link,
    .nav-container .main-nav .dropdown-item {
        text-align: left !important;
    }*/

    /* Align login/right items to the right */
    /*.nav-container .login-nav .nav-item {
        width: 100%;
        justify-content: flex-end;*/ /* Justify content right within full-width item */
    /*}

    .nav-container .login-nav .nav-link {
        text-align: right !important;
    }*/

    /* Specifically target the Logout button to ensure alignment */
    /*.nav-container .login-nav .btn.nav-link {
        text-align: right !important;
        padding-right: 0;*/ /* Remove any right padding that might indent */
        /*margin-left: auto;*/ /* Push to right if needed */
    /*}
}*/

/*Font Awesome Icons*/

/*.fa-solid {
    color: dimgray !important;
    font-size: 2.5rem;
}


.aes-class-session-table .fa-solid:hover {
    opacity: 0.7;
    color: black !important;
    transition: color 0.2s ease;
}

*/

.aes-button {
/*    position: relative;*/
    color: var(--bs-primary);
    text-decoration: none;
    border: 1.3px solid var(--bs-gray-500);
    padding: 3px 7px;
    border-radius: 2px;
/*    top: 10px;*/
    margin: 5px;
    line-height: 2rem;
    font-weight: 500;
    background: white;
}

.aes-button:hover {
    background-color: var(--bs-primary);
    color: white;
    border: 1.3px solid white;
}

/*replace details summary ::marker with a font-awesome marker*/

summary {
    list-style: none; /* removes default arrow in most browsers */
    cursor: pointer;
}

summary::-webkit-details-marker {
    display: none; /* Safari/Chrome */
}

    summary::before {
        font-family: "Font Awesome 6 Free"; /* or your FA version */
        font-weight: 900; /* solid style */
        content: "\f0da"; /* Font Awesome code (chevron-right) */
        margin-right: 0.5em;
        transition: transform 0.2s ease;
    }

details[open] summary::before {
    content: "\f0d7"; /* chevron-down */
}
/*//////////////////////////////////////////////////////////*/

.details-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--bs-primary);
    position: relative; /* needed for ::after positioning */
    display: inline-block; /* keeps underline only as wide as the text */
    margin-top: 40px;
    margin-bottom: 20px;
}

    .details-section-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px; /* adjust spacing under text */
        width: 100%;
        height: 4px; /* thickness of underline */
        background-color: var(--bs-primary); /* underline color */
        border-radius: 2px; /* optional rounded edges */
        opacity: 0.3;
        
    }

/*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/* custom tooltip. make sure to add a div with a class of custom-tooltip and attribute of data-tooltip for the text*/
.custom-tooltip {
    position: relative;
    cursor: pointer;
/*    z-index: 1000;*/
}

    /* Reset positioning context for nested elements */
    .custom-tooltip > * {
        position: static !important; /* or just position: static; */
/*         z-index: 1000;*/
    }


    .custom-tooltip:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        text-align: left;
        top: 130%;
        left: -50px;
        background-color: white;
        color: red;
        font-weight: 600;
        padding: 5px 5px;
        opacity: 0.9;
        border-radius: 2px;
        font-size: 1rem;
        white-space: nowrap;
        word-break: break-word; /* prevent overflow on long words */
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        animation: fadeIn 0.3s ease-in-out forwards;
    }

@media (max-width: 768px) {
    .custom-tooltip:hover::after {
        top: 130%;
        left: 0px;
        transform: translateX(-40%);
        font-size: 0.8rem;
    }
}

.custom-tooltip.tooltip-left:hover::after {
    left: 50px;
}

.custom-tooltip.tooltip-right:hover::after {
    left: -120px;
}

.custom-tooltip.tooltip-bottom-left:hover::after {
    left: 50px;
    top: -10px;
}

/*custom tooltip for long text*/
/* custom tooltip. make sure to add a div with a class of custom-tooltip and attribute of data-tooltip for the text*/
.custom-tooltip-long {
    position: relative;
    cursor: pointer;
}

    /* Reset positioning context for nested elements */
.custom-tooltip-long * {
    position: relative;
}


    .custom-tooltip-long:hover::after {
        content: attr(data-tooltip-long);
        position: absolute;
        text-align: left;
        top: 130%;
        left: 0px;
        background-color: white;
        color: red;
        font-weight: 600;
        padding: 5px 5px;
        border-radius: 2px;
        font-size: 1rem;
        white-space: normal; /* allow wrapping */
        width: 30vw;
        word-break: break-word; /* prevent overflow on long words */
        z-index: 10;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        animation: fadeIn 0.3s ease-in-out forwards;
    }

@media (max-width: 768px) {
    .custom-tooltip-long:hover::after {
        top: 120%;
        width: 70vw;
        font-size: 1rem;
    }
}

@keyframes fadeIn {
    from

{
    opacity: 0;
}

to {
    opacity: 0.95;
}
}
/*///////////////////////////////////////////////*/

/*///////////////////////////////////////////////////////////////////////////////////*/

/*CUSTOM AUDIO PLAYER*/
/*audio {
    width: 200px;
    background: transparent;
}

    audio::-webkit-media-controls-panel {
        background: transparent;
    }*/
audio {
    width: 200px;
    height: 3rem;
    padding: 0px;
    border-radius: 2px;
    font-family: Arial, sans-serif;
}

    audio::-webkit-media-controls-panel {
        padding: 0 4px; /* Reduces overall internal spacing */
        border-radius: 10px; /* Change this value to whatever you want */
    }

/*////////////////////////////////////////////////////////////////////////*/

    details.no-caret summary::before {
        display: none;
    }

.audio-player {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 3rem; /* match .recording-button height */
    padding: 0 10px;
    border: 3px solid var(--bs-primary);
    border-radius: 30px;
    color: var(--bs-primary);
    background: white;
    font-weight: 600;
    width: 180px;
}

    .audio-player * {
        vertical-align: middle;
    }

.audio-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.1s ease;
}

    .audio-btn:hover {
        color: red;
        transform: scale(1.1);
    }

    .audio-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.audio-progress {
    flex: 1;
    display: flex;
    align-items: center;
}

    .audio-progress input[type="range"] {
        width: 100%;
        height: 3px;
        border-radius: 3px;
        appearance: none;
        background: linear-gradient(to right, red var(--progress, 0%), #ccc var(--progress, 0%));
        cursor: pointer;
        transition: background 0.2s;
    }

        .audio-progress input[type="range"]::-webkit-slider-thumb {
            appearance: none;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: red;
            cursor: pointer;
            transition: transform 0.1s ease;
        }

            .audio-progress input[type="range"]::-webkit-slider-thumb:hover {
                transform: scale(1.2);
            }

.audio-time {
    margin-left: 2px;
    font-size: 0.75rem;
    color: #666;
    min-width: 32px;
    text-align: right;
    user-select: none;
}

@media (max-width: 768px) {
    .audio-time {
        font-size: 0.7rem;
        min-width: 28px;
    }
}

.audio-btn.play-btn {
    margin-right: 8px; /* adjust to your liking — 6–12px usually looks great */
}

.calendar-search-container {
    margin: auto 5px;
    color: var(--bs-primary);
}

    .calendar-search-container p {
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap; /* wraps to next line when not enough space */
    }


.calendar-search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap; /* prevent wrapping */
}

.calendar-search-container .input-field {
    padding: 10px;
    border: 1px solid white;
    background: rgba(var(--bs-primary-rgb), 0.9);
    color: white;
    border-radius: 3px;
    font-weight: 700;
}

/*///////////////////////////*/

.search-container-wrapper {
    position: relative;
    margin-bottom: 45px;
    top: 0px;
}

@media (max-width: 768px) {
    .search-container-wrapper {
        margin-bottom: 0px;
    }
}

/*preventing zooming upon clicking the search field on mobile devices*/
@media (max-width: 768px) {
    .search-container-wrapper input,
    .search-container-wrapper textarea,
    .search-container-wrapper select {
        font-size: 16px;
    }
}

.search-container {
    color: var(--bs-primary);
    max-width: 600px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Desktop positioning */
@media (min-width: 768px) {
    .search-container {
        position: absolute;
        top: -65px;
        right: 15px;
        margin-top: 0;
    }
}

/* Inputs */
.search-container .input-field {
    padding: 10px;
    border: 1px solid white;
    background: rgba(var(--bs-primary-rgb), 0.9);
    color: white;
    border-radius: 3px;
    font-weight: 700;
}

/* Search box layout */
.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2px 10px;
    border-radius: 3px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

    .search-box h3 {
        margin: 0 4px 0 0;
        font-size: 1.1rem;
        line-height: 1.2;
    }

    /* Match input & button heights cleanly */
    .search-box .input-field,
    .search-box .aes-button {
        height: 2.5rem;
        box-sizing: border-box;
    }

.search-input-row {
    align-items: center; /* CRITICAL */
}

/* Mobile behavior */
@media (max-width: 768px) {

    .search-box {
        flex-direction: column;
        align-items: stretch;
        padding: 0px 10px;
        border-radius: 0px;
        box-shadow: none;
    }

    .search-input-row {
        display: flex;
        align-items: center; /* KEY LINE */
        gap: 0.5rem;
    }

        .search-input-row .input-field {
            flex: 1;
            min-width: 0;
        }
}

.important-text {
    position: absolute;
    top: 5px;
    right: 10px;
    color: var(--bs-primary);
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .important-text {
        top: -50px;
        font-size: 0.7rem;
        width: 180px;
        right: -10px;
    }
}


/*column header*/
.column-header {
    color: rgba(0, 0, 0, 0.5);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 768px) {
    .column-header {
        font-size: 17px;
    }
}

.selected-column-header {
    color: rgba(var(--bs-primary-rgb), 1);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 768px) {
    .selected-column-header {
        font-size: 20px;
    }
}

@media (max-width: 1280px) {
    .hide-on-tablet {
        display: none;
    }
}

.break-long-words {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.break-long-strings {
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
}

/*Font Awesome*/

th .fa-solid {
    opacity: 0.7;
    font-size: 1.6rem;
    color: var(--bs-primary) !important;
}


    th .fa-solid:hover {
        opacity: 0.7;
        color: black !important;
        transition: color 0.2s ease;
    }


.aes-class-session-table tr:hover .command-buttons a.delete-class-button {
    color: red;
    background: white;
    border: 2px solid red;
}

/*Command buttons*/

/*this one for Sessions Index page and is in Grid Layout*/
.command-buttons {
    /* display: flex;
    flex-wrap: wrap;*/
    gap: 0.5rem;
    /*    display: grid;
    grid-template-columns: repeat(3, 1fr);*/
    display: flex;
    flex-wrap: wrap;
    align-content: start;
}


    /*Style for the buttons on the right hand side of the class sessions page*/
    .command-buttons a,
    .command-buttons .disabled-command-button {
        flex: 1 1 calc(50% - 0.25rem); /* 2 per row, accounting for gap */
        min-width: max-content; /* Ensures button is at least as wide as text */
        max-width: calc(50% - 0.25rem);
        background: white;
        color: var(--bs-primary);
        text-decoration: none;
        border-radius: 2px;
        /*        margin-top: 1.7rem;*/
        /*        margin-bottom: 1.7rem;*/
        line-height: 2.5rem;
        font-weight: 500;
        white-space: nowrap;
        word-break: keep-all;
        align-items: center;
        justify-content: center;
        padding-left: 8px;
        padding-right: 5px;
        border: 2px solid var(--bs-primary);
        font-size: 1rem;
        border-radius: 5px;
    }

@media (max-width: 1400px) {
    .command-buttons a,
    .command-buttons .disabled-command-button {
        font-size: 0.9rem;
        padding-left: 6px;
        padding-right: 0px;
    }
}

    .command-buttons .disabled-command-button {
        background: #f1f3f5;
        color: #777;
        border-color: #bbb;
        cursor: not-allowed;
        opacity: 0.7;
    }


        .command-buttons a:hover {
            background-color: var(--bs-primary) !important;
            color: white !important;
            border: 2px solid white !important;
        }


    .aes-class-session-table tr:hover .command-buttons a:not(:hover) {
        background-color: rgba(220,220,220,0.3);
    }

.command-buttons a.delete-class-button {
    color: red;
    border: 2px solid red;
}

.command-buttons-2 {
    /* display: flex;
    flex-wrap: wrap;*/
    gap: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    /*    min-height: 130px;*/
}

    /*used in the course index*/
    .command-buttons-2 .command-label {
        font-weight: 600;
        color: #666;
        display: flex;
        align-items: center;
        justify-content: end;
        font-size: 1rem;
        padding-right: 10px;
    }

    /*Style for the buttons on the right hand side of the class sessions page*/
    .command-buttons-2 a {
        flex: 1 1 calc(50% - 0.25rem); /* 2 per row, accounting for gap */
        min-width: max-content; /* Ensures button is at least as wide as text */
        max-width: calc(50% - 0.25rem);
        background: white;
        color: var(--bs-primary);
        text-decoration: none;
        border-radius: 2px;
        /*        margin-top: 1.7rem;*/
        /*        margin-bottom: 1.7rem;*/
        line-height: 1.7rem;
        font-weight: 500;
        white-space: nowrap;
        word-break: keep-all;
        /*flex: 1 1 calc(50% - 0.5rem);*/ /*2 per row */
        /*min-width: 100px;
        display: inline-flex;*/
        align-items: center;
        justify-content: center;
        padding-left: 5px;
        padding-right: 5px;
        border: 2px solid var(--bs-primary);
    }


        .command-buttons-2 a:hover {
            background-color: var(--bs-primary) !important;
            color: white !important;
            border: 2px solid white !important;
        }

        .command-buttons-2 a.delete-class-button {
            color: red;
            border: 2px solid red;
        }

    .command-buttons-2 span:not(.command-label) {
        width: 0;
        min-width: 0;
        opacity: 0; /* Make invisible */
    }

.command-buttons-3 {
    /* display: flex;
    flex-wrap: wrap;*/
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    /*    min-height: 130px;*/
}

    /*used in the course index*/
    .command-buttons-3 .command-label {
        font-weight: 600;
        color: #666;
        display: flex;
        align-items: center;
        justify-content: end;
        font-size: 1.3rem;
        padding-right: 10px;
    }

    /*Style for the buttons on the right hand side of the class sessions page*/
    .command-buttons-3 a {
        flex: 1 1 calc(33.333% - 0.334rem); /* 3 per row, accounting for gap */
        min-width: max-content; /* Ensures button is at least as wide as text */
        max-width: calc(33.333% - 0.334rem); /* Prevents single leftover from stretching */
        background: white;
        color: var(--bs-primary);
        text-decoration: none;
        border-radius: 2px;
        /*        margin-top: 1.7rem;*/
        /*        margin-bottom: 1.7rem;*/
        line-height: 2.5rem;
        font-weight: 500;
        white-space: nowrap;
        word-break: keep-all;
        /*flex: 1 1 calc(50% - 0.5rem);*/ /*2 per row */
        /*min-width: 100px;
        display: inline-flex;*/
        align-items: center;
        justify-content: center;
        padding-left: 5px;
        padding-right: 5px;
        border: 2px solid var(--bs-primary);
    }


        .command-buttons-3 a:hover {
            background-color: var(--bs-primary) !important;
            color: white !important;
            border: 2px solid white !important;
        }

        .command-buttons-3 a.delete-class-button {
            color: red;
            border: 2px solid red;
        }

        .command-buttons-3 a.userimport-button {
            color: forestgreen;
            border: 2px solid forestgreen;
        }

    .command-buttons-3 span:not(.command-label) {
        width: 0;
        min-width: 0;
        opacity: 0; /* Make invisible */
    }

.command-buttons-4 {
    /* display: flex;
    flex-wrap: wrap;*/
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-content: start; /* Align content to top */
    /*    min-height: 130px;*/
}

/*used in the course index*/
.command-buttons-4 .command-label {
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: end;
    font-size: 1.3rem;
    padding-right: 10px;
}

    /*Style for the buttons on the right hand side of the class sessions page*/
    .command-buttons-4 a {
        flex: 1 1 calc(25% - 0.375rem); /* 4 per row, accounting for gap */
        min-width: max-content; /* Ensures button is at least as wide as text */
        max-width: calc(25% - 0.375rem); /* Prevents single leftover from stretching */

        background: white;
        color: var(--bs-primary);
        text-decoration: none;
        border-radius: 2px;
        /*        margin-top: 1.7rem;*/
        /*        margin-bottom: 1.7rem;*/
        line-height: 2.5rem;
        font-weight: 500;
        white-space: nowrap;
        word-break: keep-all;
        /*flex: 1 1 calc(50% - 0.5rem);*/ /*2 per row */
        /*min-width: 100px;
        display: inline-flex;*/
        align-items: center;
        justify-content: center;
        padding-left: 5px;
        padding-right: 5px;
        border: 2px solid var(--bs-primary);
    }


        .command-buttons-4 a:hover {
            background-color: var(--bs-primary) !important;
            color: white !important;
            border: 2px solid white !important;
        }

        .command-buttons-4 a.delete-class-button {
            color: red;
            border: 2px solid red;
        }

    .command-buttons-4 span:not(.command-label) {
        width: 0;
        min-width: 0;
        opacity: 0; /* Make invisible */
    }

.command-buttons-5 {
    /* display: flex;
    flex-wrap: wrap;*/
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-content: start;
}

    /*used in the course index*/
    .command-buttons-5 .command-label {
        font-weight: 600;
        color: #666;
        display: flex;
        align-items: center;
        justify-content: end;
        font-size: 1.3rem;
        padding-right: 10px;
    }

    /*Style for the buttons on the right hand side of the class sessions page*/
    .command-buttons-5 a {
        flex: 1 1 calc(20% - 0.4rem); /* 5 per row, accounting for gap */
        min-width: max-content; /* Ensures button is at least as wide as text */
        max-width: calc(20% - 0.4rem); /* Prevents single leftover from stretching */
        background: white;
        color: var(--bs-primary);
        text-decoration: none;
        border-radius: 2px;
        /*        margin-top: 1.7rem;*/
        /*        margin-bottom: 1.7rem;*/
        line-height: 2rem;
        font-weight: 500;
        white-space: nowrap;
        word-break: keep-all;
        /*flex: 1 1 calc(50% - 0.5rem);*/ /*2 per row */
        /*min-width: 100px;
        display: inline-flex;*/
        align-items: center;
        justify-content: center;
        padding-left: 5px;
        padding-right: 5px;
        border: 2px solid var(--bs-primary);
    }


        .command-buttons-5 a:hover {
            background-color: var(--bs-primary) !important;
            color: white !important;
            border: 2px solid white !important;
        }

        .command-buttons-5 a.delete-class-button {
            color: red;
            border: 2px solid red;
        }

    .command-buttons-5 span:not(.command-label) {
        width: 0;
        min-width: 0;
        opacity: 0; 
    }

.create-new {
    position: fixed;
    bottom: 20px;
    left: 40px;
    color: red;
    font-size: 4rem;
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {

    .create-new {
        left: 20px;
        bottom: 10px;
        font-size: 2rem;
    }
}

.create-new i {
    position: relative;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/*/////////////////////////*/

.status-ok {
    color: #28a745; /* green */
    font-size: 1.8rem;
    vertical-align: middle;
}

/*///////////////////////*/
.title {
    position: relative;
    font-size: 3rem;
    font-weight: 600;
    color: var(--bs-primary);
    /*    margin-bottom: 50px;*/
    margin-top: 20px;
}

/* Opt-in for pages whose title is the first element in normal flow, so it sits
   as close under the navigation bar as the Assignments page, where the header
   is a flex layout and the heading carries no leading space of its own.
   Applied one page at a time by adding "title-tight" beside "title". */
.title-tight {
    margin-top: 0;
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
}

.title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px; /* adjust spacing under text */
    width: 100%;
    height: 4px; /* thickness of underline */
    background-color: var(--bs-primary); /* underline color */
    border-radius: 2px; /* optional rounded edges */
    opacity: 0.2;
}

.sub-title {
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
    color: var(--bs-primary);
    padding-top: 7px;
}

@media (max-width: 768px) {
    .sub-title {
        font-size: 1rem;
    }
}

/*//////////////////////*/
/*Pagination*/

.pagination-control-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Force single row */
    gap: 200px; /* Slightly more gap looks better when centered */
    padding: 10px 60px;
    margin: 1.5rem auto; /* The 'auto' handles the horizontal centering */
    /* Constraint: prevents stretching */
    width: fit-content;
    max-width: 95%; /* Ensures it doesn't touch screen edges on tiny phones */
    /* Professional Background & Border */
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50px; /* Use 50px for a 'pill' look or 6px for a standard box */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle depth */
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 7px;
}

/* Base button style (replacing btn-primary) */
a.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px; /* Matching the modern input height */
    padding: 0 30px;
    background-color: var(--bs-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    border: 2px solid var(--bs-primary); /* Border starts colored to match background */
    transition: all 0.25s ease; /* Smooth transition for color, bg, and border */
    cursor: pointer;
}

.pagination-info {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
    margin-left: 15px;

    /* Centering logic */
    display: inline-flex;
    align-items: center; 
    height: 34px; /* Match the uniform height of your buttons/inputs */
    line-height: 1; /* Prevents extra spacing from the font's default line height */
}

.page-size-form {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.page-size-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.size-label {
    font-size: 1.1rem;
    color: #495057;
    font-weight: 600;
    /* Centering logic */
    display: inline-flex;
    align-items: center;
    height: 34px; /* Match the uniform height of your buttons/inputs */
    line-height: 1; /* Prevents extra spacing from the font's default line height */
}

.page-size-input {
    width: 50px;
    height: 36px; /* Slightly taller is more modern/touch-friendly */
    border: 1px solid #e0e0e0; /* Very light, soft gray */
    border-radius: 8px; /* Softer, more rounded corners */
    padding: 0 8px;
    text-align: center;
    background-color: #ffffff;
    color: #1a1a1b; /* Near-black for high readability */
    font-weight: 500;
    /* Remove default browser styling */
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    /* Subtle transition for the interaction */
    transition: all 0.2s ease;
    /* iOS Zoom prevention */
    font-size: 18px;
}

    /* The "Modern" Focus: A clean colored border without the fuzzy glow */
    .page-size-input:focus {
        border-color: #007bff; /* Use your primary brand color */
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); /* "Halo" effect instead of a shadow */
    }

    /* Hover state for better desktop UX */
    .page-size-input:hover {
        border-color: #ced4da;
    }

    /* Hiding the clunky up/down arrows (spinners) */
    .page-size-input::-webkit-inner-spin-button,
    .page-size-input::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.page-size-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    background-color: var(--bs-primary);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid var(--bs-primary);
    transition: all 0.25s ease;
    cursor: pointer;
}

    a.nav-btn:hover,
    .page-size-submit:hover {
        background-color: white !important;
        color: var(--bs-primary) !important;
        border-color: var(--bs-primary) !important;
    }

    /* Optional: Active/Click state for a tactile feel */
    .nav-btn:active,
    .page-size-submit:active {
        transform: scale(0.96) !important;
    }

/* --- Responsive Adjustments --- */

@media (max-width: 500px) {
    .pagination-control-container {
        padding: 6px 8px;
        gap: 25px;
    }

    .pagination-info {
        font-size: 0.75rem;
        margin-left: 1px;
    }

    a.nav-btn {
        padding: 0 12px;
    }   
    
}

/*////////////////////////////////////////////*/
/*quiz index*/

.quiz-index-table {
    width: 100%;
    table-layout: auto; /* allow columns to size to content */
}

@media (max-width: 1337px) {
    .quiz-index-table {
        width: 100%; /* table fills the container width */
        min-width: 1000px; /* prevents columns from shrinking too much */
        table-layout: auto; /* columns size naturally */
        overflow-x: auto; /* allow scroll if table > viewport */
    }
}

/*header widths*/
.course-header-width {
    min-width: 200px;
    /*css tables treat width as the prefered width*/
    width: 450px;
}

.class-date-header-width {
    min-width: 150px;
    /*css tables treat width as the prefered width*/
    width: 200px;
}

.quiz-name-header-width {
    min-width: 200px;
    /*css tables treat width as the prefered width*/
    width: 400px;
}

.grade-header-width {
    min-width: 150px;
    /*css tables treat width as the prefered width*/
    width: 200px;
}

.class-average-header-width {
    min-width: 200px;
    /*css tables treat width as the prefered width*/
    width: 300px;
}

/*column td styling*/

.course-quiz-name-td {
    color: rgb(65,105,225);
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.class-date-td {
    color: var(--bs-primary);
    font-size: 1.1rem;
    font-weight: 600;
    vertical-align: middle;
}

.grade-value-td {
    color: var(--bs-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 500px) {
    .course-quiz-name-td {
        font-weight: 700;
        font-size: 1.2rem;
    }

    .class-date-td {
        font-size: 1.3rem;
        font-weight: 600;
    }

    .grade-value-td {
        font-size: 1.2rem;
        font-weight: 700;
    }
}

.grade-summary {
    display: flex;
    flex-wrap: wrap;
    /* Centers items horizontally */
    justify-content: center;
    /* Centers the text inside the items when they stack */
    text-align: center;
    gap: 10px 30px; /* 10px vertical gap for mobile, 30px horizontal for desktop */
    padding: 10px 10px;
    font-size: 1.7rem;
    background-color: var(--bs-secondary);
    color: var(--bs-primary);
    width: fit-content; /* Makes the box only as wide as the text */
    margin: 15px auto;
    margin-top: 0px;
    border-radius: 8px;
    border: 2px solid var(--bs-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

    .grade-summary span {
        white-space: nowrap;
    }

/* On small screens, force each item to 100% width to stack them */
@media (max-width: 500px) {
    .grade-summary {
        font-size: 1.2rem;
        /* Centers the text inside the items when they stack */
        text-align: start;
        margin: 0px auto;
        margin-top: 20px;
    }

    .grade-summary span {
        flex: 1 0 100%;
        
        
    }
    
}

/*/////////////////////////////////*/

/* Container for the buttons */
.course-details-button-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows buttons to jump to the next line */
    align-items: center;
    justify-content: flex-start; /* Or 'center' if you prefer */
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Individual Button */
.course-details-button {
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
    color: var(--bs-primary);
    /* Keep the button text on one line */
    white-space: nowrap;
    display: inline-block;
    
}

i.course-details-buttons-separator {
    font-size: 0.3rem;
    color: #6c757d;
    opacity: 0.4;
    vertical-align: middle;
    margin: 0 10px;
}

@media (max-width: 768px) {
    .course-details-button {
        font-size: 1.1rem; /* Slightly larger than 1rem for better touch targets */
    }

    /* Hide separators on mobile when stacking to keep it clean */
    i.course-details-buttons-separator {
        display: none;
    }
}

/*///////////*/

.course-details {
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}


/* ===== Two Column Layout ===== */

.course-details-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
}


/* ===== Definition List Layout ===== */

.course-details-list {
    display: grid;
    grid-template-columns: 250px 1fr;
    row-gap: 10px;
    column-gap: 40px;
    margin: 10px;
    padding: 20px;
    border-radius: 4px;
    border: 3px solid var(--bs-primary);
    box-shadow: 4px 3px 4px 0 rgba(var(--bs-primary-rgb), 0.2);
    align-content: start;
}


/* ===== Labels ===== */

.course-label {
    font-weight: 600;
    color: var(--bs-primary);
    font-size: 1.4rem;
}


/* ===== Values ===== */

.course-value {
    color: dimgray;
    margin-right: 20px;
    font-size: 1.3rem;
    font-weight: 500;
    vertical-align: middle;
    margin-top: 1px;
}


/* ===== Full-width sections ===== */

.course-label-top {
    grid-column: 1 / -1;
    font-weight: 600;
    color: var(--bs-primary);
    font-size: 1.2rem;
}

.course-value-top {
    grid-column: 1 / -1;
}


/* ===== Links ===== */

.course-value a {
    text-decoration: none;
}

    .course-value a:hover {
        text-decoration: underline;
    }


/* ===== Responsive Layout ===== */

@media (max-width: 1200px) {

    .course-details-list {
        row-gap: 0px;
        column-gap: 0px;
        margin: 0px;
        padding: 0px;
    }


    .course-details-columns {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }

    .course-details-list {
        grid-template-columns: 1fr;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .course-label {
        margin-top: 12px;
    }
}

.course-index-enrolled-student {
    margin-left: 30px;
}

.course-index-student-name {
    color: var(--bs-primary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 400;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
    line-height: 2rem;
}

.enrolled-on {
    opacity: 0.4;
    margin-left: 10px;
}

.deactivate-course {
    margin-top: 30px;
    margin-left: 30px;
}

.deactivate-course a {
    text-decoration: none;
    border: 2px solid red;
    padding: 5px;
    color: red;
    border-radius: 4px;
   
}

.deactivate-course a:hover {
    text-decoration: none;
    border: 2px solid red;
    background-color: red;
    padding: 5px;
    color: white;
}

.reactivate-course {
    margin-top: 30px;
    margin-left: 30px;
}

.reactivate-course a {
    text-decoration: none;
    border: 2px solid green;
    padding: 5px;
    color: green;
    border-radius: 4px;
}

    .reactivate-course a:hover {
        text-decoration: none;
        border: 2px solid green;
        background-color: green;
        padding: 5px;
        color: white;
    }

/*upload button*/
.course-value a {
    text-decoration: none;
    color: mediumpurple; 
    background: none; 
    border: none; 
    outline: none; 
    padding: 0;
    margin: 0; 
}

.course-value a:hover {
    text-decoration: none;
    color: rebeccapurple;
}

    .course-value a i.fa-solid {
        text-decoration: none;
        margin-right: 10px;
        color: red !important; /* Match text color */
        opacity: 0.3;
        background: #fff !important; /* White background for link */


        transition: all 0.2s ease; /* Smooth transitions */
    }

/* Dashboard notification preferences */
.dashboard-heading-with-preferences {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
}

.dashboard-heading-with-preferences > :first-child {
    margin-right: auto;
}

.dashboard-heading-with-preferences h3 {
    margin-bottom: 0;
}

.dashboard-notification-preferences {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--bs-primary);
    border-radius: 0.4rem;
    color: var(--bs-primary);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.dashboard-notification-preferences:hover,
.dashboard-notification-preferences:focus {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.055);
}

@media (max-width: 575.98px) {
    .dashboard-heading-with-preferences {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Ulearn support callout */
.ulearn-support-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #d7e6ef;
    border-radius: 6px;
    color: #354252;
    background: #f7fbff;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
}

.owneradmin-partial .ulearn-support-callout {
    margin-top: 0.25rem;
}

.ulearn-support-callout i {
    flex: 0 0 auto;
    color: #116e96;
    font-size: 1.25rem;
    line-height: 1.35;
}

.ulearn-support-callout p {
    margin: 0;
}

.ulearn-support-callout a {
    color: #115c88;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* Site-wide announcement banner, shown directly below the navigation bar when
   the shared "Announcement" setting has a value. Full window width, so it sits
   outside the page container rather than inside it. */
.site-announcement {
    width: 100%;
    background-color: #fffbcc;
    color: #cc0000;
    border-bottom: 1px solid #e6d98f;
    padding: 0.6rem 1rem;
    text-align: center;
    font-weight: 600;
    /* Long notices should wrap rather than stretch the page sideways. */
    overflow-wrap: anywhere;
}
