/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
*/

/* ========== Variables ========== */
:root {
    --low-blue: #2B3494;
    --low-red: #C32434;
    --low-red-50: rgba(195, 36, 52, 0.5);
    --low-blue-33: rgba(43, 52, 148, .33);
}

/* ========== Base Styles ========== */
body {
    margin-bottom: 60px;
    font-family: 'Montserrat', sans-serif;
    padding-top: 100px; /* Adjust to match your navbar height */
}

button.low-button {
    background-color: white;
    border: 1px solid var(--low-blue);
    border-radius: 3px;
    color: var(--low-blue);
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    /*   min-width: 225px;*/
    min-height: 50px;
    /*    padding: 12px 35px;*/
    text-transform: uppercase;
    width: 100%;
    height: 100%;
}

    button.low-button:hover {
        background-color: #f8f9fa;
    }

    button.low-button.clicked {
        background-color: var(--low-red);
        border-color: var(--low-red);
        color: white;
    }

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

/* ========== Media Queries ========== */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
@media (max-width: 576px) {
    body {
        padding-top: 120px; /* If your navbar is taller on mobile */
    }
}

/* ========== Components ========== */

.btn-low-blue {
    color: #fff;
    background-color: var(--low-blue);
    border-color: #2a72af;
}

    .btn-low-blue:hover {
        background-color: var(--low-red);
        border-color: #1f5e94;
        color: #fff;
    }

    .btn-low-blue:focus,
    .btn-low-blue.focus {
        box-shadow: 0 0 0 0.25rem rgba(42, 114, 175, 0.5);
    }

    .btn-low-blue:active {
        background-color: var(--low-red);
        border-color: #1b537e;
    }


.breadcrumb-item + .breadcrumb-item::before {
    content: " > ";
}

