@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* LMS Plugin Styles */

:root {
    --lms-primary: #4f46e5;
    --lms-primary-dark: #4338ca;
    --lms-secondary: #6366f1;
    --lms-accent-soft: #eef2ff;
    --lms-bg: #f8fafc;
    --lms-card-bg: #ffffff;
    --lms-text: #0f172a;
    --lms-text-light: #64748b;
    --lms-border: #e2e8f0;
    --lms-border-strong: #cbd5e1;
    --lms-radius: 24px;
    --lms-radius-sm: 16px;
    --lms-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --lms-shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.06);
}

body {
    background: #f7faff;
    color: var(--lms-text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.lms-dashboard-wrapper {
    display: flex;
    background: #f7faff;
    min-height: 100vh;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    font-family: 'Inter', sans-serif;
    border: 0;
    backdrop-filter: none;
}

/* Sidebar */
.lms-sidebar {
    width: 214px;
    background: #fff;
    border-right: 1px solid #eef2f7;
    padding: 20px 20px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lms-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 6px 22px;
    margin-bottom: 18px;
}

.lms-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 14px 24px rgba(225, 29, 72, 0.22);
}

.lms-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.lms-brand-title {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #14213d;
}

.lms-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lms-nav li {
    margin-bottom: 10px;
}

.lms-nav-mobile-only {
    display: none;
}

.lms-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 10px 12px;
    color: #6d84a2;
    text-decoration: none;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    transition: all 0.25s ease;
}

.lms-nav a:hover,
.lms-nav a.active {
    background: linear-gradient(135deg, #4f39f6, #4d68ff);
    color: white;
    box-shadow: 0 10px 20px rgba(79, 57, 246, 0.26);
}

.lms-nav-icon {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

.lms-sidebar-cta {
    margin-top: 18px;
}

.lms-create-course-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eef2ff;
    color: #5b61ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.lms-create-course-plus {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.lms-create-course-dot {
    width: 5px;
    height: 5px;
    margin-left: auto;
    border-radius: 50%;
    background: #7c88ff;
}

.lms-sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 22px;
}

.lms-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #6d84a2;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.lms-sidebar-footer a:hover,
.lms-sidebar-footer a.active {
    background: #f4f7fc;
    color: #3f5170;
}

/* Content */
.lms-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    background: #f7faff;
}

.lms-topbar {
    height: 66px;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 34px;
}

.lms-topbar-search {
    position: relative;
    width: 380px;
    max-width: 100%;
    z-index: 20;
}

.lms-topbar-search input {
    width: 100%;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: #f5f7fd;
    padding: 0 14px 0 36px;
    color: #70819d;
    font-size: 12px;
    outline: none;
}

.lms-topbar-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.lms-topbar-search-results[hidden] {
    display: none;
}

.lms-topbar-search-results-list {
    display: grid;
}

.lms-topbar-search-result {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
}

.lms-topbar-search-result:last-child {
    border-bottom: 0;
}

.lms-topbar-search-result-main {
    min-width: 0;
    flex: 1;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lms-topbar-search-result-main strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.lms-topbar-search-result-main small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.lms-topbar-search-result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-bottom: 2px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lms-topbar-search-result-badge.is-course {
    background: #eef2ff;
    color: #4f46e5;
}

.lms-topbar-search-result-badge.is-certificate {
    background: #ecfdf3;
    color: #059669;
}

.lms-topbar-search-result-action {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-self: center;
    border: 0;
    border-radius: 14px;
    background: #eef2ff;
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.lms-topbar-search-result-action:hover {
    transform: translateY(-1px);
    background: #4f46e5;
    color: #fff;
}

.lms-topbar-search-result-action .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.lms-topbar-search-empty {
    padding: 18px 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.lms-topbar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9fb0c8;
    font-size: 14px;
}

.lms-topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lms-topbar-search-toggle {
    display: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #7687a5;
    cursor: pointer;
}

.lms-topbar-search-toggle:hover {
    background: #f5f7fd;
}

.lms-topbar-notifications {
    position: relative;
}

.lms-topbar-bell {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #7687a5;
    cursor: pointer;
    position: relative;
    border-radius: 12px;
}

.lms-topbar-bell:hover {
    background: #f5f7fd;
}

.lms-topbar-bell-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 2px #fff;
}

.lms-notifications-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    z-index: 50;
}

.lms-dir-rtl .lms-notifications-panel {
    right: auto;
    left: 0;
}

.lms-notifications-popover {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 20px;
    box-shadow: var(--lms-shadow);
    overflow: hidden;
}

.lms-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    color: #64748b;
    font-size: 12px;
}

.lms-notifications-header strong {
    color: #0f172a;
    font-size: 14px;
}

.lms-notifications-list {
    max-height: 420px;
    overflow-y: auto;
}

.lms-notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.lms-notification-item.is-unread {
    background: #f8faff;
}

.lms-notification-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lms-notification-copy a,
.lms-notification-copy span {
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.lms-notification-copy small {
    color: #94a3b8;
    font-size: 11px;
}

.lms-notification-empty {
    padding: 18px 16px;
    color: #64748b;
    font-size: 13px;
}

.lms-notifications-read-all {
    width: 100%;
    border: 0;
    background: #fff;
    border-top: 1px solid #eef2f7;
    padding: 14px 16px;
    color: var(--lms-primary, #4f46e5);
    font-weight: 800;
    cursor: pointer;
}

.lms-notifications-read-all:hover {
    background: #f8faff;
}

.lms-topbar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 18px;
    border-left: 1px solid #eef2f7;
    text-decoration: none;
}

.lms-topbar-profile-copy {
    text-align: right;
}

.lms-topbar-profile-copy strong {
    display: block;
    color: #26344d;
    font-size: 12px;
    font-weight: 800;
}

.lms-topbar-profile-copy span {
    display: block;
    margin-top: 2px;
    color: #9aaac1;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lms-topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f7fd;
}

.lms-topbar-avatar img,
.lms-topbar-avatar .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lms-main-shell {
    min-height: calc(100vh - 66px);
    padding: 26px 34px 34px;
}

.lms-shell-loading {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.lms-main-shell > h2:first-child,
.lms-main-shell .lms-section-header h2,
.lms-main-shell > .lms-view-title {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin: 0;
}

.lms-main-shell > p:first-of-type {
    margin-top: 8px;
    margin-bottom: 24px;
    color: #64748b;
    font-size: 15px;
}

.lms-page-header {
    margin-bottom: 28px;
}

.lms-page-title {
    margin: 0;
    font-size: 40px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.045em;
    color: #0f172a;
}

.lms-page-subtitle {
    margin: 10px 0 0;
    font-size: 15px;
    color: #64748b;
}

.lms-placeholder-screen {
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px 120px;
}

.lms-placeholder-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(233, 240, 250, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.lms-placeholder-icon .dashicons {
    font-size: 34px;
    width: 34px;
    height: 34px;
    color: #c5d4e8;
}

.lms-placeholder-screen h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #14213d;
}

.lms-placeholder-screen p {
    margin: 0;
    color: #7c90ae;
    font-size: 15px;
}

.lms-placeholder-back {
    margin-top: 26px;
    color: #5446ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

/* Forms */
.lms-register-container,
.lms-content form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--lms-card-bg);
    padding: 32px;
    border-radius: var(--lms-radius);
    box-shadow: var(--lms-shadow);
    border: 1px solid var(--lms-border);
}

.lms-form-group {
    margin-bottom: 22px;
}

.lms-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
}

