/* Premium Learner Dashboard Design */
.ldpr-learner-dashboard {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2d3748;
    max-width: 1200px;
    margin: 20px auto;
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
}

/* Stats Header */
.ldpr-stats-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ldpr-stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.ldpr-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.ldpr-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.ldpr-stat-bar-container {
    height: 4px;
    background: #edf2f7;
    border-radius: 2px;
    overflow: hidden;
}

.ldpr-stat-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease-out;
}

.ldpr-stat-footer {
    margin-top: 8px;
    font-size: 12px;
    color: #718096;
    display: flex;
    align-items: center;
}

.ldpr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

/* Tabs */
.ldpr-tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #edf2f7;
    margin-bottom: 20px;
    padding-left: 10px;
}

.ldpr-tab-btn {
    padding: 12px 0;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 15px;
}

.ldpr-tab-btn.active {
    color: #3182ce;
}

.ldpr-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3182ce;
}

.ldpr-tab-count {
    background: #edf2f7;
    color: #4a5568;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Course Rows */
.ldpr-course-item {
    background: white;
    border-radius: 10px;
    border: 1px solid #edf2f7;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ldpr-course-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.ldpr-course-header:hover {
    background: #f8fafc;
}

.ldpr-course-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 15px;
}

.ldpr-course-info {
    flex-grow: 1;
}

.ldpr-course-name {
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ldpr-archive-badge {
    background: #ebf4ff;
    color: #3182ce;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.ldpr-course-meta {
    font-size: 13px;
    color: #a0aec0;
    margin-top: 2px;
}

.ldpr-course-progress-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
}

.ldpr-progress-bar-bg {
    flex-grow: 1;
    height: 6px;
    background: #edf2f7;
    border-radius: 3px;
}

.ldpr-progress-bar-fill {
    height: 100%;
    background: #3182ce;
    border-radius: 3px;
}

.ldpr-pct-text {
    font-weight: 700;
    font-size: 14px;
    color: #3182ce;
    width: 40px;
}

.ldpr-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none !important;
}

.ldpr-btn-cert {
    background: #f0fff4;
    color: #2f855a;
    border-color: #c6f6d5;
}

.ldpr-btn-cert:hover {
    background: #c6f6d5;
}

.ldpr-status-pill {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ldpr-status-complete {
    background: #f0fff4;
    color: #2f855a;
}

.ldpr-status-progress {
    background: #fffaf0;
    color: #c05621;
}

.ldpr-status-notstarted {
    background: #f7fafc;
    color: #718096;
}

/* Expanded Content */
.ldpr-course-content {
    padding: 0 20px 20px 45px;
    display: none;
    border-top: 1px solid #f7fafc;
}

.ldpr-lesson-row {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ldpr-lesson-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ebf8ff;
    color: #3182ce;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ldpr-lesson-name {
    font-weight: 600;
    font-size: 14px;
}

.ldpr-done-badge {
    background: #f0fff4;
    color: #2f855a;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.ldpr-topic-row {
    margin-left: 36px;
    margin-top: 8px;
    font-size: 13px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldpr-quiz-card {
    margin-left: 36px;
    margin-top: 12px;
    background: #fafbff;
    border: 1px solid #eef2ff;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ldpr-quiz-icon-box {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #eef2ff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
}

.ldpr-quiz-details {
    flex-grow: 1;
}

.ldpr-quiz-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.ldpr-quiz-date {
    font-size: 12px;
    color: #a0aec0;
}

.ldpr-score-badge {
    background: #f0fff4;
    color: #2f855a;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.ldpr-btn-stats {
    background: #edf2f7;
    color: #4a5568;
}

.ldpr-btn-cert-quiz {
    background: #faf5ff;
    color: #6b46c1;
    border-color: #e9d8fd;
}

.ldpr-toggle-icon {
    margin-left: 15px;
    transition: transform 0.2s;
    color: #a0aec0;
}

.ldpr-course-item.open .ldpr-toggle-icon {
    transform: rotate(180deg);
}

.ldpr-attempt-item .ldpr-toggle-icon-small {
    transition: transform 0.2s;
}

.ldpr-attempt-item.open .ldpr-toggle-icon-small {
    transform: rotate(180deg);
}

.ldpr-course-item.open .ldpr-course-content {
    display: block;
}

/* Tabs Visibility */
.ldpr-tab-content {
    display: none;
}

.ldpr-tab-content.active {
    display: block;
}

/* Status Badges */
.ldpr-learner-dashboard .sp {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 3px;
    display: inline-block;
    margin-left: auto;
    line-height: 1.2;
}
.ldpr-learner-dashboard .sp-g {
    background: #edfaef;
    color: #00a32a;
}
.ldpr-learner-dashboard .sp-a {
    background: #fcf9e8;
    color: #dba617;
}