:root {
    --lms-green: #2a8f47;
    --lms-green-dark: #1e6b34;
    --lms-green-light: #e8f5ec;
    --lms-sidebar-width: 260px;
    --lms-page-bg: #ffffff;
    --lms-text: #1f2937;
    --lms-muted: #6b7280;
    --lms-border: #e5e7eb;
    --lms-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

body.lms-candidate-body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--lms-page-bg);
    color: var(--lms-text);
}

.lms-site-embedded .lms-candidate-wrap {
    min-height: auto;
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--lms-shadow);
    margin-bottom: 24px;
}

.lms-site-embedded .lms-candidate-sidebar {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    min-height: 100%;
    max-height: none;
}

.lms-site-embedded .lms-candidate-main {
    margin-left: 0;
    min-height: auto;
}

.lms-site-embedded .lms-candidate-content {
    padding: 24px 28px 32px;
}

@media (min-width: 992px) {
    .lms-site-embedded .lms-candidate-wrap {
        display: flex;
    }
    .lms-site-embedded .lms-candidate-sidebar {
        flex: 0 0 var(--lms-sidebar-width);
        width: var(--lms-sidebar-width);
    }
    .lms-site-embedded .lms-candidate-main {
        flex: 1;
        min-width: 0;
    }
}

.lms-candidate-wrap { display: flex; min-height: 100vh; background: var(--lms-page-bg); }

.lms-candidate-sidebar {
    width: var(--lms-sidebar-width);
    background: #fff;
    border-right: 1px solid var(--lms-border);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.lms-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 24px 14px;
    min-height: 0;
}

.lms-sidebar-help {
    margin-top: auto;
    flex-shrink: 0;
}

.lms-candidate-main {
    margin-left: var(--lms-sidebar-width);
    flex: 1;
    background: var(--lms-page-bg);
    min-height: 100vh;
}

.lms-candidate-topbar {
    background: #fff;
    border-bottom: 1px solid var(--lms-border);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.lms-candidate-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lms-candidate-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--lms-border);
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.lms-candidate-sidebar-toggle:hover,
.lms-candidate-sidebar-toggle:focus {
    background: var(--lms-green-light);
    color: var(--lms-green-dark);
    outline: none;
}

.lms-candidate-sidebar-toggle i { font-size: 18px; }

.lms-candidate-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    z-index: 150;
}

.lms-candidate-topbar h4 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lms-text);
}

.lms-candidate-topbar p {
    margin: 4px 0 0;
    color: var(--lms-muted);
    font-size: 14px;
}

.lms-candidate-welcome h4 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lms-text);
}

.lms-candidate-welcome p {
    margin: 4px 0 0;
    color: var(--lms-muted);
    font-size: 14px;
}

.lms-candidate-welcome-body {
    margin-bottom: 20px;
}

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

.lms-notify-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--lms-border);
    background: #fff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: background .15s;
}

.lms-notify-btn:hover { background: var(--lms-green-light); color: var(--lms-green-dark); }

.lms-notify-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--lms-green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
}

.lms-user-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--lms-border);
    background: #fff;
    border-radius: 999px;
    padding: 4px 14px 4px 4px;
    color: var(--lms-text);
    font-weight: 600;
    font-size: 14px;
    box-shadow: none !important;
}

.lms-user-menu .dropdown-toggle::after { margin-left: 2px; }

.lms-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lms-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.lms-candidate-content { padding: 28px 32px 40px; }

/* Hero */
.lms-hero-banner {
    background: linear-gradient(135deg, #edf9f1 0%, #d8f3e0 100%);
    border-radius: 18px;
    padding: 28px 32px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 28px;
    border: 1px solid #d1ead8;
}

.lms-hero-banner-img {
    width: 240px;
    max-width: 38%;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.lms-hero-banner h4 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--lms-green-dark);
    margin-bottom: 10px;
}

.lms-hero-banner p {
    color: #4b5563;
    margin-bottom: 16px;
    max-width: 520px;
}

.lms-hero-banner .btn-success {
    background: var(--lms-green);
    border-color: var(--lms-green);
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 600;
}

/* Stat cards */
.lms-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.lms-stat-card {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--lms-shadow);
    transition: transform .15s, box-shadow .15s;
    min-height: 130px;
}

.lms-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