.lms-content form > h3,
.lms-content form p > strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.lms-content form hr {
    border: 0;
    border-top: 1px solid #eef2f7;
    margin: 28px 0;
}

.lms-form-group input[type="text"],
.lms-form-group input[type="email"],
.lms-form-group input[type="password"],
.lms-form-group select,
.lms-form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--lms-border);
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--lms-text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lms-form-group input[type="text"]:focus,
.lms-form-group input[type="email"]:focus,
.lms-form-group input[type="password"]:focus,
.lms-form-group select:focus,
.lms-form-group textarea:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    background: #fff;
}

.lms-btn {
    background: var(--lms-primary);
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-block;
    box-shadow: 0 14px 24px rgba(79, 70, 229, 0.22);
}

.lms-btn:hover {
    background: var(--lms-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(79, 70, 229, 0.26);
}

.lms-btn-small {
    background: #eef2ff;
    color: var(--lms-primary);
    padding: 10px 14px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.lms-btn-small:hover {
    background: var(--lms-primary);
    color: white;
    border-color: var(--lms-primary);
    transform: translateY(-1px);
}

.lms-btn-remove {
    background: #ef4444;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

/* Course Grid */
.lms-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.lms-empty-state {
    grid-column: 1 / -1;
    background: #fff;
    border: 2px dashed #cbd5e1;
    border-radius: 32px;
    padding: 56px 24px;
    text-align: center;
    box-shadow: var(--lms-shadow-soft);
}

.lms-empty-icon {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: #eef2ff;
    color: #4f46e5;
}

.lms-empty-state h3 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.lms-empty-state p {
    max-width: 560px;
    margin: 0 auto;
    color: #64748b;
    font-size: 15px;
}

.lms-empty-state-favorites .lms-empty-icon {
    background: #fff1f2;
    color: #e11d48;
}

.lms-course-card {
    position: relative;
    background: var(--lms-card-bg);
    border-radius: var(--lms-radius);
    overflow: hidden;
    box-shadow: var(--lms-shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.lms-course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--lms-shadow);
    border-color: rgba(165, 180, 252, 0.5);
}

.lms-course-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.lms-course-card h3 {
    padding: 16px;
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lms-course-card h3 a {
    text-decoration: none;
    color: var(--lms-text);
}

.lms-course-date {
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Responsive */
@media (max-width: 1024px) {
    .lms-dashboard-wrapper {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .lms-dashboard-wrapper {
        display: block;
        padding-bottom: 132px;
    }

    .lms-sidebar {
        position: fixed;
        left: 50%;
        bottom: 0;
        z-index: 120;
        transform: translateX(-50%);
        width: min(100%, 860px);
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 28px 28px 0 0;
        box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        gap: 0;
    }

    .lms-brand,
    .lms-sidebar-footer {
        display: none;
    }

    .lms-nav {
        width: 100%;
    }

    .lms-nav ul {
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0;
        scrollbar-width: none;
    }

    .lms-nav ul::-webkit-scrollbar {
        display: none;
    }

    .lms-nav li {
        margin-bottom: 0;
        flex: 0 0 auto;
        min-width: 86px;
    }

    .lms-nav-mobile-only {
        display: block;
    }

    .lms-nav a {
        position: relative;
        min-height: 70px;
        padding: 12px 10px 10px;
        border-radius: 22px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        text-align: center;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        background: transparent;
        box-shadow: none;
    }

    .lms-nav a::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 42px;
        height: 3px;
        border-radius: 999px;
        background: transparent;
        transform: translateX(-50%);
        transition: background-color 0.2s ease;
    }

    .lms-nav a:hover,
    .lms-nav a.active {
        background: #f6f7ff;
        color: var(--lms-primary, #4f46e5);
        box-shadow: none;
    }

    .lms-nav a:hover::before,
    .lms-nav a.active::before {
        background: var(--lms-primary, #4f46e5);
    }

    .lms-nav a span:last-child {
        display: block;
        line-height: 1.15;
    }

    .lms-nav-icon {
        width: 20px;
        height: 20px;
        font-size: 20px;
        line-height: 20px;
    }

    .lms-sidebar-cta {
        position: absolute;
        top: -54px;
        right: 16px;
        margin-top: 0;
    }

    .lms-dir-rtl .lms-sidebar-cta {
        right: auto;
        left: 16px;
    }

    .lms-create-course-link {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 20px;
        justify-content: center;
        background: linear-gradient(135deg, #4f39f6, #4d68ff);
        box-shadow: 0 18px 30px rgba(79, 57, 246, 0.24);
    }

    .lms-create-course-link span:not(.lms-create-course-plus) {
        display: none;
    }

    .lms-create-course-plus {
        width: 56px;
        height: 56px;
        border-radius: 20px;
        background: transparent;
        color: #fff;
        box-shadow: none;
        font-size: 28px;
    }

    .lms-content {
        min-height: 100vh;
    }

    .lms-topbar {
        padding: 12px 0;
        height: auto;
        gap: 10px;
        align-items: flex-start;
        flex-direction: column;
    }

    .lms-topbar-search {
        order: 2;
        width: 100%;
        display: none;
        padding: 0 14px;
    }

    .lms-topbar-search.is-mobile-visible {
        display: block;
    }

    .lms-topbar-actions {
        width: 100%;
        justify-content: flex-start;
        padding: 0;
        gap: 12px;
    }

    .lms-topbar-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .lms-topbar-profile {
        min-width: 0;
        flex: 1;
        order: 1;
        margin-inline-end: auto;
        justify-content: flex-start;
    }

    .lms-topbar-notifications {
        order: 2;
    }

    .lms-topbar-search-toggle {
        order: 3;
    }

    .lms-topbar-profile-copy strong,
    .lms-topbar-profile-copy span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 180px;
    }

    .lms-content .lms-main-shell,
    .lms-main-shell {
        padding: 18px 0 24px;
    }
}

@media (max-width: 640px) {
    .lms-topbar {
        padding: 10px 0;
    }

    .lms-topbar-actions,
    .lms-topbar-search {
        padding-left: 0;
        padding-right: 0;
    }

    .lms-main-shell {
        padding: 16px 0 24px;
    }
}

/* Modern Single Course View */
.lms-course-player-shell {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 0 0 36px 36px;
    overflow: hidden;
}

.lms-course-player-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}

.lms-course-player-topbar-left,
.lms-course-player-topbar-right,
.lms-course-player-topbar-center,
.lms-course-player-titles,
.lms-course-top-progress {
    display: flex;
    align-items: center;
}

.lms-course-player-topbar-left,
.lms-course-player-topbar-right {
    gap: 22px;
}

.lms-course-player-topbar-center {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 20px;
}

.lms-course-back-link {
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 22px;
    border-right: 1px solid #edf2f7;
}

.lms-course-back-link span {
    font-size: 26px;
    line-height: 1;
}

.lms-course-player-titles {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.lms-course-player-titles h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
}

.lms-course-player-titles span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

.lms-btn-fav-icon {
    min-width: 40px;
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border-radius: 14px;
}

.lms-btn-certificate-small {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lms-primary, #4f46e5), #7c3aed);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 12px 20px;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.2);
    cursor: pointer;
    white-space: nowrap;
}

.lms-btn-certificate-small:hover {
    transform: translateY(-1px);
}

.lms-btn-fav-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lms-course-top-progress {
    gap: 12px;
}

.lms-course-top-progress .lms-progress-bar-wrapper.small {
    width: 96px;
}

.lms-course-top-progress span {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
}

.lms-single-course-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 0;
    background: #fff;
    min-height: 600px;
}

/* Sidebar Styles */
.lms-course-sidebar {
    background: #fff;
    display: flex;
    flex-direction: column;
}

.lms-course-sidebar-modern {
    border-left: 1px solid #edf2f7;
}

.lms-course-sidebar-header {
    padding: 24px 28px 12px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}

.lms-course-sidebar-header h4 {
    margin: 0 0 8px 0;
    color: var(--lms-text);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.lms-course-sidebar-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.lms-mini-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--lms-text-light);
}

.lms-progress-bar-wrapper.small {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.lms-progress-bar-wrapper.small .lms-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--lms-primary) 0%, #60a5fa 100%);
}

.lms-course-playlist {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px 22px;
}

.lms-playlist-items {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 10px;
}

.lms-playlist-item {
    margin-bottom: 10px;
    border-radius: 18px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    margin-inline-start: 10px;
}

.lms-playlist-item:hover {
    background: #f8fbff;
}

.lms-playlist-item.active {
    background: #eef2ff;
    box-shadow: inset 0 0 0 1px #dbe4ff;
}

.lms-playlist-link {
    display: flex;
    align-items: center;
    padding: 16px 16px;
    text-decoration: none;
    color: var(--lms-text);
    gap: 14px;
}

.lms-status-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--lms-text-light);
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    flex: 0 0 auto;
}

.lms-circle-index {
    width: 24px;
    height: 24px;
    background: transparent;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.lms-playlist-item.active .lms-circle-index {
    color: var(--lms-primary);
}

.lms-playlist-item.completed .lms-status-icon {
    color: #fff;
    background: #10b981;
    border-color: #10b981;
}

.lms-playlist-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lms-playlist-meta {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.lms-playlist-more {
    color: #4f46e5;
    font-size: 22px;
    line-height: 1;
    margin-left: auto;
    opacity: 0.8;
}

/* Main Content Area */
.lms-course-main {
    padding: 32px 36px;
    background: #fff;
    overflow-y: auto;
}

#lms-add-course-form,
#lms-profile-form {
    max-width: 100%;
}

#lms-add-course-form {
    background: #fff;
    border-radius: 32px;
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow);
    padding: 36px;
}