.breadcrumb-item.active {
    color: var(--low-blue);
    font-weight: bold;
    text-decoration: none;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/*.button-container {
    display: flex;
    gap: 50px;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
}*/
.content-area {
    background-color: #F7F7F7;
    /*    padding: 5px 20px 180px;
        margin: 0 -9999px;
    min-height: calc(100vh - 200px);
    
    padding-left: 9999px;
    padding-right: 9999px;*/
}

.grade-header {
    color: var(--low-blue);
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-left: 10px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.grayed-out {
    color: #D3D3D3 !important;
    font-style: italic;
    /*  opacity: 0.7;*/
}

/*.input-group-low {
    background-color: var(--low-blue);
    color: white;
    border: none;
}*/

.icon-slot {
    display: inline-block;
    width: 32px;
    text-align: center;
}

    .icon-slot.placeholder {
        visibility: hidden;
    }
/* reserves space, looks blank */
/*.file-icons {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}
*/
/*.file-icons {
    display: grid;
    grid-template-columns: repeat(var(--cols, 1), 32px);*/ /* set --cols in JS */
    /*column-gap: 4px;
    justify-content: end;*/ /* icons hug the right edge */
    /*align-items: center;
}*/
.list-group-item {
    border: none !important;
}

.low-popover.popover {
    background-color: #ffffff;
    border: 1px solid var(--low-red-50);
    color: var(--low-blue);
    box-shadow: 0 4px 16px rgba(43,52,148,0.12);
    font-family: 'Montserrat', Arial, sans-serif;
    min-width: 200px;
}

.low-popover .popover-header {
    background: #F5F5F5;
    color: var(--low-red);
    font-weight: bold;
    font-size: 1rem;
}

.low-popover .popover-body {
    color: var(--low-blue);
    font-size: 0.95rem;
}

.mnu-low .nav-link {
    color: black; /* var(--low-blue) !important;*/
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.product-container {
    background-color: white;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 380px;
    margin: 0;
    padding: 20px;
    width: 100%;
}
/*.product-button {
    width: 70px;
}*/
.product-library-title {
    color: var(--low-blue);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 56px;
    font-weight: 750;
    letter-spacing: 1px;
    margin: 0;
    padding-top: 50px;
    text-align: center;
}

.product-list {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    gap: 0;
}

.product-name {
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

    .product-name a {
        color: inherit;
        text-decoration: none;
    }

    .product-name:hover {
        /* background-color: #e9ecef;*/
        color: var(--low-red); /*#495057;*/
        border-radius: 4px;
        font-weight: bold;
    }

    .product-name.no-hover:hover {
        color: inherit;
        font-weight: inherit;
        background-color: transparent;
        text-decoration: none;
        cursor: default; /* optional, depending on your UX */
    }

.product-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1px;
    min-height: 24px;
    padding: 1px 10px;
}
    /* Add dividers after specific groups */
    .product-row:nth-child(2),
    .product-row:nth-child(6),
    .product-row:nth-child(8),
    .product-row:nth-child(9) {
        border-top: 1px solid var(--low-blue);
        margin-top: 8px;
        padding-top: 8px;
    }

/*.select-focus-low:focus,
.select-focus-low:focus-visible {
    border-color: var(--low-blue);
    box-shadow: 0 0 0 0.25rem rgba(43, 52, 148, 0.5);
}

.select-focus-low::selection {
    background: rgba(43, 52, 148, 0.5);
    color: white;
}*/

.shadow-low {
    box-shadow: 0.7rem 0.7rem 1rem var(--low-blue-33);
}

.subject-group {
    display: none;
    /* width: 100%;*/
}

    .subject-group.active {
        display: block;
    }

.sub-header {
    /*color: var(--low-blue);*/
    /*font-family: Arial, sans-serif;*/
    font-size: 12px;
    font-weight: lighter;
    margin-bottom: 1px;
    padding-left: 10px;
    text-align: left;
    text-transform: uppercase;
    /*white-space: nowrap;*/
}

.text-low-blue {
    color: var(--low-blue) !important;
}

.text-low-red {
    color: var(--low-red) !important;
}


.icon-bold {
    text-shadow: 0 0 1px currentColor;
}

.icon-hover-rotate {
    color: #6c757d;
    transition: color 0.2s ease, transform 0.3s ease;
    cursor: pointer;
}

    .icon-hover-rotate:hover {
        color: #198754; /* Bootstrap success */
        transform: rotate(20deg) scale(1.1);
    }

.icon-hover-grow {
    color: #6c757d;
    transition: color 0.2s ease, transform 0.3s ease;
    cursor: pointer;
}

    .icon-hover-grow:hover {
        color: #198754; /* Bootstrap success green */
        transform: scale(1.3); /* Grows slightly larger on hover */
    }


.footer-nav a {
    margin: 0 1rem;
    display: inline-block;
}

.footer-social a:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

.footer-social i {
    transition: color 0.2s ease;
}

/*nav.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;*/ /* Bootstrap's default navbar z-index */
/*}*/



/* ===== Library page polish (scoped) ===== */
.library-page {
    --soft-bg: var(--bs-body-bg);
    --soft-card: #ffffff;
    --soft-border: rgba(0,0,0,.08);
    --soft-focus: rgba(43, 52, 148, .25); /* brandy border glow using --low-blue tone */
}

/*@media (prefers-color-scheme: dark) {
    .library-page {
        --soft-card: #111418;
        --soft-border: rgba(255,255,255,.08);
    }
}*/

/* Breadcrumb: muted background pill */
.library-page #breadcrumb {
    background: var(--soft-bg);
    border-radius: 999px;
    padding: .25rem .75rem;
    border: 1px solid var(--soft-border);
}

/* Folders & files as clean cards (overrides global border:none safely) */
.library-page #folders,
.library-page #files {
    display: grid;
    gap: .5rem;
}

    .library-page #folders .list-group-item,
    .library-page #files .list-group-item {
        border: 1px solid var(--soft-border) !important;
        border-radius: 12px;
        padding: .6rem .75rem;
        transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
        background: var(--soft-card);
    }

        .library-page #folders .list-group-item:hover,
        .library-page #files .list-group-item:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(0,0,0,.06);
            border-color: var(--soft-focus);
        }

/* Right-aligned icon grid (reuses your .icon-slot) */
.library-page .file-icons {
    display: grid;
    grid-auto-flow: column; /* lay icons left->right in columns */
    grid-auto-columns: 32px; /* each icon slot is 32px */
    column-gap: 4px;
    /* make the strip a fixed width for the max slots */
    --cols: 1; /* default overridden inline from JS */
    width: calc(var(--cols) * 32px + (var(--cols) - 1) * 4px);
    /* pack actual icons to the RIGHT edge of the strip */
    justify-content: end;
    align-items: center;
}



/* each icon/placeholder already sized */
.icon-slot {
    display: inline-block;
    width: 32px;
    text-align: center;
}




.library-page .icon-hover-grow {
    transition: transform .08s ease;
}

    .library-page .icon-hover-grow:hover {
        transform: scale(1.08);
    }

/* Folder glyph subtle lift */
.library-page .bi-folder-fill {
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.05));
}

/* Optional: Grid view for files (toggle .library-grid on the wrapper) */
.library-page.library-grid #files {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

    .library-page.library-grid #files .list-group-item {
        min-height: 64px;
    }

/* Long names behave on small screens */
.library-page .product-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Right-edge "Digital" flag */
/*.library-page .digi-flag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .5rem;
    border: 1px solid var(--soft-border);
    border-radius: 999px;
    background: var(--soft-bg);
    font-size: .85rem;
    line-height: 1;
    user-select: none;
}
*/