.lms-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.lms-stat-icon-green { background: linear-gradient(135deg, #34b364, #2a8f47); }
.lms-stat-icon-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.lms-stat-icon-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.lms-stat-icon-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.lms-stat-body { flex: 1; min-width: 0; }

.lms-stat-label {
    display: block;
    font-size: 13px;
    color: var(--lms-muted);
    margin-bottom: 4px;
}

.lms-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--lms-text);
    margin-bottom: 10px;
}

.lms-stat-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--lms-green);
    text-decoration: none;
}

.lms-stat-link:hover { color: var(--lms-green-dark); text-decoration: none; }

/* Section headers */
.lms-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.lms-section-head h5 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lms-text);
}

.lms-section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--lms-green);
    text-decoration: none;
}

.lms-section-link:hover { color: var(--lms-green-dark); text-decoration: none; }

.lms-courses-filter-bar {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--lms-shadow);
}

.lms-courses-filter-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 12px;
}

.lms-courses-filter-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--lms-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.lms-courses-filter-search {
    flex: 1 1 auto;
    min-width: 0;
}

.lms-courses-filter-price {
    flex: 0 0 140px;
}

.lms-courses-filter-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 1px;
}

.lms-courses-filter-actions .btn-success {
    background: var(--lms-green);
    border-color: var(--lms-green);
    font-weight: 600;
    white-space: nowrap;
}

/* Course cards */
.lms-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
    margin-bottom: 32px;
}

.lms-course-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--lms-border);
    box-shadow: var(--lms-shadow);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

.lms-course-card:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

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

.lms-course-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lms-course-card-body h6 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--lms-text);
}

.lms-course-meta {
    font-size: 12px;
    color: var(--lms-muted);
    margin-bottom: 14px;
}

.lms-course-meta i { color: var(--lms-green); margin-right: 4px; }

.lms-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--lms-green);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.lms-price-badge.free { background: #10b981; }

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

.lms-course-card .btn-outline-success {
    margin-top: auto;
    border-radius: 8px;
    font-weight: 600;
    border-color: var(--lms-green);
    color: var(--lms-green);
}

.lms-course-card .btn-outline-success:hover {
    background: var(--lms-green);
    border-color: var(--lms-green);
    color: #fff;
}

.lms-applied-label {
    display: block;
    margin-top: auto;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: var(--lms-green-dark);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.lms-applied-label i {
    margin-right: 6px;
}

.lms-applied-thumb-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #10b981;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.lms-applied-thumb-badge i {
    margin-right: 4px;
}

.lms-staff-dashboard-link {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--lms-green-dark) !important;
    font-weight: 600;
}

.lms-staff-dashboard-link:hover {
    background: var(--lms-green-light) !important;
    color: var(--lms-green-dark) !important;
}

/* Generic card */
.lms-card {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--lms-shadow);
}

.lms-my-course-card {
    padding: 18px 20px;
}

.lms-my-course-thumb {
    width: 100%;
    max-height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.lms-progress-wrap { margin-top: 10px; }

.lms-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
}

.lms-progress-label {
    color: var(--lms-muted);
    font-weight: 500;
}

.lms-progress-pct {
    color: var(--lms-green-dark);
    font-weight: 700;
}

.lms-progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.lms-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #34b364, var(--lms-green));
    border-radius: 999px;
    transition: width .3s ease;
    min-width: 0;
}

.lms-progress-fill.complete {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* Learn page */
.lms-learn-page {
    padding-bottom: 100px;
}

.lms-session-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.lms-session-step {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 88px;
    padding: 10px 12px;
    border: 2px solid var(--lms-border);
    border-radius: 12px;
    background: #fff;
    color: var(--lms-muted);
    text-decoration: none !important;
    transition: border-color .15s, background .15s, color .15s;
}

.lms-session-step:hover {
    border-color: #b8e6c8;
    color: var(--lms-green-dark);
    text-decoration: none;
}

.lms-session-step.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.lms-session-step.active:hover {
    border-color: #1d4ed8;
    background: #dbeafe;
    color: #1e40af;
}

.lms-session-step.done {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.lms-session-step.locked {
    opacity: .55;
    cursor: not-allowed;
    background: #f8fafc;
}

.lms-session-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lms-session-step.active .lms-session-step-num {
    background: #2563eb;
    color: #fff;
}

.lms-session-step.done .lms-session-step-num {
    background: var(--lms-green);
    color: #fff;
}

.lms-session-step-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.lms-session-panel {
    padding: 20px 22px;
    border: 2px solid #93c5fd;
    background: #f8fbff;
}

.lms-session-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--lms-border);
}