.lms-profile-surface,
.lms-settings-surface {
    background: #fff;
    border-radius: 32px;
    border: 1px solid var(--lms-border);
    box-shadow: none;
    padding: 0;
}

#lms-settings-form {
    max-width: 760px;
    margin: 0 auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

#lms-settings-form > input[type="hidden"] {
    display: none;
}

.lms-settings-card {
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    padding: 14px 14px 12px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(31, 50, 81, 0.04);
}

.lms-settings-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #14213d;
    font-size: 12px;
    font-weight: 800;
}

.lms-settings-card-title::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 6px;
    background: linear-gradient(135deg, #6054ff, #8d85ff);
    box-shadow: 0 4px 10px rgba(96, 84, 255, 0.16);
}

.lms-settings-card:nth-of-type(2) .lms-settings-card-title::before {
    background: linear-gradient(135deg, #17b26a, #7dd3a8);
}

.lms-settings-card:nth-of-type(3) .lms-settings-card-title::before {
    background: linear-gradient(135deg, #f59e0b, #f9d572);
}

.lms-settings-card:nth-of-type(4) .lms-settings-card-title::before {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
}

.lms-settings-card:nth-of-type(5) .lms-settings-card-title::before {
    background: linear-gradient(135deg, #5b7cff, #93c5fd);
}

.lms-settings-card:nth-of-type(6) .lms-settings-card-title::before {
    background: linear-gradient(135deg, #10b981, #6ee7b7);
}

.lms-settings-card:nth-of-type(7) .lms-settings-card-title::before {
    background: linear-gradient(135deg, #fb7185, #fda4af);
}

.lms-settings-card:nth-of-type(8) .lms-settings-card-title::before {
    background: linear-gradient(135deg, #818cf8, #c4b5fd);
}

.lms-settings-card:nth-of-type(9) .lms-settings-card-title::before {
    background: linear-gradient(135deg, #22c55e, #86efac);
}

.lms-settings-card:nth-of-type(10) .lms-settings-card-title::before {
    background: linear-gradient(135deg, #f59e0b, #fcd34d);
}

.lms-settings-card:nth-of-type(11) .lms-settings-card-title::before {
    background: linear-gradient(135deg, #ef4444, #fca5a5);
}

.lms-settings-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.lms-settings-card-grid .lms-form-row,
.lms-settings-card-grid .lms-form-group:has(textarea),
.lms-settings-card-grid .lms-form-group:has(select),
.lms-settings-card-grid .lms-form-group:has(input[type="color"]) {
    grid-column: 1 / -1;
}

.lms-settings-card-grid .lms-form-group {
    margin-bottom: 0;
}

.lms-settings-card-grid .lms-form-group label {
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #6f85a4;
}

.lms-settings-card-grid .lms-form-group input[type="text"],
.lms-settings-card-grid .lms-form-group input[type="number"],
.lms-settings-card-grid .lms-form-group input[type="email"],
.lms-settings-card-grid .lms-form-group input[type="password"],
.lms-settings-card-grid .lms-form-group select,
.lms-settings-card-grid .lms-form-group textarea {
    border-radius: 10px;
    border-color: #dfe7f2;
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
    background: #fff;
    box-shadow: none;
}

.lms-settings-card-grid .lms-form-group textarea {
    min-height: 86px;
}

.lms-settings-card-grid .lms-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.lms-settings-card-grid .lms-form-group input[type="color"] {
    width: 100%;
    min-height: 36px;
    border: 1px solid #dfe7f2;
    border-radius: 10px;
    padding: 4px;
    background: #fff;
}

#lms-settings-form .lms-form-actions {
    margin-top: 18px !important;
    justify-content: stretch;
}

#lms-settings-form .lms-form-actions .lms-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    min-height: 40px;
    font-size: 13px;
}

.lms-repeater-field {
    margin-top: 28px;
    padding: 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
}

.lms-repeater-field > label {
    display: block;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

#lms-content-builder {
    display: grid;
    gap: 16px;
}

.lms-content-row {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

.lms-row-header,
.lms-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 800;
    color: #334155;
}

.lms-row-title,
.lms-content-title-display {
    flex: 1;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.lms-row-body {
    padding: 20px !important;
    border: 0 !important;
    margin-bottom: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.lms-builder-actions {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    margin-top: 18px !important;
}

.lms-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px !important;
}

.lms-preview-image img,
.lms-thumb-wrapper img {
    border-radius: 16px;
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow-soft);
}

.lms-course-tabs {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--lms-shadow-soft);
}

.lms-notes-content {
    color: #334155;
    line-height: 1.7;
    font-size: 15px;
}

.lms-course-playlist {
    padding: 10px 0;
}

.lms-video-title-text {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    color: #0f172a;
}

.lms-type-icon .dashicons {
    color: #6366f1;
}

.lms-thumb-wrapper {
    position: relative;
}

.lms-thumb-wrapper button {
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.18);
}

.lms-course-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lms-course-header-actions h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.lms-actions-right {
    display: flex;
    gap: 10px;
}

.lms-btn-fav {
    background: #fff;
    border: 1px solid var(--lms-border);
    padding: 10px 16px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--lms-text);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.lms-btn-fav.active {
    color: #e11d48;
    border-color: #fda4af;
    background: #fff1f2;
}

.lms-btn-fav:hover {
    transform: translateY(-1px);
    box-shadow: var(--lms-shadow-soft);
}

.lms-video-player-area {
    margin-bottom: 30px;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--lms-shadow-soft);
}

.lms-video-player-area-modern {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 32px;
}

.lms-video-player-area-modern .lms-video-embed-wrapper,
.lms-video-player-area-modern .lms-single-image-container,
.lms-video-player-area-modern .lms-slider-wrapper {
    border-radius: 28px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.lms-video-player-area-modern .lms-single-image-container {
    aspect-ratio: 16 / 9;
    position: relative;
}

.lms-video-cover-fallback img,
.lms-single-image-container img,
.lms-slide-item img {
    width: 100%;
    display: block;
}

.lms-single-image-container img {
    height: 100%;
    object-fit: cover;
}

.lms-image-lightbox-trigger {
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    display: block;
}

.lms-image-lightbox-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.22));
    opacity: 0;
    transition: opacity 0.24s ease;
}

.lms-image-lightbox-trigger:hover::after {
    opacity: 1;
}

.lms-image-zoom-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    z-index: 2;
    transform: scale(0.92);
    transition: transform 0.24s ease, background 0.24s ease;
}

.lms-image-lightbox-trigger:hover .lms-image-zoom-badge {
    transform: scale(1);
    background: #fff;
}

.lms-image-zoom-badge .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.lms-course-overview-card {
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 28px;
    padding: 26px 32px 30px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.lms-course-overview-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.lms-course-overview-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 900;
}

.lms-course-overview-card h3 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.22;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #0f172a;
}

