/* ---------------------------------------------------------
       TYLKO DODATKI SPECYFICZNE DLA PODSTRONY "MOJE KURSY"
       app.css nadal odpowiada za główny wygląd aplikacji
    --------------------------------------------------------- */

    .odin-courses-page {
        --odin-blue: #1769ff;
        --odin-blue-soft: rgba(23, 105, 255, .08);
        --odin-green: #16a66a;
        --odin-orange: #f59e0b;
        --odin-gray: #98a2b3;
    }

    .odin-courses-page .page-title {
        font-weight: 700;
        letter-spacing: -.5px;
    }

    .odin-courses-page .summary-card {
        min-height: 112px;
    }

    .odin-courses-page .summary-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        font-size: 22px;
    }

    .odin-courses-page .summary-icon.blue {
        color: #1769ff;
        background: rgba(23, 105, 255, .09);
    }

    .odin-courses-page .summary-icon.green {
        color: #16a66a;
        background: rgba(22, 166, 106, .09);
    }

    .odin-courses-page .summary-icon.purple {
        color: #7c3aed;
        background: rgba(124, 58, 237, .09);
    }

    .odin-courses-page .summary-icon.orange {
        color: #e98a00;
        background: rgba(245, 158, 11, .11);
    }


    /* Tabs */

    .odin-course-tabs {
        gap: 10px;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .odin-course-tabs .nav-link {
        border: 0;
        border-bottom: 2px solid transparent;
        color: var(--bs-body-color);
        background: transparent;
        border-radius: 0;
        padding: 14px 18px;
        font-weight: 500;
    }

    .odin-course-tabs .nav-link.active {
        color: var(--odin-blue);
        border-bottom-color: var(--odin-blue);
        background: transparent;
    }


    .course-meta-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--course-accent);
        background: var(--course-accent-soft);
        flex: 0 0 auto;
    }

    .course-meta-item {
        display: flex;
        align-items: center;
        gap: .6rem;
        min-width: 0;
    }

    .course-continue-btn {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        white-space: nowrap;
        box-shadow: 0 6px 16px rgba(23, 105, 255, .2);
    }

    .course-continue-btn:hover i { transform: translateX(2px); }
    .course-continue-btn i { transition: transform .18s ease; }

    /* Right column */

    .next-step-row {
        padding: 13px 0;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .next-step-row:last-child {
        border-bottom: 0;
    }

    .next-step-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: var(--odin-blue-soft);
        color: var(--odin-blue);
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .next-step-course {
        display: inline-flex;
        margin-bottom: .2rem;
        font-size: .66rem;
        font-weight: 700;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .next-step-action {
        min-width: 82px;
        white-space: nowrap;
    }

    @media (max-width: 575.98px) {
        .next-step-row {
            align-items: flex-start !important;
            flex-wrap: wrap;
        }

        .next-step-action {
            width: calc(100% - 51px);
            margin-left: 51px;
        }
    }

    .instructor-avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #dce4ee;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex: 0 0 auto;
    }

    .action-circle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--bs-border-color);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--bs-body-color);
        text-decoration: none;
        background: var(--bs-body-bg);
    }

    .tip-box {
        background:
            linear-gradient(
                135deg,
                rgba(23,105,255,.08),
                rgba(23,105,255,.02)
            );
    }


    /* Completed */

    .completed-course {
        opacity: .97;
    }

    /* Finalny wariant kart przeniesiony z odin-student-welcom.php */

    .student-course-card {
        --course-accent: #1769ff;
        --course-accent-soft: rgba(23, 105, 255, .08);
        border: 1px solid var(--bs-border-color);
        box-shadow: none;
    }

    .student-course-card[hidden],
    #emptyCourseState[hidden] {
        display: none !important;
    }


    .student-course-cover {
        width: 100%;
        min-height: 132px;
        height: 100%;
        border-radius: .65rem;
        object-fit: cover;
    }

    .student-course-meta {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .75rem;
        font-size: .75rem;
    }

    .student-course-progress {
        height: 7px;
        overflow: hidden;
        border-radius: 99px;
    }

    .student-course-progress .progress-bar {
        border-radius: inherit;
    }

    .course-progress-trigger {
        width: 100%;
        padding: .35rem 0;
        color: inherit;
        background: transparent;
        border: 0;
        text-align: left;
    }

    .course-progress-trigger:hover .student-course-progress {
        opacity: .85;
    }

    .course-progress-trigger:focus-visible {
        outline: 2px solid var(--odin-blue);
        outline-offset: 4px;
        border-radius: .35rem;
    }

    .course-progress-popover {
        --bs-popover-max-width: 320px;
        --bs-popover-bg: var(--bs-body-bg);
        --bs-popover-border-color: var(--bs-border-color);
        --bs-popover-header-bg: transparent;
        --bs-popover-header-color: var(--bs-body-color);
        --bs-popover-body-color: var(--bs-body-color);
    }

    .course-progress-detail + .course-progress-detail {
        margin-top: .55rem;
        padding-top: .55rem;
        border-top: 1px solid var(--bs-border-color);
    }

    .course-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-list-grid .student-course-card .row {
        display: block;
    }

    .course-list-grid .student-course-card [class*="col-md-"],
    .course-list-grid .student-course-card [class*="col-xl-"] {
        width: 100%;
    }

    .course-list-grid .student-course-cover {
        height: 190px;
        min-height: 190px;
        margin-bottom: 1rem;
    }


    @media (max-width: 991.98px) {

        .odin-course-tabs {
            overflow-x: auto;
            flex-wrap: nowrap;
        }

        .odin-course-tabs .nav-link {
            white-space: nowrap;
        }

        .student-course-cover {
            min-height: 180px;
        }

        .course-list-grid {
            grid-template-columns: 1fr;
        }
    }


    @media (max-width: 575.98px) {

        .student-course-meta {
            grid-template-columns: 1fr;
        }
    }
