/* ============================================================
   InspireSpark – Sidebar & Lesson Page Overrides
   ============================================================ */

/* ── Sidebar: Modern Deep-Purple Design ── */
.solo-course-single-sidebar,
.solo-course-single-sidebar-wrapper.solo-lesson-sidebar {
    background: linear-gradient(180deg, #1a1035 0%, #2d1b4e 60%, #1e1040 100%) !important;
    border-right: none !important;
}

/* Sidebar header */
.solo-course-single-sidebar-title {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 28px 24px !important;
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    display: flex !important;
    align-items: center !important;
}

.solo-course-single-sidebar-title span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Close button in sidebar header */
.solo-course-single-sidebar-title .solo-iconic-btn,
.solo-course-single-sidebar-title button {
    color: rgba(255, 255, 255, 0.6) !important;
}

.solo-course-single-sidebar-title .solo-iconic-btn:hover {
    color: #ffffff !important;
}

/* Topic accordion header */
.solo-course-topic .solo-accordion-item-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 18px 20px !important;
    transition: background 0.2s ease;
    cursor: pointer;
}

.solo-course-topic .solo-accordion-item-header:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.solo-course-topic .solo-accordion-item-header.is-active,
.solo-course-topic .is-active.solo-accordion-item-header {
    background: rgba(118, 75, 162, 0.25) !important;
    border-left: 4px solid #a78bfa !important;
}

/* Topic title */
.solo-course-topic-title {
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.875rem !important;
}

.solo-course-topic .is-active .solo-course-topic-title,
.solo-course-topic .solo-accordion-item-header.is-active .solo-course-topic-title {
    color: #c4b5fd !important;
}

/* Progress badge */
.solo-course-topic-summary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.65) !important;
    padding: 3px 10px !important;
    border-radius: 20px;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
}

.solo-course-topic .is-active .solo-course-topic-summary {
    background: rgba(167, 139, 250, 0.25) !important;
    color: #c4b5fd !important;
}

/* Chevron arrow icon */
.solo-course-topic .solo-accordion-item-header .solo-icon-angle-down,
.solo-course-topic .solo-accordion-item-header .solo-icon-angle-up,
.solo-course-topic .solo-accordion-item-header i[class*="solo-icon"] {
    color: rgba(255, 255, 255, 0.45) !important;
}

.solo-course-topic .solo-accordion-item-header.is-active i[class*="solo-icon"] {
    color: #a78bfa !important;
}

/* Lesson items */
.solo-accordion-item-body {
    background: rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.solo-course-topic-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: background 0.15s ease !important;
}

.solo-course-topic-item>a {
    padding: 13px 20px 13px 32px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.solo-course-topic-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

.solo-course-topic-item.is-active {
    background: rgba(167, 139, 250, 0.15) !important;
    border-right: 3px solid #a78bfa !important;
    border-left: none !important;
    box-shadow: none !important;
}

/* Lesson title text */
.solo-course-topic-item-title {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.84rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    transition: color 0.15s ease;
}

.solo-course-topic-item:hover .solo-course-topic-item-title {
    color: rgba(255, 255, 255, 0.9) !important;
}

.solo-course-topic-item.is-active .solo-course-topic-item-title {
    color: #c4b5fd !important;
    font-weight: 600 !important;
}

/* Lesson type icon */
.solo-course-topic-item-icon {
    color: rgba(255, 255, 255, 0.3) !important;
}

.solo-course-topic-item.is-active .solo-course-topic-item-icon {
    color: #a78bfa !important;
}

/* Completion checkbox */
.solo-course-topic-item .solo-form-check-circle {
    width: 17px !important;
    height: 17px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
    transition: all 0.25s ease;
    background: transparent !important;
    flex-shrink: 0;
}

.solo-course-topic-item .solo-form-check-circle:checked {
    background: #a78bfa !important;
    border-color: #a78bfa !important;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.4) !important;
}

/* Bottom nav bar (Dashboard / Rewards / AI / Support) */
.solo-lesson-sidebar~* .trs-panel-trigger,
.trs-panel-trigger,
.trs-ticket-trigger {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ── Take Note Button: inline with tabs ── */

/* Make the spotlight nav a flex row so the button sits on the same line */
.solo-course-spotlight-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 16px 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #ffffff;
    position: relative;
}

/* Tab items stay left */
.solo-course-spotlight-nav>li.solo-nav-item {
    flex: 0 0 auto !important;
}

/* Take Note button inline – same line, pushed to right */
#solo-lesson-nav-take-note-btn {
    position: static !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.25) !important;
    transition: all 0.25s ease !important;
    white-space: nowrap;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    z-index: auto !important;
}

#solo-lesson-nav-take-note-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(118, 75, 162, 0.35) !important;
}

/* Remove the arrow decoration that was for absolute positioning */
#solo-lesson-nav-take-note-btn::after {
    display: none !important;
}