.lms-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.lms-image-lightbox[hidden] {
    display: none;
}

.lms-image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
}

.lms-image-lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lmsLightboxZoomIn 0.24s ease;
}

.lms-image-lightbox-media {
    max-width: 100%;
    max-height: 88vh;
    display: block;
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.4);
}

.lms-image-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.lms-image-lightbox-close:hover {
    transform: scale(1.05);
    background: rgba(15, 23, 42, 0.75);
}

.lms-image-lightbox-close .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.lms-quiz-lesson-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(249, 115, 22, 0.18), transparent 36%),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #f8fbff 100%);
    border: 1px solid #fde7d7;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.lms-quiz-lesson-stage-inner {
    width: min(520px, 100%);
    text-align: center;
    padding: 34px 28px;
}

.lms-quiz-lesson-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 14px;
    background: #fff;
    color: #ea580c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.1);
}

.lms-quiz-lesson-stage-inner h3 {
    margin: 18px 0 12px;
    font-size: 34px;
    line-height: 1.1;
    color: #0f172a;
    font-weight: 900;
}

.lms-quiz-lesson-stage-inner p {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

.lms-quiz-empty-note {
    display: inline-block;
    color: #ea580c;
    font-size: 13px;
    font-weight: 700;
}

.lms-course-mobile-complete-wrap {
    display: none;
}

.lms-quiz-modal {
    position: fixed;
    inset: 0;
    z-index: 10015;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lms-quiz-modal[hidden] {
    display: none;
}

.lms-quiz-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(5px);
}

.lms-quiz-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.lms-quiz-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f8fafc;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.lms-quiz-modal-body {
    padding: 34px;
}

.lms-quiz-runner {
    animation: lmsQuizSlideIn 0.28s ease;
}

.lms-quiz-runner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.lms-quiz-runner-head strong,
.lms-quiz-runner h3 {
    color: #0f172a;
}

.lms-quiz-runner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lms-quiz-runner-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 22px;
}

