[x-cloak] {
    display: none !important;
}

#lms-student-dashboard {
    margin: 28px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
}

.lms-dash-empty {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 24px;
    text-align: center;
}

.lms-dash-empty h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
}

.lms-dash-empty p {
    margin: 0 auto 20px auto;
    max-width: 460px;
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
}

.lms-dash-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.lms-dash-search {
    flex: 1 1 260px;
    max-width: 380px;
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
}

.lms-dash-search:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lms-dash-total {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.lms-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    align-items: start;
}

.lms-course-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lms-course-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.lms-course-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.lms-course-title-wrap {
    min-width: 0;
    flex: 1;
}

.lms-course-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    margin-bottom: 6px;
}

.lms-course-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.lms-course-title a {
    color: #0f172a;
    text-decoration: none;
}

.lms-course-title a:hover {
    color: #2563eb;
}

.lms-course-stats {
    text-align: right;
    flex-shrink: 0;
}

.lms-course-percent {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.1;
}

.lms-course-count {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.lms-course-desc {
    margin: 0 0 14px 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.lms-progress-track {
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}

.lms-progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.lms-course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lms-dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lms-dash-btn-primary {
    background: var(--primary-gradient);
    color: #ffffff !important;
}

.lms-dash-btn-primary:hover {
    background: #f80;
}

.lms-dash-btn-outline {
    background: #f8fafc;
    color: #334155 !important;
    border-color: #cbd5e1;
}

.lms-dash-btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.lms-lesson-list {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lms-lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b !important;
    text-decoration: none !important;
    font-size: 13px;
    transition: background-color 0.12s ease;
}

.lms-lesson-item:hover {
    background: #eff6ff;
}

.lms-lesson-item.is-completed {
    background: #f0fdf4;
}

.lms-lesson-num {
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
}

.lms-lesson-name {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.lms-lesson-status {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
}

.status-done {
    color: #059669;
}

.status-open {
    color: #2563eb;
}