/* ── Tab links ── */
.solo-nav-item .solo-nav-link {
    border-radius: 8px;
    padding: 9px 18px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
    color: #64748b;
    background: transparent;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

.solo-nav-item .solo-nav-link:hover {
    background: #f1f5f9;
    color: #764BA2;
    border-color: #e2e8f0;
}

.solo-nav-item .solo-nav-link.is-active {
    background: #764BA2 !important;
    color: #ffffff !important;
    border-color: #764BA2 !important;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3) !important;
}

.solo-nav-item .solo-nav-link.is-active span {
    color: #ffffff !important;
}

:root {
    --solo-text-size: 16px;
    --solo-color-white: #fff;
    --solo-color-success: #06B6D4;
    --solo-color-success-rgb: 6, 182, 212;
    --solo-color-warning: #ed9700;
    --solo-color-warning-rgb: 237, 151, 0;
    --solo-color-danger: #f44337;
    --solo-color-danger-rgb: 244, 67, 55;
    --solo-color-secondary: #41454f;
    --solo-color-subdued: #5b616f;
    --solo-color-hints: #767c8e;
    --solo-color-muted: #757c8e;
    --solo-color-gray: #e3e5eb;
    --solo-color-gray-10: #eff1f6
}

.solo-color-black {
    color: var(--solo-body-color)
}

.solo-color-white {
    color: #fff
}

.solo-color-primary {
    color: var(--solo-color-primary)
}

.solo-color-success {
    color: #06B6D4
}

.solo-color-warning {
    color: #ed9700
}

.solo-color-danger {
    color: #f44337
}

.solo-color-secondary {
    color: #41454f
}

.solo-color-muted {
    color: #757c8e
}

.solo-color-subdued {
    color: #5b616f
}

.solo-color-hints {
    color: #767c8e
}

.solo-color-gray-20 {
    color: #e3e5eb
}

.solo-color-gray-10 {
    color: #eff1f6
}

.solo-bg-black {
    background-color: var(--solo-body-color)
}

.solo-bg-white {
    background-color: #fff
}

.solo-bg-primary {
    background-color: var(--solo-color-primary)
}

.solo-bg-success {
    background-color: #06B6D4
}

.solo-bg-warning {
    background-color: #ed9700
}

.solo-bg-danger {
    background-color: #f44337
}

.solo-bg-secondary {
    background-color: #41454f
}

.solo-bg-muted {
    background-color: #757c8e
}

.solo-bg-subdued {
    background-color: #5b616f
}

.solo-bg-hints {
    background-color: #767c8e
}

.solo-bg-gray-20 {
    background-color: #e3e5eb
}

.solo-bg-gray-10 {
    background-color: #eff1f6
}

.text-regular-body,
.solo-text-regular-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 162%
}

.text-regular-caption,
.solo-text-regular-caption {
    font-size: 15px;
    font-weight: 400;
    line-height: 160%
}

.text-regular-small,
.text-body,
.solo-text-regular-small {
    font-size: 13px;
    font-weight: 400;
    line-height: 138%
}

.text-regular-tiny,
.solo-text-regular-tiny {
    font-size: 11px;
    font-weight: 400;
    line-height: 145%
}

.text-medium-h1,
.solo-text-medium-h1 {
    font-size: 80px;
    font-weight: 500;
    line-height: 101%
}

.text-medium-h2,
.solo-text-medium-h2 {
    font-size: 60px;
    font-weight: 500;
    line-height: 117%
}

.text-medium-h3,
.solo-text-medium-h3 {
    font-size: 40px;
    font-weight: 500;
    line-height: 120%
}

.text-medium-h4,
.solo-text-medium-h4 {
    font-size: 30px;
    font-weight: 500;
    line-height: 123%
}

.text-medium-h5,
.solo-text-medium-h5 {
    font-size: 24px;
    font-weight: 500;
    line-height: 142%
}

.text-medium-h6,
.solo-text-medium-h6 {
    font-size: 20px;
    font-weight: 500;
    line-height: 140%
}

.text-medium-body,
.solo-text-medium-body {
    font-size: 16px;
    font-weight: 500;
    line-height: 162%
}

.text-medium-caption,
.solo-text-medium-caption {
    font-size: 15px;
    font-weight: 500;
    line-height: 160%
}

.text-medium-small,
.solo-text-medium-small {
    font-size: 13px;
    font-weight: 500;
    line-height: 162%
}

.text-medium-tiny,
.solo-text-medium-tiny {
    font-size: 11px;
    font-weight: 500;
    line-height: 145%
}

.text-semi-h1,
.solo-text-semi-h1 {
    font-size: 80px;
    font-weight: 600;
    line-height: 101%
}

.text-semi-h2,
.solo-text-semi-h2 {
    font-size: 60px;
    font-weight: 600;
    line-height: 117%
}

.text-semi-h3,
.solo-text-semi-h3 {
    font-size: 40px;
    font-weight: 600;
    line-height: 120%
}