.lms-quiz-runner-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #60a5fa);
}

.lms-quiz-runner h3 {
    margin: 0 0 22px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 900;
}

.lms-quiz-runner-options {
    display: grid;
    gap: 12px;
}

.lms-quiz-runner-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dbe4f1;
    border-radius: 18px;
    background: #f8fbff;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.lms-quiz-runner-option:hover {
    transform: translateY(-1px);
    border-color: #c7d2fe;
}

.lms-quiz-runner-option input {
    margin: 0;
}

.lms-quiz-runner-option:has(input:checked) {
    border-color: #4f46e5;
    background: #eef2ff;
}

.lms-quiz-runner-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
}

.lms-quiz-runner-actions .lms-wizard-primary-btn,
.lms-quiz-runner-actions .lms-wizard-secondary-btn {
    flex: 1;
    justify-content: center;
}

.lms-quiz-runner-results {
    text-align: center;
}

.lms-quiz-runner-results p {
    margin: 12px auto 22px;
    max-width: 520px;
    color: #64748b;
    line-height: 1.7;
}

.lms-quiz-runner-score {
    margin: 0 auto 10px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #60a5fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    box-shadow: 0 20px 34px rgba(79, 70, 229, 0.2);
}

body.lms-quiz-open {
    overflow: hidden;
}

@keyframes lmsLightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes lmsQuizSlideIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.lms-lightbox-open {
    overflow: hidden;
}

body.lms-certificate-open {
    overflow: hidden;
}

.lms-certificate-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lms-certificate-modal[hidden] {
    display: none;
}

.lms-certificate-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
}

.lms-certificate-modal-panel {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
}

.lms-certificate-loading {
    background: #fff;
    border-radius: 28px;
    padding: 42px 32px;
    text-align: center;
    color: #475569;
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
}

.lms-certificate-modal-card {
    background: #fff;
    border-radius: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.lms-certificate-modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f7;
    background: #f8fbff;
}

.lms-certificate-modal-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lms-btn-certificate-print,
.lms-btn-certificate-pdf {
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, var(--lms-primary, #4f46e5), #7c3aed);
    color: #fff;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lms-btn-certificate-pdf {
    background: linear-gradient(135deg, #0f172a, #334155);
}

.lms-certificate-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #dbe4f1;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lms-certificate-printable {
    padding: 42px 54px 50px;
    background:
        radial-gradient(circle at top, rgba(79, 70, 229, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-align: center;
}

.lms-certificate-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.lms-certificate-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
}

.lms-certificate-kicker {
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 14px;
}

.lms-certificate-title {
    margin: 0 0 18px;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #0f172a;
    font-weight: 900;
}

.lms-certificate-copy {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

.lms-certificate-user-name {
    margin: 0 auto 18px;
    max-width: 560px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dbe4f1;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 900;
    color: #111827;
}

.lms-certificate-course-title {
    margin: 0 0 28px;
    font-size: 28px;
    line-height: 1.2;
    color: var(--lms-primary, #4f46e5);
    font-weight: 900;
}

.lms-certificate-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 auto 28px;
    max-width: 640px;
}

.lms-certificate-detail {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 18px;
}

.lms-certificate-detail span {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lms-certificate-detail strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.lms-certificate-serial {
    margin-top: 16px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lms-course-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.lms-course-info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #f8fbff;
    border: 1px solid #e8eef8;
    border-radius: 20px;
    padding: 18px 18px 16px;
}

.lms-course-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    flex: 0 0 auto;
}

.lms-course-info-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lms-course-info-copy strong {
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
}

.lms-course-info-copy span,
.lms-course-info-copy a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    unicode-bidi: plaintext;
}

.lms-course-info-copy a:last-child {
    color: #4f46e5;
    font-weight: 800;
}

.lms-video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.lms-video-embed-wrapper iframe,
.lms-video-embed-wrapper object,
.lms-video-embed-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lms-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 15px;
}

.lms-video-controls {
    background: #fff;
    padding: 18px 20px;
    border: 1px solid var(--lms-border);
    border-top: none;
    border-radius: 0 0 28px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lms-video-controls h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.lms-mark-complete-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}

.lms-course-tabs {
    margin-top: 30px;
}

.lms-tab-buttons {
    border-bottom: 1px solid var(--lms-border);
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
}

.lms-tab-btn {
    background: #f8fafc;
    border: 1px solid transparent;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: var(--lms-text-light);
    border-radius: 999px;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.lms-tab-btn:hover {
    color: var(--lms-primary);
    background: #eef2ff;
}

.lms-tab-btn.active {
    color: #fff;
    background: var(--lms-primary);
    border-color: var(--lms-primary);
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.22);
}

.lms-resource-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lms-resource-list-modern li {
    margin-bottom: 10px;
}

.lms-resource-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid var(--lms-border);
    border-radius: 18px;
    text-decoration: none;
    color: var(--lms-text);
    transition: all 0.2s;
}

.lms-resource-link:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--lms-shadow-soft);
    transform: translateY(-1px);
}

.lms-file-icon {
    font-size: 24px;
    margin-right: 15px;
}

.lms-res-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lms-res-title {
    font-weight: 500;
}

.lms-res-size {
    font-size: 12px;
    color: #6b7280;
}

