/* =====================================================
   Dashboard Shell
===================================================== */

.nsu-dashboard {
    max-width: 1180px;
    margin: 1.5rem auto 2rem;
}


/* =====================================================
   Top Row: Welcome + QuickFind
===================================================== */

.nsu-dashboard-top {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nsu-dashboard-welcome,
.nsu-dashboard-quickfind,
.nsu-dashboard-helpful-links,
.nsu-dashboard-card {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.nsu-dashboard-welcome,
.nsu-dashboard-quickfind,
.nsu-dashboard-helpful-links {
    padding: 1.25rem;
}

.nsu-eyebrow {
    margin-bottom: .25rem;
    color: var(--nsu-blue, #005baa);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}


/* =====================================================
   Dashboard Card Grid
===================================================== */

.nsu-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.nsu-dashboard-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 112px;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.nsu-dashboard-card:hover {
    transform: translateY(-2px);
    border-color: var(--nsu-blue, #005baa);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.nsu-dashboard-card__icon {
    color: var(--nsu-blue, #005baa);
    font-size: 1.75rem;
    line-height: 1;
}

.nsu-dashboard-card__body h3 {
    margin: 0 0 .15rem;
    font-size: 1rem;
}

.nsu-dashboard-card__body strong {
    display: inline;
    margin-right: .25rem;
    font-size: 1.4rem;
    line-height: 1.2;
}

.nsu-dashboard-card__body span {
    color: #6c757d;
    font-size: .9rem;
}

.nsu-dashboard-card__cta {
    display: inline-block;
    margin-top: .35rem;
    color: var(--nsu-blue, #003b8f);
    font-size: .85rem;
    font-weight: 700;
}


/* =====================================================
   Card Variants
===================================================== */

.nsu-dashboard-card--warning {
    border-color: #f0c36a;
}

.nsu-dashboard-card--warning .nsu-dashboard-card__icon,
.nsu-dashboard-card--warning strong {
    color: #9a6700;
}

.nsu-dashboard-card--success .nsu-dashboard-card__icon,
.nsu-dashboard-card--success strong {
    color: #1f7a3f;
}

.nsu-dashboard-card--info .nsu-dashboard-card__icon,
.nsu-dashboard-card--info strong {
    color: var(--nsu-blue, #005baa);
}

.nsu-dashboard-card--neutral .nsu-dashboard-card__icon,
.nsu-dashboard-card--neutral strong {
    color: #495057;
}

.nsu-dashboard-card--disabled {
    opacity: .62;
    cursor: not-allowed;
}

.nsu-dashboard-card--disabled:hover {
    transform: none;
    border-color: #e3e6ea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}


/* =====================================================
   Section Headings
===================================================== */

.nsu-dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nsu-dashboard-section-heading h3 {
    margin: 0;
}


/* =====================================================
   Helpful Links
===================================================== */

.nsu-dashboard-helpful-links {
    margin-top: 1.5rem;
}

.nsu-helpful-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: 1rem;
}

.nsu-helpful-links-grid a {
    display: block;
    padding: .75rem .9rem;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    color: var(--nsu-blue, #003b8f);
    font-weight: 700;
    text-decoration: none;
    background: #f8fafc;
}

.nsu-helpful-links-grid a:hover {
    background: #eef5fb;
    border-color: var(--nsu-blue, #003b8f);
}
.nsu-dashboard-library-card {
    margin-top: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.nsu-library-card-display {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed #cfd6df;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

.nsu-library-card-barcode {
    font-family: "Libre Barcode 39", cursive;
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: .04em;
}

.nsu-library-card-number {
    margin-top: .25rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.nsu-library-card-details {
    margin-top: 1rem;
}

.nsu-library-card-details summary {
    color: var(--nsu-blue, #003b8f);
    font-weight: 700;
    cursor: pointer;
}

.nsu-library-card-details dl {
    margin: 1rem 0 0;
}

.nsu-library-card-barcode {
    font-family: "Libre Barcode 39", cursive;
    font-size: 2.6rem;
    line-height: .9;
    letter-spacing: .02em;
}

.nsu-library-card-number {
    margin-top: .35rem;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: #495057;
}

.nsu-library-card-hint {
    margin-top: .4rem;
    font-size: .8rem;
    color: #6c757d;
}

/* =====================================================
   QuickFind
===================================================== */

.quickfind {
    position: relative;
}

.quickfind-results {
    display: none;
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: .25rem;
    max-height: 390px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.quickfind-results.is-open {
    display: block;
}

.quickfind-result {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .65rem .8rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #eef0f3;
}

.quickfind-result:last-child {
    border-bottom: 0;
}

.quickfind-result:hover,
.quickfind-result.is-active {
    background: #eaf3fb;
}

.quickfind-result-title {
    font-weight: 700;
}

.quickfind-result-meta,
.quickfind-empty {
    color: #6c757d;
    font-size: .85rem;
}

.quickfind-empty {
    padding: .75rem .85rem;
}

.quickfind-result-browse {
    color: var(--nsu-blue, #005baa);
    font-weight: 700;
    background: #f8fafc;
}


/* =====================================================
   QuickFind Loading Animation
===================================================== */

.quickfind.is-loading input {
    background-image: linear-gradient(90deg, transparent, rgba(0, 91, 170, .08), transparent);
    background-size: 200% 100%;
    animation: quickfind-loading 1s linear infinite;
}

@keyframes quickfind-loading {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}


/* =====================================================
   Responsive
===================================================== */

@media (max-width: 900px) {
    .nsu-dashboard-top {
        grid-template-columns: 1fr;
    }

    .nsu-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .nsu-helpful-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nsu-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Library Card
===================================================== */

.nsu-dashboard-library-card {
    margin-top: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.nsu-library-card-display {
    margin-top: 1rem;
    padding: 1.1rem 1rem 1rem;
    border: 1px dashed #cfd6df;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

.nsu-library-card-barcode-svg {
    display: block;
    width: min(560px, 100%);
    height: 74px;
    margin: 0 auto .35rem;
}

.nsu-library-card-hint {
    margin-top: .15rem;
    color: #6c757d;
    font-size: .8rem;
}

.nsu-library-card-number {
    margin-top: .35rem;
    color: #212529;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.nsu-library-card-details {
    margin-top: 1rem;
}

.nsu-library-card-details summary {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--nsu-blue, #003b8f);
    font-weight: 700;
    cursor: pointer;
}

.nsu-library-card-details dl {
    margin: 1rem 0 0;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: .5rem 1rem;
}

.nsu-library-card-details dt {
    font-weight: 700;
}

.nsu-library-card-details dd {
    margin: 0;
}

.nsu-dashboard-card__cta {
    margin-top: .35rem;
    max-width: 100%;
}

.nsu-dashboard-card__cta-link {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

/* =====================================================
   Minimal Dashboard Card CTA Support
   Keep the original compact card layout. Metrics read on one line,
   and dual actions wrap inside the card with a pipe separator.
===================================================== */

.nsu-dashboard-card__metric {
    line-height: 1.35;
}

.nsu-dashboard-card--has-secondary {
    color: inherit;
    text-decoration: none;
}

.nsu-dashboard-card__cta a {
    color: var(--nsu-blue, #003b8f);
    font-weight: 700;
}

.nsu-dashboard-card__cta-separator {
    margin-left: .25rem;
    color: #6c757d;
    font-weight: 400;
}