.text-semi-h4,
.solo-text-semi-h4 {
    font-size: 30px;
    font-weight: 600;
    line-height: 123%
}

.text-semi-h5,
.solo-text-semi-h5 {
    font-size: 24px;
    font-weight: 600;
    line-height: 142%
}

.text-semi-h6,
.solo-text-semi-h6 {
    font-size: 20px;
    font-weight: 600;
    line-height: 150%
}

.text-semi-caption,
.solo-text-semi-caption {
    font-size: 15px;
    font-weight: 600;
    line-height: 165%
}

.text-semi-small,
.solo-text-semi-small {
    font-size: 13px;
    font-weight: 600;
    line-height: 128%
}

.text-bold-h1,
.solo-text-bold-h1 {
    font-size: 80px;
    font-weight: 700;
    line-height: 101%
}

.text-bold-h2,
.solo-text-bold-h2 {
    font-size: 60px;
    font-weight: 700;
    line-height: 117%
}

.text-bold-h3,
.solo-text-bold-h3 {
    font-size: 40px;
    font-weight: 700;
    line-height: 120%
}

.text-bold-h4,
.solo-text-bold-h4 {
    font-size: 30px;
    font-weight: 700;
    line-height: 123%
}

.text-bold-h5,
.solo-text-bold-h5 {
    font-size: 24px;
    font-weight: 700;
    line-height: 142%
}

.text-bold-h6,
.solo-text-bold-h6 {
    font-size: 20px;
    font-weight: 700;
    line-height: 150%
}

.text-bold-body,
.solo-text-bold-body {
    font-size: 16px;
    font-weight: 700;
    line-height: 162%
}

.text-bold-caption,
.solo-text-bold-caption {
    font-size: 15px;
    font-weight: 700;
    line-height: 160%
}

.text-bold-small,
.solo-text-bold-small {
    font-size: 13px;
    font-weight: 700;
    line-height: 162%
}

.text-bold-tiny,
.solo-text-bold-tiny {
    font-size: 11px;
    font-weight: 700;
    line-height: 145%
}

.text-btn-xlarge,
.solo-text-btn-xlarge {
    font-size: 18px;
    font-weight: 500;
    line-height: 178%
}

.text-btn-large,
.solo-text-btn-large {
    font-size: 16px;
    font-weight: 500;
    line-height: 200%
}

.text-btn-medium,
.solo-text-btn-medium {
    font-size: 15px;
    font-weight: 500;
    line-height: 160%
}

.text-btn-small,
.solo-text-btn-small {
    font-size: 13px;
    font-weight: 500;
    line-height: 123%
}

#solo-certificate-showcase {
    align-items: center;
    gap: 70px;
    display: flex
}

@media (max-width:575.98px) {
    #solo-certificate-showcase {
        border: 1px solid var(--solo-border-color);
        border-radius: 5px;
        flex-direction: column;
        align-items: center;
        gap: 50px;
        padding: 40px 0
    }
}

#solo-certificate-showcase .solo-cs-text {
    background: linear-gradient(90deg, #e0e2ea, #fff);
    border-radius: 4px;
    width: calc(60% - 35px);
    padding: 1px
}

#solo-certificate-showcase .solo-cs-text>div {
    background-color: #fff;
    border-radius: 3px;
    padding: 23px 0 25px 23px
}

@media (max-width:575.98px) {
    #solo-certificate-showcase .solo-cs-text {
        text-align: center;
        background: 0 0;
        width: 100%;
        padding: 0 20px
    }

    #solo-certificate-showcase .solo-cs-text>div {
        padding: 0
    }
}

#solo-certificate-showcase .solo-cs-text h3 {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden
}

@media (max-width:575.98px) {
    #solo-certificate-showcase .solo-cs-text h3 {
        white-space: unset;
        overflow: unset;
        text-overflow: unset
    }
}

#solo-certificate-showcase .solo-cs-wrapper {
    width: 40%;
    position: relative
}

@media (max-width:575.98px) {
    #solo-certificate-showcase .solo-cs-wrapper {
        width: 100%
    }
}

#solo-certificate-showcase .solo-cs-wrapper:before {
    content: url(../../addons/solo-certificate/assets/images/certificate-frame.png);
    height: 219px;
    position: absolute;
    bottom: -46px;
    left: -44px
}

@media (max-width:575.98px) {
    #solo-certificate-showcase .solo-cs-wrapper:before {
        left: 50%;
        transform: translate(-50%)
    }
}

#solo-certificate-showcase .solo-cs-wrapper .solo-cs-image-wrapper {
    z-index: 1;
    position: relative
}

@media (max-width:575.98px) {
    #solo-certificate-showcase .solo-cs-wrapper .solo-cs-image-wrapper {
        justify-content: center;
        display: flex
    }
}

#solo-certificate-showcase .solo-cs-wrapper .solo-cs-image-wrapper img {
    border-radius: 4px;
    max-width: 252px;
    box-shadow: 0 4px 8px rgba(0, 30, 43, .12)
}