/* SafeLogic Portal Modules - front-end styles
   Colors match the SafeLogic marketing site theme:
   navy #1B2A4A, gold #C9A02C, blue #1F5CA8, muted #6b7280, border #e2e8f0 */

/* Top-level Portal / CSA Score / Training Hub tab bar */
.slpm-portal-topnav {
    display: flex;
    gap: 6px;
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 6px;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.slpm-portal-topnav-tab {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    padding: 10px 20px;
    border-radius: 7px;
    text-decoration: none !important;
    transition: background .15s, color .15s;
}

.slpm-portal-topnav-tab:hover {
    color: #1B2A4A;
    background: rgba(27,42,74,0.06);
}

.slpm-portal-topnav-tab.is-active {
    background: #1B2A4A;
    color: #fff !important;
}

.slpm-portal-view {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    max-width: 900px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.slpm-view-title {
    font-size: 26px;
    font-weight: 800;
    color: #1B2A4A;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

/* Non-client teaser (blurred preview + login CTA) */
.slpm-teaser-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}

.slpm-teaser-blur {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    opacity: 0.85;
    pointer-events: none;
    user-select: none;
    transform: scale(1.02); /* hides sharp edges blur can reveal */
}

.slpm-teaser-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    background: radial-gradient(ellipse at center, rgba(245,247,250,0.55) 0%, rgba(245,247,250,0.92) 75%);
}

.slpm-teaser-lock {
    font-size: 34px;
    margin-bottom: 6px;
}

.slpm-teaser-overlay h3 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1B2A4A;
    margin: 0 0 10px;
}

.slpm-teaser-overlay p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6b7280;
    max-width: 420px;
    line-height: 1.6;
    margin: 0 0 22px;
}

.slpm-teaser-btn {
    display: inline-block;
    background: #1B2A4A;
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 32px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 14px;
    transition: opacity .15s;
}

.slpm-teaser-btn:hover {
    opacity: .88;
}

.slpm-teaser-link {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1F5CA8;
    text-decoration: none;
}

.slpm-teaser-link:hover {
    text-decoration: underline;
}

.slpm-notice,
.slpm-empty {
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    color: #6b7280;
    font-size: 15px;
}

.slpm-notice a {
    color: #1F5CA8;
    font-weight: 600;
}

/* CSA Score — hero header, matching Training Hub */
.slpm-csa-hero {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 36px;
}

.slpm-csa-eyebrow {
    display: inline-block;
    background: rgba(31,92,168,.1);
    color: #1F5CA8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.slpm-csa .slpm-view-title {
    text-align: center;
    margin-bottom: 6px;
}

.slpm-csa-hero-sub {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Overall score gauge */
.slpm-overall-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.slpm-overall-gauge {
    position: relative;
    width: 180px;
    height: 180px;
}

.slpm-overall-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slpm-overall-number {
    font-size: 42px;
    font-weight: 800;
    color: #1B2A4A;
    line-height: 1;
}

.slpm-overall-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    margin-top: 4px;
}

.slpm-overall-status {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,163,74,.1);
    color: #0d8f43;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
}

.slpm-overall-status.is-alert {
    background: rgba(220,38,38,.1);
    color: #dc2626;
}

/* Category grid */
.slpm-basic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.slpm-basic-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: transform .18s ease, box-shadow .18s ease;
    text-align: center;
}

.slpm-basic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(27,42,74,.1);
}

.slpm-basic-icon-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.slpm-basic-icon {
    width: 18px;
    height: 18px;
    color: #1F5CA8;
    flex-shrink: 0;
}

.slpm-basic-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.slpm-status-alert .slpm-basic-icon {
    color: #dc2626;
}

.slpm-basic-label {
    font-size: 13px;
    font-weight: 700;
    color: #1B2A4A;
}

.slpm-basic-ring {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 14px;
}

.slpm-basic-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slpm-basic-ring-score {
    font-size: 22px;
    font-weight: 800;
    color: #1F5CA8;
}

.slpm-status-alert .slpm-basic-ring-score {
    color: #dc2626;
}

.slpm-basic-ring-pct {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
}

.slpm-basic-threshold-note {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.slpm-status-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(31,92,168,.1);
    color: #1F5CA8;
}

.slpm-status-alert .slpm-status-pill {
    background: rgba(220,38,38,.1);
    color: #dc2626;
}

/* Training Hub CTA banner */
.slpm-csa-cta {
    background: linear-gradient(135deg,#1B2A4A,#24365c);
    border-radius: 16px;
    padding: 36px 32px;
    text-align: center;
    margin-top: 36px;
}

.slpm-csa-cta h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.slpm-csa-cta p {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    max-width: 440px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.slpm-csa-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #C9A02C;
    color: #000 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 14px;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity .15s;
}

.slpm-csa-cta-btn:hover {
    opacity: .88;
}

.slpm-basic-card-clickable {
    cursor: pointer;
}

.slpm-basic-card-clickable:focus-visible {
    outline: 2px solid #1F5CA8;
    outline-offset: 2px;
}

.slpm-basic-view-source {
    margin-top: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    transition: color .15s;
}

.slpm-basic-card-clickable:hover .slpm-basic-view-source {
    color: #1F5CA8;
}

.slpm-status-alert.slpm-basic-card-clickable:hover .slpm-basic-view-source {
    color: #dc2626;
}

/* Fallback "no report on file" modal */
.slpm-report-modal {
    position: fixed;
    inset: 0;
    background: rgba(27,42,74,.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.slpm-report-modal-inner {
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px;
    max-width: 380px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.slpm-report-modal-icon {
    font-size: 30px;
    margin-bottom: 14px;
}

.slpm-report-modal-inner p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #1B2A4A;
    line-height: 1.6;
    margin: 0;
}

.slpm-report-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
}

.slpm-report-modal-close:hover {
    color: #1B2A4A;
}

.slpm-last-updated {
    margin-top: 28px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* Training Hub — hero header */
.slpm-th-hero {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 32px;
}

.slpm-th-hero-eyebrow {
    display: inline-block;
    background: rgba(201,160,44,.12);
    color: #C9A02C;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.slpm-training .slpm-view-title {
    text-align: center;
    margin-bottom: 6px;
}

.slpm-th-hero-sub {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Filter tabs */
.slpm-th-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.slpm-th-filter {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    padding: 8px 18px;
    border-radius: 100px;
    cursor: pointer;
    transition: all .15s;
}

.slpm-th-filter:hover {
    border-color: #1F5CA8;
    color: #1F5CA8;
}

.slpm-th-filter.is-active {
    background: #1B2A4A;
    border-color: #1B2A4A;
    color: #fff;
}

/* Card grid */
.slpm-th-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.slpm-th-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
}

.slpm-th-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(27,42,74,.14);
}

.slpm-th-band {
    position: relative;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slpm-th-band-icon {
    font-size: 34px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}

.slpm-th-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,.9);
    color: #1B2A4A;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 100px;
}

.slpm-th-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.slpm-th-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #1B2A4A;
    margin-bottom: 6px;
    line-height: 1.35;
}

.slpm-th-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
}

.slpm-th-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1F5CA8;
    text-decoration: none;
    margin-top: auto;
}

.slpm-th-cta:hover {
    text-decoration: underline;
}

