/**
 * LD Dashboard Tabs & Listings Styles
 *
 * Course, lesson, quiz, assignment listings, grid/list views, and filters.
 *
 * @package Ld_Dashboard
 * @since 7.5.0
 */


/* ==========================================================================
   Stats Bar
   ========================================================================== */

.ld-dashboard-stats-bar {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: var(--ld-white-bg);
    border-radius: var(--ld-border-radius-8);
    box-shadow: var(--ld-box-shadow);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ld-dashboard-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--ld-background);
    border-radius: var(--ld-border-radius-8);
    min-width: 120px;
}

.ld-dashboard-stat-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
}

.ld-dashboard-stat-total .ld-dashboard-stat-icon {
    background: #e3f2fd;
    color: #1976d2;
}

.ld-dashboard-stat-published .ld-dashboard-stat-icon {
    background: #e8f5e9;
    color: #388e3c;
}

.ld-dashboard-stat-draft .ld-dashboard-stat-icon {
    background: #fff3e0;
    color: #f57c00;
}

.ld-dashboard-stat-pending .ld-dashboard-stat-icon {
    background: #fce4ec;
    color: #c2185b;
}

.ld-dashboard-stat-label {
    font-size: 12px;
    color: var(--ld-grey-color);
    display: block;
}

.ld-dashboard-stat-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--ld-heading-color);
    display: block;
}

/* ==========================================================================
   Search Wrapper
   ========================================================================== */

.ld-dashboard-search-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.ld-dashboard-search-wrapper .ld-dashboard-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ld-grey-color);
    font-size: 16px;
}