.lms-no-video-selected {
    padding: 40px;
    text-align: center;
    background: #f8fafc;
    border: 2px dashed var(--lms-border);
    border-radius: 24px;
    color: var(--lms-text-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .lms-course-player-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 18px 20px 16px;
    }

    .lms-course-player-topbar-left,
    .lms-course-player-topbar-right,
    .lms-course-player-topbar-center {
        width: 100%;
    }

    .lms-course-player-topbar-left {
        position: relative;
        justify-content: flex-start;
        gap: 14px;
        min-height: 36px;
    }

    .lms-course-back-link {
        order: 1;
        padding-right: 0;
        padding-left: 0;
        border-right: 0;
        border-left: 0;
    }

    .lms-course-back-link span {
        display: none;
    }

    .lms-course-player-titles {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        max-width: calc(100% - 120px);
        flex: 0 1 auto;
        align-items: center;
        text-align: center;
    }

    .lms-course-player-titles h2 {
        font-size: 18px;
    }

    .lms-course-player-topbar-right {
        gap: 14px;
        align-items: center;
    }

    .lms-course-player-topbar-right .lms-mark-complete-btn {
        display: none;
    }

    .lms-course-top-progress {
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
    }

    .lms-course-top-progress .lms-progress-bar-wrapper.small {
        width: auto;
        flex: 1 1 auto;
    }

    .lms-course-top-progress span {
        order: -1;
        flex: 0 0 auto;
    }

    .lms-course-player-topbar-center {
        padding: 0;
        justify-content: flex-start;
    }

    .lms-course-mobile-complete-wrap {
        display: flex;
        justify-content: center;
        margin: 0 0 24px;
    }

    .lms-course-mobile-complete-wrap .lms-mark-complete-btn {
        width: 100%;
        max-width: 220px;
        min-height: 56px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 22px;
        line-height: 1;
        white-space: nowrap;
        box-shadow: 0 18px 30px rgba(79, 70, 229, 0.24);
    }

    .lms-course-mobile-complete-wrap .lms-mark-complete-btn.completed {
        background: linear-gradient(135deg, #16a34a, #22c55e);
        box-shadow: 0 18px 30px rgba(34, 197, 94, 0.24);
    }

    .lms-single-course-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .lms-course-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--lms-border);
        max-height: 300px;
        overflow-y: auto;
    }

    .lms-course-playlist {
        padding: 16px;
    }

    .lms-playlist-item {
        margin-inline-start: 0;
    }

    .lms-course-overview-card h3 {
        font-size: 20px;
    }

    .lms-course-overview-card {
        padding: 24px 22px 28px;
    }

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

    .lms-course-info-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        align-items: center;
        justify-content: space-between;
        padding: 20px 22px;
    }

    .lms-course-info-copy {
        flex: 1 1 auto;
        min-width: 0;
        align-items: center;
        text-align: center;
    }

    .lms-course-info-copy strong,
    .lms-course-info-copy span,
    .lms-course-info-copy a {
        width: 100%;
    }

    .lms-certificate-printable {
        padding: 28px 20px 34px;
    }

    .lms-certificate-title {
        font-size: 28px;
    }

    .lms-certificate-user-name {
        font-size: 24px;
    }

    .lms-certificate-course-title {
        font-size: 22px;
    }

    .lms-certificate-details {
        grid-template-columns: 1fr;
    }

    .lms-quiz-lesson-stage {
        min-height: 320px;
    }

    .lms-quiz-lesson-stage-inner {
        padding: 30px 22px;
    }

    .lms-quiz-lesson-stage-inner h3 {
        font-size: 26px;
    }

    .lms-quiz-modal-body {
        padding: 26px 20px;
    }

    .lms-quiz-runner-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .lms-quiz-runner h3 {
        font-size: 22px;
    }

    .lms-quiz-runner-actions {
        flex-direction: column;
    }
}

@media print {
    @page {
        size: A4 landscape;
        margin: 0.35in;
    }

    body.lms-certificate-open * {
        visibility: hidden !important;
    }

    body.lms-certificate-open #lms-certificate-modal,
    body.lms-certificate-open #lms-certificate-modal * {
        visibility: visible !important;
    }

    body.lms-certificate-open #lms-certificate-modal {
        position: static !important;
        inset: auto !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.lms-certificate-open .lms-certificate-modal-backdrop,
    body.lms-certificate-open .lms-certificate-modal-toolbar {
        display: none !important;
    }

    body.lms-certificate-open .lms-certificate-modal-panel {
        width: 100% !important;
    }

    body.lms-certificate-open .lms-certificate-modal-card {
        box-shadow: none !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    body.lms-certificate-open .lms-certificate-printable {
        padding: 0.6in !important;
        background: #fff !important;
    }
}

/* User Profile Edit Styles */
.lms-profile-header-edit {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.lms-avatar-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lms-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 32px;
    object-fit: cover;
    border: 3px solid var(--lms-primary);
    margin-bottom: 15px;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.18);
}

.lms-upload-btn {
    background: #fff;
    color: var(--lms-primary);
    padding: 9px 16px;
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.lms-upload-btn:hover {
    background: var(--lms-primary);
    color: white;
    border-color: var(--lms-primary);
}

.lms-form-modern {
    max-width: 600px;
    margin: 0 auto;
}

.lms-form-row {
    display: flex;
    gap: 20px;
}

.lms-form-group.half {
    flex: 1;
}

.lms-form-section-title {
    font-size: 18px;
    font-weight: 800;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--lms-border);
    color: var(--lms-text);
}

.lms-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.lms-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.lms-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* User Management Table */
.lms-user-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--lms-shadow-soft);
    border: 1px solid var(--lms-border);
}
.lms-user-table th, .lms-user-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
.lms-user-table th {
    background-color: #f8fafc;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.lms-user-table tr:hover {
    background-color: #f8fafc;
}
.lms-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}
.lms-user-table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}
.lms-user-cards {
    display: none;
}
.lms-user-card {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--lms-shadow-soft);
}
.lms-user-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lms-user-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}
.lms-user-card-copy h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}
.lms-user-card-copy p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}
.lms-user-card-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}
.lms-user-card-self {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}
.lms-opt-locked {
    background-color: #fff1f2;
}
.lms-opt-locked:hover {
    background-color: #ffe4e6;
}

/* Pagination */
.lms-pagination {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    justify-content: center;
}
.lms-page-link {
    display: inline-block;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    text-decoration: none;
    color: #334155;
    font-weight: 700;
    transition: all 0.2s;
}
.lms-page-link:hover, .lms-page-link.active {
    background-color: var(--lms-primary);
    color: white;
    border-color: var(--lms-primary);
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.2);
}

/* Action Buttons */
.lms-btn-lock {
    background-color: #ef4444;
    color: white;
}
.lms-btn-lock:hover {
    background-color: #dc2626;
}
.lms-btn-unlock {
    background-color: #10b981;
    color: white;
}
.lms-btn-unlock:hover {
    background-color: #059669;
}

.lms-alert {
    border-radius: 20px;
    border-width: 1px;
    box-shadow: var(--lms-shadow-soft);
}

