/* Participant learning portal */
.participant-app {
    --participant-blue: #1769e8;
    --participant-blue-soft: #eef5ff;
    --participant-green: #27a85b;
    --participant-ink: #172033;
    --participant-muted: #6f7787;
    --participant-line: #e7ebf2;
    --participant-surface: #ffffff;
    --participant-canvas: #f8faff;
    background: var(--participant-canvas) !important;
}

.participant-topbar {
    min-height: 64px;
    padding: 0 24px;
    background: var(--participant-surface) !important;
    border-bottom: 1px solid var(--participant-line) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.participant-topbar .container-fluid {
    padding: 0;
}

.participant-brand {
    width: 210px;
    margin: 0;
    padding: 0;
}

.participant-brand img,
.participant-topbar .navbar-brand img {
    height: 46px;
    max-width: 150px;
    object-fit: contain;
}

.participant-top-links {
    gap: 18px;
}

.participant-top-links .nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 64px;
    padding: 0 6px !important;
    color: var(--participant-muted) !important;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
}

.participant-top-links .nav-link:hover,
.participant-top-links .nav-link.active {
    color: var(--participant-blue) !important;
    border-bottom-color: var(--participant-blue);
}

.participant-account-nav .theme-toggle {
    width: 38px;
    height: 38px;
    margin: 0 18px 0 0;
}

.participant-user-menu {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--participant-ink) !important;
    font-size: 0.86rem;
}

.participant-avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9eef7;
    color: #64748b;
    font-weight: 700;
}

.participant-shell {
    min-height: calc(100vh - 64px);
    display: flex;
}

.participant-sidebar {
    width: 220px;
    flex: 0 0 220px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--participant-surface);
    border-right: 1px solid var(--participant-line);
}

.participant-side-nav {
    display: grid;
    gap: 6px;
}

.participant-side-link {
    min-height: 44px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-radius: 8px;
    color: #4d5668;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.participant-side-link i {
    width: 19px;
    text-align: center;
}

.participant-side-link:hover {
    color: var(--participant-blue);
    background: var(--participant-blue-soft);
    transform: translateX(2px);
}