.lms-session-content-item {
    padding: 16px 0;
    border-bottom: 1px dashed #eef2f7;
}

.lms-session-content-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lms-session-content-item.is-done {
    opacity: .85;
}

.lms-session-nav {
    gap: 12px;
}

.lms-session-nav-top {
    margin-top: 0;
    padding: 0 4px;
}

.lms-session-nav-left,
.lms-session-nav-right {
    flex: 1 1 0;
    min-width: 0;
}

.lms-session-nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.lms-protected-content {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.lms-protected-content.content-html {
    padding: 16px;
    background: #fafbfc;
    border: 1px solid var(--lms-border);
    border-radius: 10px;
    line-height: 1.6;
}

.lms-protected-content img {
    pointer-events: none;
}

.lms-fab-group {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.lms-fab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.22);
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
}

.lms-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
    color: #fff;
    text-decoration: none;
}

.lms-fab-quiz {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1050;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.lms-fab-cert {
    background: linear-gradient(135deg, #34b364, var(--lms-green));
}

.lms-fab-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--lms-green-dark);
    background: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--lms-border);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    text-decoration: none !important;
}

.lms-fab-link:hover {
    color: var(--lms-green);
    text-decoration: none;
}

.lms-quiz-modal .modal-header {
    border-bottom: 1px solid var(--lms-border);
}

.lms-quiz-question {
    font-size: 16px;
    margin-bottom: 18px;
    color: var(--lms-text);
}

.lms-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lms-quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--lms-border);
    border-radius: 12px;
    cursor: pointer;
    margin: 0;
    transition: border-color .15s, background .15s;
}

.lms-quiz-option:hover {
    border-color: #b8e6c8;
    background: #f8fdf9;
}

.lms-quiz-option.selected {
    border-color: var(--lms-green);
    background: var(--lms-green-light);
}

.lms-quiz-option input {
    margin-top: 4px;
    flex-shrink: 0;
}

.lms-quiz-option-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lms-quiz-option.selected .lms-quiz-option-letter {
    background: var(--lms-green);
    color: #fff;
}

.lms-quiz-option-text {
    flex: 1;
    line-height: 1.45;
}

.lms-quiz-result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}

.lms-quiz-result-icon.success {
    background: var(--lms-green-light);
    color: var(--lms-green);
}

.lms-quiz-result-icon.fail {
    background: #fef2f2;
    color: #dc2626;
}

@media (max-width: 768px) {
    .lms-fab,
    .lms-fab-group {
        right: 16px;
        bottom: 16px;
    }
    .lms-fab {
        padding: 12px 18px;
        font-size: 14px;
    }
    .lms-fab span {
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* How it works */
.lms-how-it-works {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: var(--lms-shadow);
}

.lms-how-it-works h5 {
    margin: 0 0 20px;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: left;
    color: var(--lms-text);
}

.lms-how-body {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
}

.lms-how-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    width: 100%;
    gap: 0;
}

.lms-how-step {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 0 10px;
}

.lms-how-step:first-child { padding-left: 0; }

.lms-how-arrow {
    color: #d1d5db;
    font-size: 22px;
    font-weight: 300;
    flex: 0 0 28px;
    text-align: center;
    align-self: center;
    padding-top: 0;
    line-height: 1;
}

.lms-how-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lms-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.lms-how-step strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--lms-text);
}

.lms-how-step small {
    color: var(--lms-muted);
    font-size: 12px;
    line-height: 1.4;
    display: block;
}

.lms-how-cert {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    background: linear-gradient(135deg, #edf9f1, #d8f3e0);
    border: 1px solid #c8e6d0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--lms-green);
    font-size: 42px;
}

/* Staff LMS page */
.staff-lms-content .lms-staff-welcome h4 {
    font-size: 1.35rem;
    color: var(--lms-text);
}

.lms-staff-chart-card {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: var(--lms-shadow);
}

.lms-staff-chart-title {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lms-text);
}

.lms-empty-state {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px dashed #c8e6d0;
    border-radius: 14px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--lms-shadow);
}