.lms-modal-content,
#lms-confirm-modal .lms-modal-content,
#lms-courses-modal .lms-modal-content {
    border-radius: 28px !important;
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow);
}

#lms-courses-modal table,
#lms-confirm-modal .lms-modal-content {
    font-family: 'Inter', sans-serif;
}

#lms-confirm-modal .lms-modal-content {
    padding: 28px !important;
}

#lms-confirm-modal p {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

#lms-confirm-yes,
#lms-confirm-no {
    min-width: 132px;
}

#lms-confirm-yes {
    background: linear-gradient(135deg, var(--lms-primary, #4f46e5), #5b3df5) !important;
    color: #fff !important;
    box-shadow: 0 14px 24px rgba(79, 70, 229, 0.22);
}

#lms-confirm-no {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

.lms-course-wizard {
    max-width: 900px;
    margin: 40px auto 0;
}

.lms-course-wizard-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.lms-course-wizard-sidebar {
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8fe 100%);
    padding: 34px 30px;
    border-right: 1px solid #edf2fb;
}

.lms-course-wizard-kicker,
.lms-wizard-field-block label,
.lms-wizard-section-heading span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
}

.lms-wizard-field-block label {
    display: block;
    margin-bottom: 12px;
    padding-inline: 2px;
    line-height: 1.2;
}

.lms-course-wizard-steps {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.lms-course-step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: 0;
    color: #94a3b8;
    padding: 0;
    font-size: 16px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.lms-course-step-badge {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #d9e2ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #94a3b8;
    background: #fff;
}

.lms-course-step-item.is-active .lms-course-step-badge {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #4f46e5 0%, #5b3df5 100%);
    box-shadow: 0 14px 24px rgba(79, 70, 229, 0.25);
}

.lms-course-step-item.is-active {
    color: #0f172a;
}

.lms-course-step-item.is-complete .lms-course-step-badge {
    color: #fff;
    border-color: transparent;
    background: #10b981;
}

.lms-course-wizard-main {
    padding: 46px 46px 34px;
}

.lms-course-wizard-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.lms-course-wizard-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.lms-course-wizard-steps-content {
    margin-top: 34px;
    border-top: 1px solid #eef2f7;
    padding-top: 28px;
    position: relative;
    overflow: hidden;
}

.lms-wizard-step-panel {
    position: absolute;
    inset: 28px 0 auto 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(40px);
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

.lms-wizard-step-panel.is-active {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}

.lms-wizard-step-panel.is-leaving-left {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-40px);
    z-index: 1;
}

.lms-wizard-step-panel.is-leaving-right {
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    z-index: 1;
}

.lms-wizard-step-panel.is-entering-left {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-40px);
    z-index: 2;
}

.lms-wizard-step-panel.is-entering-right {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(40px);
    z-index: 2;
}

.lms-wizard-grid {
    display: grid;
    gap: 22px;
}

.lms-wizard-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lms-wizard-grid-lesson {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
}

.lms-wizard-field-block {
    margin-bottom: 24px;
}

.lms-wizard-field-block input,
.lms-wizard-field-block select,
.lms-wizard-field-block textarea {
    width: 100%;
    border: 1px solid transparent;
    background: #f8fbff;
    border-radius: 18px;
    padding: 16px 18px;
    font-size: 15px;
    color: #0f172a;
    box-shadow: inset 0 0 0 1px #edf2fb;
}

.lms-wizard-field-block textarea {
    min-height: 116px;
    resize: vertical;
}

.lms-wizard-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.lms-link-action {
    border: 0;
    background: transparent;
    color: #4f46e5;
    font-weight: 800;
    cursor: pointer;
}

.lms-wizard-modules {
    display: grid;
    gap: 18px;
}

.lms-wizard-module {
    background: #f8fbff;
    border: 1px solid #e8eef8;
    border-radius: 28px;
    padding: 24px;
}

.lms-wizard-module-header,
.lms-wizard-lesson-header,
.lms-course-wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lms-wizard-module-index {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 800;
}

.lms-wizard-module-title {
    flex: 1;
    margin: 0 14px;
    border: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
}

.lms-wizard-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
}