.participant-side-link.active {
    color: #fff;
    background: linear-gradient(135deg, #2581ef, #1261e2);
    box-shadow: 0 8px 20px rgba(23, 105, 232, 0.2);
}

.participant-motivation {
    padding: 18px 14px 14px;
    border: 1px solid var(--participant-line);
    border-radius: 12px;
    text-align: center;
    background: linear-gradient(180deg, #fffef9, #fff);
}

.participant-motivation-art {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #f4a700;
    background: #fff4cc;
    font-size: 1.6rem;
}

.participant-motivation h6 {
    margin-bottom: 5px;
    color: var(--participant-ink);
}

.participant-motivation p {
    margin-bottom: 13px;
    color: var(--participant-muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

.participant-view {
    min-width: 0;
    flex: 1;
}

.participant-flash {
    padding: 16px 28px 0;
}

.participant-main {
    width: 100%;
    padding: 24px 28px 34px;
}

.participant-dashboard {
    max-width: 1440px;
    margin: 0 auto;
}

.participant-dashboard .card:hover {
    transform: none;
    box-shadow: 0 8px 26px rgba(42, 61, 92, 0.08);
}

.participant-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.participant-dashboard-header h1 {
    margin: 0 0 4px;
    color: var(--participant-ink);
    font-size: clamp(1.35rem, 2.1vw, 1.8rem);
    font-weight: 700;
}

.participant-dashboard-header p {
    margin: 0;
    color: var(--participant-muted);
    font-size: 0.88rem;
}

.participant-dashboard .btn {
    border-radius: 7px;
    font-weight: 600;
}

.participant-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.participant-stat-card {
    min-height: 108px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--participant-line);
    border-radius: 10px;
    background: var(--participant-surface);
    box-shadow: 0 4px 15px rgba(42, 61, 92, 0.04);
}

.participant-stat-card.stat-green { background: linear-gradient(135deg, #f5fcf3, #fff); }
.participant-stat-card.stat-blue { background: linear-gradient(135deg, #f2f7ff, #fff); }
.participant-stat-card.stat-purple { background: linear-gradient(135deg, #faf5ff, #fff); }
.participant-stat-card.stat-score { background: linear-gradient(135deg, #fffaf0, #fff); }

.participant-stat-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

.stat-green .participant-stat-icon { color: #2f8d43; background: #dff3dc; }
.stat-blue .participant-stat-icon { color: #387be5; background: #dfeaff; }
.stat-purple .participant-stat-icon { color: #8445d5; background: #ecdefe; }
.stat-score .participant-stat-icon { color: #d99b00; background: #fff0bd; }

.participant-stat-label {
    display: block;
    margin-bottom: 2px;
    color: var(--participant-muted);
    font-size: 0.72rem;
}

.participant-stat-value {
    display: block;
    color: var(--participant-ink);
    font-size: 1.45rem;
    line-height: 1.1;
    font-weight: 700;
}

.participant-stat-note {
    display: block;
    margin-top: 5px;
    color: var(--participant-muted);
    font-size: 0.64rem;
}

.participant-score-pair {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.participant-score-pair > div + div {
    padding-left: 10px;
    border-left: 1px solid #efe5c9;
}

.participant-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
    gap: 16px;
}

.participant-panel {
    overflow: hidden;
    border: 1px solid var(--participant-line);
    border-radius: 11px;
    background: var(--participant-surface);
    box-shadow: 0 4px 16px rgba(42, 61, 92, 0.035);
}

.participant-panel + .participant-panel {
    margin-top: 16px;
}

.participant-panel-header {
    min-height: 58px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--participant-line);
}

.participant-panel-title {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.participant-panel-title h2,
.participant-panel-title h3 {
    margin: 0;
    color: var(--participant-ink);
    font-size: 0.98rem;
    font-weight: 700;
}

.participant-panel-title p {
    margin: 2px 0 0;
    color: var(--participant-muted);
    font-size: 0.7rem;
}

.participant-panel-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #7740d0;
    background: #eee4ff;
}

.participant-panel-body {
    padding: 16px;
}

.participant-course-block + .participant-course-block {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--participant-line);
}

.participant-course-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.participant-course-heading h3 {
    margin: 0;
    color: var(--participant-ink);
    font-size: 1rem;
}

.participant-course-heading p {
    margin: 2px 0 0;
    color: var(--participant-muted);
    font-size: 0.72rem;
}

.participant-result-row {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #d8edde;
    border-radius: 8px;
    background: #f1fbf3;
}

.participant-result-row strong,
.participant-lesson-row strong {
    display: block;
    color: var(--participant-ink);
    font-size: 0.84rem;
}

.participant-result-row span,
.participant-lesson-row span {
    color: var(--participant-muted);
    font-size: 0.72rem;
}

.participant-progress-wrap {
    margin: 16px 0;
}

.participant-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    color: var(--participant-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.participant-progress-wrap .progress {
    height: 6px;
    border-radius: 999px;
}

.participant-lesson-list {
    display: grid;
    gap: 9px;
}

.participant-lesson-row {
    padding: 11px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--participant-line);
    border-radius: 8px;
}

.participant-lesson-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-lesson-status {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--participant-green);
    background: #e3f6e8;
}

.participant-lesson-status.pending {
    color: #7b8797;
    background: #edf0f4;
}

.participant-course-actions {
    margin-top: 13px;
}

.participant-course-actions .btn {
    width: 100%;
}

.participant-activity-list {
    padding: 0;
}

.participant-activity-item {
    padding: 13px 16px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--participant-line);
}

.participant-activity-item:last-child {
    border-bottom: 0;
}

.participant-activity-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--participant-blue);
    background: var(--participant-blue-soft);
    font-size: 0.72rem;
}

.participant-activity-icon.quiz {
    color: var(--participant-green);
    background: #e4f7e9;
}

.participant-activity-copy {
    min-width: 0;
}

.participant-activity-copy strong {
    display: block;
    overflow: hidden;
    color: var(--participant-ink);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-activity-copy span,
.participant-activity-date {
    color: var(--participant-muted);
    font-size: 0.66rem;
}

.participant-learning-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.participant-learning-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.participant-learning-copy i {
    color: var(--participant-blue);
    font-size: 1.4rem;
}

.participant-learning-copy strong {
    display: block;
    color: var(--participant-ink);
    font-size: 0.84rem;
}

.participant-learning-copy span {
    color: var(--participant-muted);
    font-size: 0.7rem;
}

.participant-recommendation {
    min-height: 156px;
    position: relative;
    background: linear-gradient(135deg, #fffef8, #fff);
}

.participant-recommendation .participant-panel-body {
    padding-right: 88px;
}

.participant-recommendation-art {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: #7bb257;
    font-size: 3rem;
    opacity: 0.8;
}

.participant-empty {
    padding: 28px 18px;
    text-align: center;
    color: var(--participant-muted);
}

.participant-empty i {
    display: block;
    margin-bottom: 9px;
    font-size: 1.65rem;
}

.participant-support-copy {
    color: var(--participant-muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

[data-theme="dark"] .participant-app {
    --participant-ink: #f1f5f9;
    --participant-muted: #aab4c3;
    --participant-line: #3e4858;
    --participant-surface: #26303c;
    --participant-canvas: #1b232d;
    --participant-blue-soft: #1e3a5f;
}

[data-theme="dark"] .participant-stat-card.stat-green,
[data-theme="dark"] .participant-stat-card.stat-blue,
[data-theme="dark"] .participant-stat-card.stat-purple,
[data-theme="dark"] .participant-stat-card.stat-score,
[data-theme="dark"] .participant-recommendation,
[data-theme="dark"] .participant-motivation {
    background: var(--participant-surface);
}

[data-theme="dark"] .participant-result-row {
    background: #203a2a;
    border-color: #335c40;
}

@media (max-width: 1199.98px) {
    .participant-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .participant-content-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    }
}

@media (max-width: 991.98px) {
    .participant-topbar {
        padding: 6px 18px;
    }

    .participant-brand {
        width: auto;
    }

    .participant-top-links {
        gap: 0;
        padding-top: 8px;
    }

    .participant-top-links .nav-link {
        min-height: 44px;
        border-bottom: 0;
    }

    .participant-sidebar {
        display: none;
    }

    .participant-main {
        padding: 22px 20px 30px;
    }

    .participant-account-nav {
        align-items: flex-start !important;
        padding-bottom: 10px;
    }

    .participant-account-nav .theme-toggle {
        margin: 7px 0;
    }
}

@media (max-width: 767.98px) {
    .participant-dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

    .participant-dashboard-header .btn {
        width: 100%;
    }

    .participant-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .participant-main {
        padding: 18px 14px 26px;
    }

    .participant-flash {
        padding: 12px 14px 0;
    }

    .participant-stats {
        grid-template-columns: 1fr;
    }

    .participant-stat-card {
        min-height: 96px;
    }

    .participant-score-pair {
        gap: 7px;
    }

    .participant-panel-header,
    .participant-panel-body {
        padding: 13px;
    }

    .participant-result-row,
    .participant-learning-row {
        align-items: flex-start;
        flex-direction: column;
    }
}