.lms-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--lms-green-light);
    color: var(--lms-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.lms-empty-state h5 {
    margin: 0 0 8px;
    font-weight: 700;
    color: var(--lms-text);
}

.lms-empty-state p {
    margin: 0;
    color: var(--lms-muted);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Application cards */
.lms-app-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lms-app-summary-card {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: var(--lms-shadow);
}

.lms-app-summary-card strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--lms-text);
}

.lms-app-summary-label {
    display: block;
    font-size: 12px;
    color: var(--lms-muted);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.lms-app-summary-card.pending { border-top: 3px solid #f59e0b; }
.lms-app-summary-card.approved { border-top: 3px solid var(--lms-green); }
.lms-app-summary-card.rejected { border-top: 3px solid #dc2626; }

.lms-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.lms-app-card {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    box-shadow: var(--lms-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.lms-app-card:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.lms-app-card-top {
    display: flex;
    gap: 14px;
    padding: 16px 16px 0;
}

.lms-app-card-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--lms-border);
}

.lms-app-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lms-app-card-head {
    flex: 1;
    min-width: 0;
}

.lms-app-card-head h6 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--lms-text);
    line-height: 1.35;
}

.lms-app-status {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
}

.lms-app-status i { margin-right: 4px; }

.lms-app-card-body {
    padding: 14px 16px;
    flex: 1;
}

.lms-app-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed #eef2f7;
    font-size: 13px;
}

.lms-app-meta-row:last-of-type { border-bottom: none; }

.lms-app-meta-label {
    color: var(--lms-muted);
    font-weight: 500;
}

.lms-app-meta-label i {
    color: var(--lms-green);
    margin-right: 6px;
    width: 14px;
    text-align: center;
}

.lms-app-ref-box {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px dashed #dbeafe;
    border-radius: 10px;
}

.lms-app-ref-box code {
    display: inline-block;
    font-size: 13px;
    padding: 4px 8px;
    background: #fff;
    border-radius: 6px;
    color: #1e40af;
}

.lms-app-pay-note {
    margin-top: 8px;
    font-size: 12px;
    color: #b45309;
    line-height: 1.45;
}

.lms-app-card-footer {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--lms-border);
    background: #fafbfc;
}

.lms-app-footer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lms-app-footer-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
}

.lms-app-footer-note {
    display: block;
    font-size: 12px;
    color: var(--lms-muted);
    line-height: 1.45;
}

.lms-app-footer-note i { margin-right: 4px; }