.lms-module-lessons {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.lms-wizard-lesson-card {
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.lms-wizard-lesson-header {
    padding: 18px 20px;
    border-bottom: 1px solid #edf2f7;
}

.lms-wizard-lesson-title-group,
.lms-wizard-lesson-actions,
.lms-content-type-switcher,
.lms-wizard-input-icon,
.lms-course-wizard-actions-right {
    display: flex;
    align-items: center;
}

.lms-wizard-lesson-title-group {
    gap: 14px;
}

.lms-wizard-lesson-actions,
.lms-course-wizard-actions-right {
    gap: 12px;
}

.lms-wizard-lesson-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lms-wizard-lesson-icon.is-video { background: #eff6ff; color: #2563eb; }
.lms-wizard-lesson-icon.is-image { background: #ecfdf5; color: #059669; }
.lms-wizard-lesson-icon.is-slider { background: #eef2ff; color: #4f46e5; }
.lms-wizard-lesson-icon.is-quiz { background: #fff7ed; color: #ea580c; }

.lms-wizard-lesson-body {
    padding: 22px 24px 24px;
}

.lms-content-type-switcher {
    gap: 10px;
    flex-wrap: wrap;
}

.lms-content-type-btn {
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #fff;
    color: #94a3b8;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lms-content-type-btn.is-active {
    background: linear-gradient(135deg, #4f46e5 0%, #5b3df5 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 24px rgba(79, 70, 229, 0.22);
}

.lms-wizard-type-panel {
    display: none;
}

.lms-wizard-type-panel.is-active {
    display: block;
}

.lms-wizard-field-block-description {
    margin-top: 18px;
}

.lms-wizard-field-block-description textarea {
    min-height: 110px;
    resize: vertical;
}

.lms-wizard-input-icon {
    gap: 12px;
    background: #fff;
    border-radius: 18px;
    padding: 0 14px;
    box-shadow: inset 0 0 0 1px #dbe4f0;
}

.lms-wizard-input-icon input {
    box-shadow: none;
    background: transparent;
    padding-left: 0;
}

.lms-media-dropzone {
    position: relative;
    border: 2px dashed #d9e2ef;
    border-radius: 28px;
    background: #fff;
    min-height: 220px;
    overflow: hidden;
}

.lms-media-preview {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lms-media-dropzone-inner {
    text-align: center;
    color: #94a3b8;
    display: grid;
    gap: 10px;
}

.lms-media-dropzone-inner .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    margin: 0 auto;
}

.lms-media-dropzone-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.lms-media-dropzone-small,
.lms-media-dropzone-thumb {
    min-height: 0;
    border-radius: 20px;
}

.lms-media-dropzone-small {
    min-width: 180px;
    padding: 28px 18px;
}

.lms-media-dropzone-thumb {
    width: 102px;
    height: 102px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lms-media-dropzone-thumb .lms-media-dropzone-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lms-wizard-inline-upload,
.lms-wizard-slider-grid {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.lms-wizard-slider-grid .lms-thumb-wrapper,
.lms-wizard-slider-grid .lms-thumb-preview {
    width: 102px;
    height: 102px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.lms-wizard-slider-grid .lms-thumb-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lms-wizard-slider-grid img,
.lms-preview-image img,
.lms-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.lms-remove-slide-img,
.lms-wizard-slider-grid .lms-thumb-preview .lms-remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    z-index: 2;
    padding: 0;
}

.lms-remove-slide-img:hover,
.lms-wizard-slider-grid .lms-thumb-preview .lms-remove-preview:hover {
    background: #ef4444;
}

.lms-wizard-add-lesson {
    width: 100%;
    margin-top: 16px;
    border: 2px dashed #d9e2ef;
    background: transparent;
    border-radius: 20px;
    padding: 14px;
    color: #94a3b8;
    font-weight: 800;
    cursor: pointer;
}

.lms-quiz-question-list {
    display: grid;
    gap: 16px;
}

.lms-quiz-question-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #f8fbff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
}

.lms-quiz-question-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.lms-quiz-question-card-header strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.lms-quiz-wrong-options {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.lms-quiz-option-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lms-quiz-option-row input {
    flex: 1;
}

.lms-course-wizard-actions {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e8eef8;
}

.lms-wizard-resources {
    margin-top: 18px;
}

.lms-media-pill-btn,
.lms-wizard-secondary-btn,
.lms-wizard-primary-btn,
.lms-wizard-text-btn {
    border: 0;
    border-radius: 16px;
    padding: 14px 26px;
    font-weight: 800;
    cursor: pointer;
}

.lms-media-pill-btn,
.lms-wizard-secondary-btn {
    background: #f1f5f9;
    color: #334155;
}

.lms-wizard-primary-btn {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #5b3df5 100%);
    box-shadow: 0 14px 24px rgba(79, 70, 229, 0.22);
}

.lms-wizard-text-btn {
    background: transparent;
    color: #64748b;
    padding-left: 0;
}

.js-wizard-submit {
    display: none;
}

.lms-visibility-card {
    flex: 1;
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 18px;
    min-height: 72px;
    padding: 18px 16px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lms-wizard-visibility-options {
    display: flex;
    gap: 16px;
}

.lms-visibility-card input {
    display: none;
}

.lms-visibility-card.is-active {
    border-color: #4f46e5;
    box-shadow: inset 0 0 0 1px #4f46e5;
}

.lms-visibility-card-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 999px;
    border: 3px solid #e2e8f0;
    background: #fff;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.lms-visibility-card.is-active .lms-visibility-card-dot {
    border-color: #4f46e5;
    box-shadow: inset 0 0 0 4px #fff;
    background: #4f46e5;
}

.lms-visibility-card-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.lms-visibility-card-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lms-visibility-card-copy strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.lms-visibility-card-copy small {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.25;
    text-align: right;
}

.lms-private-users-panel {
    display: none;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fbff;
}

.lms-private-users-panel.is-visible {
    display: block;
}

.lms-private-user-picker {
    position: relative;
}

.lms-private-user-search {
    width: 100%;
}

.lms-private-user-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 25;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    padding: 8px;
}

.lms-private-user-result {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
}

.lms-private-user-result:hover,
.lms-private-user-result:focus {
    background: #eef4ff;
    outline: none;
}

.lms-private-user-result strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

.lms-private-user-result small {
    color: #64748b;
    font-size: 12px;
}

.lms-private-user-result.is-empty {
    cursor: default;
}

.lms-private-user-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.lms-private-user-empty {
    color: #64748b;
    font-size: 13px;
}

.lms-user-capsule {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe4f0;
    box-shadow: 0 10px 18px rgba(148, 163, 184, 0.15);
}

.lms-user-capsule-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lms-user-capsule-copy strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}

.lms-user-capsule-copy small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
}

.lms-user-capsule-remove {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.lms-card-enrollment-pill {
    position: absolute;
    top: 118px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    z-index: 3;
}

.lms-card-enrollment-pill.is-full {
    background: rgba(255, 244, 244, 0.98);
}

.lms-card-enrollment-circle {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4f46e5;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 auto;
}

.lms-card-enrollment-pill.is-full .lms-card-enrollment-circle {
    background: #ef4444;
}

.lms-card-enrollment-copy {
    color: #0f172a;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 960px) {
    .lms-course-wizard-shell {
        grid-template-columns: 1fr;
    }

    .lms-course-wizard-sidebar {
        border-right: 0;
        border-bottom: 1px solid #edf2fb;
    }

    .lms-wizard-grid-two,
    .lms-wizard-grid-lesson,
    .lms-wizard-visibility-options {
        grid-template-columns: 1fr;
        display: grid;
    }

    #lms-add-course-form {
        padding: 24px;
        border-radius: 28px;
    }

    .lms-repeater-field {
        padding: 20px;
    }

    .lms-builder-actions {
        flex-wrap: wrap;
    }

    .lms-page-title {
        font-size: 32px;
    }

    .lms-profile-surface,
    .lms-settings-surface {
        padding: 24px;
        border-radius: 28px;
    }
}

@media (max-width: 768px) {
    .lms-course-wizard-main {
        padding: 28px 22px 26px;
    }

    .lms-course-wizard-actions,
    .lms-course-wizard-actions-right {
        flex-direction: column;
        align-items: stretch;
    }

    .lms-content {
        padding: 20px;
    }

    .lms-content form,
    .lms-register-container {
        padding: 24px;
    }

    .lms-course-header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .lms-actions-right {
        width: 100%;
        flex-wrap: wrap;
    }

    .lms-video-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .lms-tab-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 1024px) {
    .lms-users-table-wrap {
        display: none;
    }

    .lms-user-cards {
        display: grid;
        gap: 16px;
    }
}