.ld-dashboard-search-wrapper .ld-dashboard-tab-search {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--ld-border-color);
    border-radius: var(--ld-border-radius-8);
    font-size: 15px;
    background: var(--ld-white-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ld-dashboard-search-wrapper .ld-dashboard-tab-search:focus {
    outline: none;
    border-color: var(--ld-primary-color);
    box-shadow: 0 0 0 3px rgba(var(--ld-primary-color-rgb), 0.1);
}

/* ==========================================================================
   Course Filter
   ========================================================================== */

.ld-dashboard-course-filter {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-end;
    z-index: 1;
    position: relative;
}

.ld-dashboard-course-filter.my-lessons-filter {
    justify-content: flex-start;
}

.my-lessons-filter-inner {
    width: 100%;
    gap: 0px;
}

.ld-dashboard-header-button.ld-dashboard-add-new-button-container {
    text-align: right;
}

.ld-dashboard-course-filter.my-lessons-filter .ld-dashboard-header-button.ld-dashboard-add-new-button-container {
    text-align: right;
    width: 40%;
}

.ld-dashboard-content .ld-dashboard-course-filter.my-lessons-filter .ld-dashboard-actions-item {
    position: relative;
    margin: 0 10px 0 0px;
}

.ld-dashboard-content .ld-dashboard-course-filter .select2-container .select2-selection--single .select2-selection__rendered {
    background: var(--ld-white-bg);
    box-shadow: none;
    font-size: 15px;
    border-color: var(--ld-border-color);
    border-radius: var(--ld-border-radius);
    padding: 0 10px;
}

.ld-dashboard-content .ld-dashboard-course-filter .ld-dashboard-actions-item span.select2-selection__placeholder {
    color: #444;
}

.ld-dashboard-course-filter.my-announcements-filter .ld-dashboard-actions-item {
    flex: 1;
}

.ld-dashboard-course-filter.my-announcements-filter button.ld-dashboard-course-filter-submit,
.ld-dashboard-course-filter.my-announcements-filter .ld-dashboard-course-filter-reset {
    top: -5px;
    position: relative;
}

.ld-dashboard-course-filter button.ld-dashboard-course-filter-submit,
.ld-dashboard-course-filter .ld-dashboard-course-filter-reset {
    border: none;
    background: transparent;
    font-size: 15px;
    padding: 5px;
    cursor: pointer;
    line-height: 35px;
    transition: all 0.3s;
    font-weight: 600;
    display: inline-block;
}

.ld-dashboard-course-filter .ld-dashboard-course-filter-reset {
    margin-left: 5px;
}

.ld-dashboard-course-filter span.select2.select2-container.select2-container--default {
    margin: 0;
}

.ld-dashboard-content .ld-dashboard-course-filter .select2-container.select2-container {
    width: 100% !important;
}

.ld-dashboard-content .ld-dashboard-course-filter .ld-dashboard-actions-item {
    position: relative;
    width: 42% !important;
    margin: 0 10px 0 0px;
}

.ld-dashboard-content .ld-dashboard-course-filter .ld-dashboard-actions-item label {
    padding: 0;
    background: var(--ld-white-bg);
    color: #9d9d9d;
    font-size: 14px;
    display: block;
    line-height: 1.2;
}

.ld-dasboard-my-question-filter.ld-dashboard-course-filter .ld-dashboard-actions-item {
    width: 27.5% !important;
}

.custom-learndash-pagination-nav button.ld-dashboard-pagination-btn {
    display: inline-block;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 40px 0 rgba(94, 92, 154, 0.08);
    font-size: 0;
    padding: 0px 8px;
    height: 38px;
    font-weight: bold;
    color: #153045;
    transition: all 0.3s;
    border: none;
    width: 38px;
    cursor: pointer;
}

.custom-learndash-pagination-nav button.ld-dashboard-pagination-btn:before,
button.ld-dashboard-button.ld-dashboard-pagination-btn.ld-dashboard-last-btn.ld-dashboard-btn-bg:after {
    display: inline-block;
    content: '\e809';
    font-family: 'ldd-icons';
    font-size: 14px;
}

[dir='rtl'] .custom-learndash-pagination-nav button.ld-dashboard-pagination-btn:before,
[dir='rtl'] button.ld-dashboard-button.ld-dashboard-pagination-btn.ld-dashboard-last-btn.ld-dashboard-btn-bg:after {
    transform: rotate(-180deg);
}

button.ld-dashboard-button.ld-dashboard-pagination-btn.ld-dashboard-prev-btn.ld-dashboard-btn-bg:after,
li.custom-learndash-pagination-first button.ld-dashboard-button.ld-dashboard-pagination-btn.ld-dashboard-first-btn.ld-dashboard-btn-bg:after,
li.custom-learndash-pagination-first button.ld-dashboard-button.ld-dashboard-pagination-btn.ld-dashboard-first-btn.ld-dashboard-btn-bg:before {
    content: '\e808';
    font-family: 'ldd-icons';
    font-size: 14px;
}

[dir='rtl'] button.ld-dashboard-button.ld-dashboard-pagination-btn.ld-dashboard-prev-btn.ld-dashboard-btn-bg:after,
[dir='rtl'] li.custom-learndash-pagination-first button.ld-dashboard-button.ld-dashboard-pagination-btn.ld-dashboard-first-btn.ld-dashboard-btn-bg:after,
[dir='rtl'] li.custom-learndash-pagination-first button.ld-dashboard-button.ld-dashboard-pagination-btn.ld-dashboard-first-btn.ld-dashboard-btn-bg:before {
    transform: rotate(-180deg);
}

li.custom-learndash-pagination-prev button.ld-dashboard-pagination-btn:before {
    display: none;
}

.custom-learndash-pagination-nav button.ld-dashboard-pagination-btn:hover {
    color: #fff;
}

.custom-learndash-pagination-nav li.custom-learndash-pagination-pagedisplay {
    font-size: 16px;
}

button.ld-dashboard-course-filter-submit.ld-dashboard-btn-bg,
button.ld-dashboard-course-filter-reset.ld-dashboard-btn-bg {
    display: flex;
    align-content: center;
}


/* ==========================================================================
   My Courses List and Grid
   ========================================================================== */

.ld-dashboard-course-search-section.ld-flex-wrap {
    align-items: center;
    gap: 15px;
}

.ld-dashboard-course-search-section form.ld-dashboard-course-search {
    background: var(--ld-white-bg);
    border-radius: var(--ld-border-radius);
    border: 1px solid var(--ld-border-color);
    padding: 5px 8px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 350px;
}

.ld-dashboard-course-search-section form.ld-dashboard-course-search span.ldd-icon-search {
    color: #A2ABBF;
}

.ld-dashboard-course-search-section form.ld-dashboard-course-search input[type="search"] {
    padding: 0;
    border: none !important;
    outline: 0 !important;
    width: 100%;
    background: transparent;
}

.ld-dashboard-course-grid-list-toggle {
    display: flex;
    gap: 5px;
}

.ld-dashboard-course-grid-list-toggle a {
    color: #A2ABBF;
    font-size: 23px;
    background: var(--ld-white-bg);
    border-radius: var(--ld-border-radius-10);
    border: 1px solid var(--ld-border-color);
    height: 38px;
    width: 38px;
    justify-content: center;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
}

.ld-dashboard-tab-buttons-filter {
    align-items: center;
    margin-bottom: 20px;
    justify-content: space-between;
}

.ld-dashboard-tab-buttons-filter ul.ld-dashboard-filter-links {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ld-dashboard-tab-buttons-filter ul.ld-dashboard-filter-links li {
    display: block;
}

.ld-dashboard-filter-links-button {
    align-items: center;
}

.ld-dashboard-tab-buttons-filter a {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.ld-dashboard-filter-links-button a span.ldd-icons {
    font-size: 18px;
}

.ld-dashboard-content .learndash-wrapper .ld-profile-summary .ld-profile-card {
    margin: 0;
}

.ld-dashboard-content .ld-profile-avatar,
.ld-dashboard-content .ld-profile-heading,
.ld-dashboard-content .ld-profile-edit-link {
    display: none;
}

.ld-dashboard-content .ld-profile-stats {
    padding: 10px;
    background: var(--ld-white-bg);
    -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    -ms-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    -o-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.ld-dashboard-email-content .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #888888;
    min-height: 45px;
}

.ld-dashboard-content.instructor-courses-list {
    max-width: 100%;
}

.instructor-courses-list .ld-mycourse-wrap {
    display: flex;
    margin-bottom: 20px;
    border-radius: var(--ld-border-radius);
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    align-items: center;
    background: var(--ld-white-bg);
    overflow: hidden;
    position: relative;
    padding: 15px;
    border: 1px solid var(--ld-border-color);
    transition: all 0.3s;
}

.ld-dashboard-course-content.ld-dashboard-assignment-content .ld-mycourse-wrap {
    padding: 0;
}

/* Announcement cards — no thumbnail, so content fills full width */
.ld-dashboard-content-inner.ld-my-announcements .ld-mycourse-wrap {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-mycourse-content {
    padding: 0;
    width: 100%;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-mycourse-content h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 22px;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-mycourse-content h3 a {
    font-size: 16px;
    line-height: 22px;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-meta.ld-course-metadata {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-meta.ld-course-metadata ul.post_status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-dashboard-course-status span {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-dashboard-announcement-course-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ld-dashboard-content-inner.ld-my-announcements .mycourse-footer {
    margin-top: 0;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-mycourses-stats {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-mycourses-stats a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #64748b;
    transition: all 0.2s;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-mycourses-stats a:hover {
    background: #f1f5f9;
    color: #334155;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-mycourses-stats a {
    position: relative;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-dashboard-tooltips {
    position: absolute;
    top: -35px;
    right: -15px;
    min-width: 70px;
    padding: 5px 10px;
    background: #444;
    color: #fff;
    font-size: 12px;
    text-align: center;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 10;
    pointer-events: none;
}

.ld-dashboard-content-inner.ld-my-announcements .ld-mycourses-stats a:hover .ld-dashboard-tooltips {
    opacity: 1;
    visibility: visible;
}

.ld-mycourse-thumbnail {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 230px;
    flex: 0 0 230px;
    height: 180px;
    background-size: cover;
    border-radius: var(--ld-border-radius);
    background-position: center;
    display: block;
}

.ld-mycourse-thumb {
    flex: 0 0 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F2F4F9;
    font-size: 60px;
    font-weight: bold;
    color: #333946;
    border-radius: var(--ld-border-radius);
}

.my-courses.ld-dashboard-enrolled-course-wrap .ld-mycourse-thumbnail {
    flex: 0 0 270px;
    height: 190px;
}

.ld-meta.ld-course-metadata {
    margin: 0 0 5px;
}

.ld-mycourse-content {
    padding: 20px 22px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.ld-dashboard-my-ltq-title .ld-mycourse-content {
    padding: 0 15px;
}

.ld-dashboard-my-ltq-title .ld-meta.ld-course-metadata ul,
.ld-dashboard-my-ltq-title .ld-meta.ld-course-metadata.ld-course-metadata-item {
    margin: 0 !important;
    padding: 0 !important;
}

.custom-learndash-my-courses-list .my-courses .ld-mycourse-content,
.my-courses.ld-dashboard-enrolled-course-wrap .ld-mycourse-content {
    padding: 15px 20px;
}

.ld-dashboard-enrolled-course-status {
    display: inline-block;
    background: #ff703d;
    color: #fff;
    font-size: 13px;
    margin-bottom: 8px;
    padding: 4px 15px;
    border-radius: 80px;
    line-height: 1;
}

.ld-dashboard-enrolled-course-status.complete {
    background: #0dbf8d;
}

.ld-mycourse-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 25px;
    font-weight: 500;
}

.ld-mycourse-content h3 a {
    color: #333;
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    display: block;
    text-decoration: none !important;
}

.ld-mycourse-content h3 a {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    max-width: 800px;
}

.ld-mycourse-content .ld-meta.ld-course-metadata ul {
    margin: 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ld-mycourse-content .ld-meta.ld-course-metadata ul li {
    display: inline-block;
    color: #868E96;
    font-size: 15px;
    border-right: 1px solid #ccc;
    margin: 0 15px 10px 0;
    padding-right: 18px;
    line-height: 1;
}

.ld-mycourse-content .ld-meta.ld-course-metadata ul li:last-child {
    border-right: 0;
}

.ld-mycourse-content .ld-meta.ld-course-metadata ul li span {
    color: #333;
    text-transform: capitalize;
    margin-left: 3px;
}

.ld-mycourse-content .ld-meta.ld-course-metadata ul li span.ldd-icons,
.ld-mycourse-content .ld-meta.ld-course-metadata ul li i.ldd-icons {
    margin-right: 3px;
    margin-left: 0;
}

.ld-mycourse-content .ld-meta.ld-course-metadata li.ld-dashboard-course-status {
    width: 100%;
    padding: 0 0 15px;
    margin: 0;
    border: none !important;
}

.ld-mycourse-content .ld-meta.ld-course-metadata li.ld-dashboard-course-status span {
    background: #868E96;
    color: #fff;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 100px;
    display: inline-block;
    margin: 0;
}

.ld-my-certificates .mycourse-footer {
    margin: 0;
}

.ld-dashboard-last-activity {
    font-size: 15px;
}

.ld-meta.ld-course-metadata.ld-course-metadata-item .mycourse-footer {
    margin: 0;
}

.ld-mycourse-content .mycourse-footer,
.ld-dashboard-assignment-content .ld-meta.ld-course-metadata .mycourse-footer {
    margin-top: 15px;
}

.ld-meta.ld-course-metadata.ld-course-metadata-item ul li {
    line-height: 1;
}

.ld-mycourse-content .ld-mycourses-stats {
    display: flex;
    align-items: center;
}

.ld-mycourse-content span.woocommerce-Price-amount.amount {
    margin-right: 15px;
    line-height: 15px;
}

.ld-mycourse-content .mycourse-footer a {
    margin-right: 15px;
    position: relative;
    align-items: center;
    line-height: 15px;
    color: #717D96;
    transition: all 0.3s;
}

.ld-mycourse-content .ld-mycourses-stats span.ldd-icons {
    font-size: 18px;
    background: rgba(217, 223, 236, 0.3);
    padding: 5px;
    border-radius: 60px;
    width: 38px;
    height: 38px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    line-height: 63px;
}

.ld-mycourse-content .ld-mycourses-stats span.ldd-icons:before {
    margin-top: -4px;
}

.ld-mycourse-content .ld-mycourses-stats span.ldd-icons:hover {
    color: var(--ld-heading-color);
}

.mycourse-footer .ld-dashboard-tooltips {
    position: absolute;
    top: -35px;
    right: -15px;
    min-width: 70px;
    padding: 5px 10px;
    text-align: center;
    background-color: #333946;
    border-radius: var(--ld-border-radius-20);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin-top: 0;
    line-height: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translate(0px, 10px);
    transition: all 0.3s ease-in-out 0s;
}

.mycourse-footer .ld-dashboard-tooltips:before {
    border: solid;
    border-color: #444 transparent;
    border-width: 8px 7px 0 7px;
    content: "";
    left: 42%;
    bottom: -8px;
    position: absolute;
}

.mycourse-footer .ld-mycourses-stats a:hover .ld-dashboard-tooltips {
    opacity: 1;
    visibility: visible;
    transform: translate(0px, 0px);
}

span.ld-dashboard-price-amount.amount bdi {
    background: rgba(0, 0, 0, 0.6);
    font-weight: bold;
    color: #fff;
    font-size: 16px;
    padding: 5px 12px;
    display: inline-flex;
    gap: 3px;
    line-height: 1;
    margin: 5px;
    border-radius: var(--ld-border-radius-20);
}

.ld-mycourse-content .mycourse-footer a:hover {
    color: #333;
}

.ld-mycourse-content .mycourse-footer a img {
    width: 16px;
    display: inline-block;
    margin-right: 5px;
    filter: invert(42%) sepia(50%) saturate(1352%) hue-rotate(203deg) brightness(119%) contrast(119%);
}

.ld-mycourse-content .mycourse-footer a:hover img {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: url(desaturate.svg#greyscale);
    filter: gray;
    -webkit-filter: grayscale(1);
}

.ld-mycourse-content .mycourse-footer a.ld-dashboard-element-delete-btn {
    color: #fb0101;
}

.my-quiz-attempts-wrapper .ld-dashboard-section-head-title {
    margin-bottom: 10px;
}

.ld-dashborad-add-edit-course div#message.updated p {
    background: #d9f1e5;
    color: green;
    display: block;
    padding: 6px 15px;
    border-left: 3px solid;
    text-transform: capitalize;
}

.ld-dashboard-enrolled-course-author-content-user {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.ld-dashboard-enrolled-course-author-content-user img.ld-dashboard-course-author-avatar {
    max-width: 30px;
    margin-right: 10px;
    border-radius: 100px;
    height: 30px;
    object-fit: cover;
}

.ld-dashboard-enrolled-course-author-content-user span.ld-dashboard-course-author-name {
    font-size: 16px;
}


/* ==========================================================================
   Course Grid View
   ========================================================================== */

a.ld-dashboard-gridviews.ld-grid-active span.ldd-icons {
    color: var(--ld-heading-color);
}

.ld-dashboard-tab-content-wrapper.ld-dashboard-wbgrid {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}

.my-courses.ld-my-certificates.ld-dashboard-content-inner {
    padding-top: 10px;
}

.ld-dashboard-tab-content-wrapper.ld-dashboard-wbgrid .ld-mycourse-wrap {
    padding: 0;
    flex-direction: column;
    width: 32%;
    overflow: inherit;
}

.ld-dashboard-tab-content-wrapper.ld-dashboard-wbgrid .ld-mycourse-wrap:hover {
    box-shadow: var(--ld-box-shadow);
}

.ld-dashboard-wbgrid .ld-mycourse-thumbnail {
    flex: unset;
    border-radius: var(--ld-border-radius) var(--ld-border-radius) 0 0;
    height: 200px;
    width: 100%;
}

.ld-dashboard-wbgrid .ld-mycourse-content {
    padding: 15px 15px 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.ld-dashboard-wbgrid .ld-mycourse-content h3 a {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.ld-dashboard-wbgrid .ld-mycourse-content .ld-meta.ld-course-metadata li {
    width: 100%;
    padding: 0 0 10px;
    margin: 0;
    border: none !important;
}

.ld-dashboard-wbgrid .mycourse-footer {
    background: rgba(217, 223, 236, 0.3);
    margin: 10px -15px 0 !important;
    padding: 15px 20px;
    border-radius: 0 0 var(--ld-border-radius) var(--ld-border-radius);
}

.ld-dashboard-wbgrid .ld-mycourse-content .ld-mycourses-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ld-dashboard-wbgrid .ld-mycourse-content .mycourse-footer a {
    margin-right: 0;
}

.ld-dashboard-wbgrid .ld-mycourse-content .mycourse-footer span.ldd-icons {
    background: transparent;
    padding: 0;
    width: auto;
    height: auto;
    line-height: initial;
}

.ld-dashboard-wbgrid .ld-mycourse-content li.ld-dashboard-course-status span {
    padding: 5px 15px !important;
}

.ld-dashboard-wbgrid .ld-mycourse-content h3 a {
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
}

.ld-dashboard-wbgrid .mycourse-footer .ld-dashboard-tooltips {
    right: -20px;
}

.ld-dashboard-wbgrid .ld-mycourse-content .ld-meta.ld-course-metadata ul {
    display: unset;
}


/* ==========================================================================
   My Quiz Attempts
   ========================================================================== */

.my-quiz-attempts-wrapper-view .ld-dashboard-students-dropdown{
    position: relative;
    z-index: 1;
}

.ld-quiz-progress-content-container p {
    padding: 15px 20px;
    margin: 15px 0 0;
    background: var(--ld-white-bg);
    border-radius: var(--ld-border-radius);
    border: 1px solid #e7e9ee;
}

.ld-quiz-progress-content-container .quiz_progress_details h4 {
    margin-bottom: 0;
}

.my-quiz-attempts-wrapper-view .ld-dashboard-content-inner {
    width: 100%;
}

.my-quiz-attempts-wrapper-view .ld-dashboard-section-head-title {
    align-items: center;
}

.ld-dashboard-content .my-quiz-attempts-wrapper-view .select2-container.select2-container {
    width: 100% !important;
    margin: 0;
}

.my-quiz-attempts-wrapper #quiz_progress_details h4 {
    margin: 0;
}

.ld-quiz-progress-content-container p strong a {
    color: #000;
    margin-right: 0;
}

.ld-quiz-progress-content-container p a {
    margin-right: 10px;
}

.custom-learndash-course-form.ld-dashboard-form-settings-data-tab.ld-dashboard-quiz-time-limit-field-timer.ld-dashboard-group-field-single {
    clear: none;
    width: 50%;
    float: left;
    padding: 0 15px 25px 25px;
}

.custom-learndash-course-form.ld-dashboard-form-settings-data-tab.ld-dashboard-quiz-time-limit-field-timer.ld-dashboard-group-field-single[data-name="quiz_timeLimit_timer_min"] {
    padding: 0 25px 25px 15px;
}

.ld-dashborad-add-edit-course .acf-form .acf-field[data-name="sfwd-quiz_timeLimit_cld"] {
    padding-bottom: 0;
    border: none;
}

.custom-learndash-course-form.ld-dashboard-form-settings-data-tab[data-name="_learndash_course_users"] label {
    margin: 0 !important;
    padding: 0 !important;
}

#learndash_course_users_page_box table.learndash-binary-selector-table {
    border: none !important;
}

#learndash_course_users_page_box .learndash-binary-selector .learndash-binary-selector-section {
    padding: 0;
    border: none !important;
}

#learndash_course_users_page_box .learndash-binary-selector .learndash-binary-selector-section input[type="text"] {
    margin-bottom: 5px;
}

#learndash_course_users_page_box .learndash-binary-selector ul.learndash-binary-selector-pager {
    padding: 10px 0 0;
    margin: 0;
    display: flex;
}

#learndash_course_users_page_box .learndash-binary-selector ul.learndash-binary-selector-pager li {
    display: inline;
}

#learndash_course_users_page_box .learndash-binary-selector .learndash-binary-selector-section-middle {
    margin-top: 12%;
}

#learndash_course_users_page_box .learndash-binary-selector .learndash-binary-selector-section-middle a img {
    display: inline-block;
}

#learndash_course_users_page_box .learndash-binary-selector-section .learndash-binary-selector-items>.learndash-binary-selector-item {
    padding: 0.4em 0.5em;
    width: 98%;
    font-size: 14px;
    border-radius: 5px;
}

#learndash_course_users_page_box .learndash-binary-selector .learndash-binary-selector-section-left option.learndash-binary-selector-item-disabled {
    text-decoration: line-through !important;
}


/* ==========================================================================
   Enrolled Courses
   ========================================================================== */

.ld-dashboard-progress-bar-wrap .ld-dashboard-progress-bar {
    width: 100%;
    height: 10px;
    background: #f2f6fd;
    border-radius: 20px;
    overflow: hidden;
}

.ld-dashboard-progress-bar .ld-dashboard-progress-filled {
    height: 10px;
    border-radius: 20px;
    background: #03a05c;
}


/* ==========================================================================
   My Quizzes
   ========================================================================== */

.my-quizzes.ld-dashboard-add-edit-form .ld-dashboard-quiz-builder-content {
    gap: 10px;
    margin-top: 20px;
}

.my-quizzes.ld-dashboard-add-edit-form .ld-dashboard-quiz-builder-question strong {
    margin-bottom: 15px;
    font-size: 18px;
}

.my-quizzes.ld-dashboard-add-edit-form .ld-dashboard-assigned-questions-wrapper {
    width: 65%;
}

.my-quizzes.ld-dashboard-add-edit-form .ld-dashboard-quiz-builder-question {
    padding: 15px;
    width: 35%;
}

.my-quizzes.ld-dashboard-add-edit-form .ui-droppable .ld-dashboard-quiz-builder-list-wrapper>li {
    padding: 15px 20px 15px 80px !important;
}

.my-quizzes.ld-dashboard-add-edit-form .ui-droppable .ld-dashboard-quiz-builder-list-wrapper>li .ld-dashboard-sortable-input {
    top: 13px;
}

.my-quizzes.ld-dashboard-add-edit-form .ui-droppable .ld-dashboard-quiz-builder-list-wrapper>li .ld-dashboard-edit-wrapper.ld-dashboard-course-question-edit {
    font-size: 20px;
    font-weight: normal;
    margin-right: 15px;
    line-height: 20px;
}

.my-quizzes.ld-dashboard-add-edit-form .ld-dashboard-quiz-builder-list-wrapper li .ld-dashboard-sortable-input {
    top: 9px;
}

.my-quizzes.ld-dashboard-add-edit-form .ld-dashboard-quiz-builder-list-wrapper li {
    padding: 12px 5px 12px 25px !important;
    border-radius: 8px;
}

.ld-dashboard-search-posts::placeholder {
    white-space: nowrap;
}

.my-quizzes.ld-dashboard-add-edit-form .ld-dashboard-quiz-builder-question ul#ldd_sfwd-question_list{
    padding-right: 0;
}


/* ==========================================================================
   Submitted Essays
   ========================================================================== */

.ld-dashboard-student-submitted-essays-container {
    background: var(--ld-white-bg);
    border-radius: var(--ld-border-radius);
    overflow: hidden;
    border: 1px solid #dcdfe5;
}

.ld-dashboard-student-submitted-essays-container table {
    border: none;
    margin: 0;
}

.ld-dashboard-student-submitted-essays-container thead th:nth-child(1) {
    width: 40%;
}

.ld-dashboard-student-submitted-essays-container thead th:nth-child(2) {
    width: 15%;
}

.ld-dashboard-student-submitted-essays-container thead th:nth-child(3) {
    width: 25%;
}

.ld-dashboard-student-submitted-essays-container thead th:nth-child(4) {
    width: 20%;
}

.ld-dashboard-student-submitted-essays-container td,
.ld-dashboard-student-submitted-essays-container th {
    border: none;
    padding: 10px 15px !important;
    font-size: 15px;
    text-align: left;
}

.ld-dashboard-student-submitted-essays-container th {
    padding: 15px !important;
}

.ld-dashboard-student-submitted-essays-container thead th,
.ld-dashboard-student-submitted-essays-container tfoot th {
    background: #f4f4f4;
    border-bottom: 1px solid #dcdfe5;
}

.ld-dashboard-student-submitted-essays-container tbody td:nth-child(1) {
    line-height: 1.5;
}

.ld-dashboard-student-submitted-essays-container tfoot th {
    border-top: 1px solid #dcdfe5;
}

.ld-dashboard-student-submitted-essays-container tbody tr:nth-child(2n+2) {
    background-color: rgba(220, 223, 229, 0.25);
    border-bottom: 1px solid;
}

.ld-dashboard-student-submitted-essays-container .ld-approval-points input.small-text.learndash-award-points {
    padding: 5px;
    min-height: 35px;
    height: 35px;
    border-color: #ddd;
    width: 70px;
    border-radius: 8px;
}

.ld-dashboard-student-submitted-essays-container .ld-approval-points {
    margin: 5px 0 0;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.ld-dashboard-student-submitted-essays-container .ld-approval-action {
    margin-top: 8px;
}

.ld-dashboard-student-submitted-essays-container .ld-approval-action button.small.essay_approve_single {
    border: none;
    color: #fff;
    padding: 8px 18px;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-weight: normal;
    text-transform: uppercase;
    border-radius: 8px;
}

.ld-dashboard-student-submitted-essays-container .ld-approval-status {
    line-height: 1;
}

.ld-dashboard-student-submitted-essays-container .custom-learndash-pagination-nav {
    margin: 15px;
    justify-content: flex-end;
}

.ld-dashboard-student-submitted-essays-container ul.custom-learndash-pagination.course-pagination-wrapper {
    justify-content: space-between;
    padding: 0px;
}

.ld-dashboard-student-submitted-essays-container td:last-child a {
    line-height: 1.3;
    display: block;
}


/* ==========================================================================
   Assignment
   ========================================================================== */

.ld-mycourse-content .ld-meta.ld-course-metadata ul li span.ld-dashboard-assignment-status {
    color: #ffffff;
    padding: 3px 10px;
    text-transform: capitalize;
    display: inline-block;
    font-size: 12px;
    border-radius: 10px;
    background: #d72020;
}

.ld-dashboard-assignment-status-wrapper.assignment-approved-wrapper {
    background: #afe3a9;
    border-radius: 10px;
}

.ld-mycourse-content .ld-meta.ld-course-metadata ul li span.ld-dashboard-assignment-status.assignment-approved {
    background: #0fb587;
    margin: 0;
}

.ld-dashboard-assignment-content ul.post_status li {
    display: flex !important;
    align-items: center;
}

.ld-dashboard-no-access-page {
    text-align: center;
}

.ld-dashboard-home-btn-container {
    text-align: center;
}

.ld-dashboard-home-btn-container a.ld-dashboard-home-btn {
    padding: 14px 35px;
    color: #fff;
    font-size: 14px;
    border-radius: 50px;
    font-weight: 500;
    line-height: 1;
    display: inline-block;
}


/* ==========================================================================
   Certificate
   ========================================================================== */

.wbcom-ld-dashboard .ui-dialog.ld-shortcodes {
    z-index: 160000 !important;
    max-width: 1000px;
    left: 50% !important;
    margin-left: -500px;
}

.wbcom-ld-dashboard .ui-dialog.ld-shortcodes>.ui-dialog-titlebar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.wbcom-ld-dashboard .ui-dialog.ld-shortcodes>.ui-dialog-titlebar>.ui-button.ui-dialog-titlebar-close {
    top: 7px;
}

.wbcom-ld-dashboard div#learndash_shortcodes {
    padding: 0;
}

.wbcom-ld-dashboard #learndash_shortcodes_wrap {
    position: relative;
    margin: 0;
    height: 100%;
}

.wbcom-ld-dashboard .sfwd.sfwd_options.learndash_shortcodes_section {
    margin-bottom: 15px;
}

.wbcom-ld-dashboard #learndash_shortcodes_sections {
    padding: 20px;
}

.wbcom-ld-dashboard .learndash_shortcodes_section input[type="number"],
.wbcom-ld-dashboard .learndash_shortcodes_section select {
    width: 100%;
}

div.ld-dashboard-submit-msg-wrapper {
    position: fixed;
    bottom: 10px;
    left: -300px;
    opacity: 1;
    background: #000000db;
    padding: 13px 25px;
    transition-timing-function: ease-in-out;
    transition-duration: 0.5s;
    z-index: 99999;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgb(0, 0, 0, 0.3);
}

span.ld-dashboard-submit-msg-text {
    color: #fff;
    font-size: 15px;
    text-transform: capitalize;
}

.ld-dashboard-submit-msg-wrapper .ld-dashboard-submit-msg-content span.ld-dashboard-submit-msg-text {
    color: #fff;
    font-size: 15px;
    text-transform: unset;
}

.ld-dashboard-submit-msg-link {
    margin-left: 25px;
    color: #fff !important;
    padding: 0;
    font-size: 15px;
    text-decoration: underline;
}

/* ==========================================================================
   POPULAR COURSES WIDGET
   ========================================================================== */

.ld-popular-courses-inner {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ld-popular-courses-content {
    flex: 1;
}

.ld-popular-courses-inner .ld-popular-courses-img {
    width: 60px;
}

.ld-popular-courses-inner .ld-popular-courses-img img {
    border-radius: var(--ld-border-radius);
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.ld-popular-courses-content a {
    font-size: 16px;
    font-weight: bold;
    color: var(--ld-heading-color);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.ld-popular-courses-content span {
    font-size: 14px;
    color: var(--ld-grey-color);
    display: block;
}

.ld-dashboard-info-table-wrap .ld-popular-courses-status small.label-course-status {
    background: #32a532;
    color: #fff;
    border-radius: 40px;
    font-size: 13px;
    padding: 4px 18px;
    text-align: center;
    line-height: 1.3;
}

/* ==========================================================================
   ENROLLED COURSE STATUS
   ========================================================================== */

.ld-mycourse-thumbnail img.attachment-thumbnail.size-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   ADMINISTRATOR NOTICE
   ========================================================================== */

.ld-dashboard-administrator-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: var(--ld-border-radius);
    margin-bottom: 20px;
}