.lms-app-card-success { border-top: 3px solid var(--lms-green); }
.lms-app-card-warning { border-top: 3px solid #f59e0b; }
.lms-app-card-danger { border-top: 3px solid #dc2626; }

/* Sidebar polish */
.lms-candidate-sidebar .nav-link-style {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 0;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, color .15s;
}

.lms-candidate-sidebar .nav-link-style:hover {
    background: var(--lms-green-light);
    color: var(--lms-green-dark);
    text-decoration: none;
}

.lms-candidate-sidebar .nav-link-style.active {
    background: var(--lms-green);
    color: #fff;
}

@media (max-width: 1199px) {
    .lms-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .lms-app-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .lms-candidate-sidebar-toggle { display: inline-flex; }
    .lms-candidate-sidebar-overlay.show { display: block; }
    .lms-candidate-sidebar {
        transform: translateX(-100%);
        transition: transform .3s ease;
        z-index: 200;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }
    .lms-candidate-sidebar.open { transform: translateX(0); }
    body.lms-candidate-sidebar-open { overflow: hidden; }
    .lms-candidate-main { margin-left: 0; }
    .lms-candidate-topbar,
    .lms-candidate-content { padding-left: 20px; padding-right: 20px; }
    .lms-candidate-topbar {
        align-items: center;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .lms-candidate-topbar-left {
        flex: 1;
    }
    .lms-candidate-welcome-body h4 { font-size: 1.25rem; }
    .lms-candidate-welcome-body p { font-size: 13px; }
    .lms-candidate-content { padding-top: 16px; }
    .lms-user-menu .dropdown-toggle > span:not(.lms-user-avatar) { display: none; }
    .lms-hero-banner { flex-direction: column; text-align: center; padding: 24px; }
    .lms-hero-banner-img { max-width: 220px; width: 100%; }
    .lms-stat-grid { grid-template-columns: 1fr; }
    .lms-app-summary { grid-template-columns: 1fr 1fr; }
    .lms-app-grid { grid-template-columns: 1fr; }
    .lms-courses-filter-form {
        flex-wrap: wrap;
    }
    .lms-courses-filter-search,
    .lms-courses-filter-price {
        flex: 1 1 100%;
    }
    .lms-how-body { flex-direction: column; align-items: flex-start; }
    .lms-how-arrow { display: none; }
    .lms-how-steps { flex-direction: column; }
    .lms-how-step { max-width: none; }
}

.lms-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.lms-badge-success { background: #d1fae5; color: #065f46; }
.lms-badge-info { background: #dbeafe; color: #1e40af; }
.lms-badge-primary { background: #dbeafe; color: #1d4ed8; }
.lms-badge-secondary { background: #e5e7eb; color: #374151; }
.lms-badge-warning { background: #fef3c7; color: #92400e; }

/* LMS public login page */
.lms-login-page-wrap {
    margin-top: 125px;
    padding: 0 0 16px;
    scroll-margin-top: 125px;
}

.lms-login-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}

.lms-login-shell {
    display: flex;
    min-height: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
    border: 1px solid #e8efe9;
}

.lms-login-shell-compact {
    max-height: calc(100vh - 145px);
}

.lms-login-shell-compact .lms-login-brand-art {
    display: none;
}

.lms-login-shell-compact .lms-login-brand-desc {
    display: none;
}

.lms-login-brand {
    flex: 0 0 32%;
    background:
        radial-gradient(circle at 15% 20%, rgba(42, 143, 71, 0.12), transparent 28%),
        radial-gradient(circle at 85% 80%, rgba(42, 143, 71, 0.08), transparent 24%),
        linear-gradient(180deg, #f3fbf5 0%, #eef8f1 100%);
    position: relative;
}

.lms-login-brand::before,
.lms-login-brand::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(42, 143, 71, 0.06);
}

.lms-login-brand::before {
    width: 180px;
    height: 180px;
    top: 40px;
    left: -40px;
}

.lms-login-brand::after {
    width: 120px;
    height: 120px;
    bottom: 80px;
    right: -20px;
}

.lms-login-brand-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 16px;
}

.lms-login-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-bottom: 8px;
}

.lms-login-brand h2 {
    color: var(--lms-green-dark);
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px;
}

.lms-login-tagline {
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0;
}

.lms-login-brand-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
    max-width: 300px;
    margin: 0 auto;
}

.lms-login-brand-art {
    text-align: center;
    margin-top: 10px;
}

.lms-login-hero-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

.lms-login-panel {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.lms-login-panel-inner {
    width: 100%;
    padding: 16px 24px 14px;
}

.lms-login-head {
    text-align: center;
    margin-bottom: 10px;
}

.lms-login-head-compact {
    margin-bottom: 8px;
}

.lms-login-head-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: var(--lms-green-light);
    color: var(--lms-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.lms-login-head h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--lms-text);
}

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

.lms-login-form label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 4px;
}

.lms-input-wrap {
    position: relative;
}

.lms-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 2;
}

.lms-input-control {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #d7dde5;
    padding-left: 36px;
    padding-right: 36px;
    box-shadow: none;
    font-size: 13px;
}

.lms-input-control:focus {
    border-color: var(--lms-green);
    box-shadow: 0 0 0 3px rgba(42, 143, 71, 0.12);
}

.lms-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9ca3af;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
}

.lms-password-toggle:hover {
    color: var(--lms-green);
    background: #f3f4f6;
}

.lms-forgot-link {
    color: var(--lms-green);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.lms-forgot-link:hover {
    color: var(--lms-green-dark);
    text-decoration: underline;
}

.lms-login-submit {
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(180deg, #2f9b4d 0%, var(--lms-green) 100%);
    border-color: var(--lms-green);
    box-shadow: 0 6px 14px rgba(42, 143, 71, 0.16);
}

.lms-login-submit:hover {
    background: linear-gradient(180deg, #268642 0%, var(--lms-green-dark) 100%);
    border-color: var(--lms-green-dark);
}

.lms-login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 8px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lms-login-divider-compact {
    margin: 8px 0 6px;
}

.lms-login-divider::before,
.lms-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.lms-login-divider span {
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #6b7280;
    font-size: 10px;
}

.lms-login-divider.is-muted span {
    min-width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-transform: none;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0;
}

.lms-login-section-label {
    text-align: center;
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 6px;
}

.lms-login-actions-row {
    margin-left: -6px;
    margin-right: -6px;
}

.lms-login-actions-row > [class*="col-"] {
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: 6px;
}

.lms-login-action {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.lms-login-action:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.lms-login-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}

.lms-login-action-text {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.lms-login-action-arrow {
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
}

.lms-login-action.is-green {
    border-color: #cfe8d7;
}

.lms-login-action.is-green .lms-login-action-icon {
    background: #e8f7ed;
    color: var(--lms-green);
}

.lms-login-action.is-blue {
    border-color: #cfe0ff;
}

.lms-login-action.is-blue .lms-login-action-icon {
    background: #edf4ff;
    color: #2563eb;
}

.lms-login-action.is-teal {
    border-color: #c7eef2;
}

.lms-login-action.is-teal .lms-login-action-icon {
    background: #e7fbfb;
    color: #0891b2;
}

.lms-login-action.is-green:hover {
    border-color: #9fd4b0;
    color: var(--lms-green-dark);
}

.lms-login-action.is-blue:hover {
    border-color: #9ec5ff;
    color: #1d4ed8;
}

.lms-login-action.is-teal:hover {
    border-color: #8fdde7;
    color: #0e7490;
}

.lms-login-privacy {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f3fbf5;
    border: 1px solid #d9f0e0;
    color: #3f5f49;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.lms-login-privacy-compact {
    margin-top: 10px;
}

.lms-input-wrap-phone .lms-phone-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.lms-phone-input {
    padding-left: 52px !important;
}

.lms-login-privacy .fa-check-circle {
    color: var(--lms-green);
}

@media (max-width: 991px) {
    .lms-login-page-wrap {
        margin-top: 110px;
    }

    .lms-login-shell {
        flex-direction: column;
        max-height: none;
    }

    .lms-login-brand {
        flex: none;
    }

    .lms-login-brand-inner {
        padding: 14px 14px 10px;
    }

    .lms-login-panel-inner {
        padding: 14px 14px 12px;
    }

    .lms-login-head h3 {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .lms-login-page-wrap {
        margin-top: 100px;
        padding-bottom: 12px;
    }

    .lms-login-shell {
        border-radius: 12px;
    }

    .lms-login-brand h2 {
        font-size: 18px;
    }

    .lms-login-action-text {
        font-size: 10px;
    }
}

/* LMS Support Tickets */
.lms-ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.lms-ticket-card {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    box-shadow: var(--lms-shadow);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    overflow: hidden;
}

.lms-ticket-card:hover,
.lms-ticket-card:focus {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
    outline: none;
}

.lms-ticket-card-unread {
    border-color: #fbbf24;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35);
}

.lms-ticket-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 0;
}

.lms-ticket-id {
    font-weight: 700;
    color: var(--lms-green);
    font-size: 14px;
}

.lms-ticket-card-body {
    padding: 12px 16px;
    flex: 1;
}

.lms-ticket-tags .badge {
    margin-right: 4px;
    font-size: 11px;
}

.lms-ticket-details {
    margin: 0;
    font-size: 13px;
    color: var(--lms-text);
    line-height: 1.5;
}

.lms-ticket-reply {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--lms-green-light);
    border-radius: 10px;
    border-left: 3px solid var(--lms-green);
}

.lms-ticket-reply p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #374151;
}

.lms-ticket-card-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px 14px;
    border-top: 1px dashed #eef2f7;
    font-size: 12px;
    color: var(--lms-muted);
}

.lms-empty-state {
    background: #fff;
    border: 1px dashed var(--lms-border);
    border-radius: 14px;
}

@media (max-width: 767px) {
    .lms-ticket-grid { grid-template-columns: 1fr; }
}

.lms-account-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    font-size: 30px;
}
.lms-account-status-icon.pending { background: #fef3c7; color: #d97706; }
.lms-account-status-icon.approved { background: var(--lms-green-light); color: var(--lms-green); }
.lms-account-status-icon.disapproved { background: #fee2e2; color: #dc2626; }
.lms-card {
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 14px;
    box-shadow: var(--lms-shadow);
}
