:root {
    --lf-primary: #5697D0;
    --lf-secondary: #2A2C39;
    --lf-primary-hover: #4A88BD;
    --lf-background: #F5F7FA;
    --lf-panel: #FFFFFF;
    --lf-border: #D8D8D8;
    --lf-text: #2A2C39;
    --lf-muted: #6B7280;
    --lf-success: #198754;
    --lf-warning: #FFC107;
    --lf-danger: #DC3545;
    --lf-radius: 8px;
    --lf-shadow: 0 10px 30px rgba(42, 44, 57, 0.08);
    --lf-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--lf-background);
    color: var(--lf-text);
    font-family: var(--lf-font);
    font-size: 0.95rem;
    letter-spacing: 0;
}

.app-layout {
    min-height: 100vh;
}

.app-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 24px 40px 32px;
}

a {
    color: var(--lf-primary);
}

a:hover {
    color: var(--lf-primary-hover);
}

.app-sidebar,
.installer-sidebar {
    background: var(--lf-secondary);
    color: #FFFFFF;
}

.app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    width: 240px;
    padding: 24px 18px;
    overflow-y: auto;
}

.app-sidebar + .app-main {
    margin-left: 240px;
}

.installer-sidebar {
    min-height: 100vh;
}

.app-sidebar .brand,
.installer-brand {
    display: block;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 0;
}

.app-sidebar .brand::before,
.installer-brand::before {
    content: "";
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.55rem;
    border-radius: 999px;
    background: var(--lf-primary);
}

.app-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.78);
    border-radius: var(--lf-radius);
    padding: 0.72rem 0.85rem;
    font-weight: 600;
}

.nav-icon,
.admin-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.nav-icon svg,
.admin-card-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link:focus {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.app-sidebar .nav-link.active,
.installer-step.active {
    color: #FFFFFF;
    background: var(--lf-primary);
}

.page-shell,
.installer-panel {
    max-width: 1240px;
}

.lds-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    color: #FFFFFF;
    background: var(--lf-primary);
    border-radius: var(--lf-radius);
    box-shadow: var(--lf-shadow);
}

.lds-top-eyebrow {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.lds-top-title {
    font-size: 1.05rem;
    font-weight: 800;
}

.lds-top-meta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: right;
}

.les011-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-eyebrow {
    color: var(--lf-primary);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.page-heading {
    color: var(--lf-text);
    font-size: 1.0rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.stat-card strong {
    display: block;
    color: var(--lf-text);
    font-size: 1.0rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.les011-option2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 1.25rem;
    align-items: start;
}

.les011-kv-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem 1rem;
}

.les011-kv-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    background: var(--lf-panel);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius);
}

.les011-kv-row span {
    color: var(--lf-muted);
    font-weight: 700;
}

.les011-kv-row strong {
    color: var(--lf-text);
    text-align: right;
}

.les011-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.4rem 0.62rem;
    white-space: nowrap;
}

.les011-status-pass {
    background: #ECFDF5;
    border: 1px solid rgba(25, 135, 84, 0.28);
    color: var(--lf-success);
}

.les011-status-warning {
    background: #FFF7ED;
    border: 1px solid rgba(255, 193, 7, 0.42);
    color: #8A6400;
}

.les011-status-fail {
    background: #FEF2F2;
    border: 1px solid rgba(220, 53, 69, 0.26);
    color: var(--lf-danger);
}

.les011-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.installer-panel {
    max-width: 920px;
}

.bg-white,
.card,
.modal-content {
    background: var(--lf-panel) !important;
}

.border,
.card,
.modal-content,
.table,
.form-control,
.form-select,
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-color: var(--lf-border) !important;
}

.rounded-3,
.card,
.modal-content,
.form-control,
.form-select,
.btn,
.alert,
.badge {
    border-radius: var(--lf-radius) !important;
}

.shadow-sm,
.card {
    box-shadow: var(--lf-shadow) !important;
}

.text-primary {
    color: var(--lf-primary) !important;
}

.text-muted,
.text-secondary {
    color: var(--lf-muted) !important;
}

.btn {
    font-weight: 700;
    padding: 0.58rem 0.95rem;
}

.btn-primary {
    background: var(--lf-primary);
    border-color: var(--lf-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--lf-primary-hover);
    border-color: var(--lf-primary-hover);
}

.btn-outline-primary {
    color: var(--lf-primary);
    border-color: var(--lf-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #FFFFFF;
    background: var(--lf-primary);
    border-color: var(--lf-primary);
}

.btn-outline-secondary {
    color: var(--lf-secondary);
    border-color: var(--lf-border);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #FFFFFF;
    background: var(--lf-secondary);
    border-color: var(--lf-secondary);
}

.btn-outline-danger {
    color: var(--lf-danger);
    border-color: var(--lf-danger);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #FFFFFF;
    background: var(--lf-danger);
    border-color: var(--lf-danger);
}

.form-label {
    color: var(--lf-text);
    font-weight: 700;
}

.form-control,
.form-select {
    color: var(--lf-text);
    background-color: var(--lf-panel);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--lf-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(86, 151, 208, 0.18);
}

.table {
    color: var(--lf-text);
}

.table > :not(caption) > * > * {
    padding: 0.85rem 0.9rem;
    border-bottom-color: var(--lf-border);
}

.table thead th {
    color: var(--lf-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--lf-background);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: var(--lf-background);
}

.alert {
    border-width: 1px;
    font-weight: 600;
}

.alert-success,
.text-bg-success {
    --bs-success-rgb: 25, 135, 84;
    background-color: rgba(25, 135, 84, 0.12) !important;
    color: var(--lf-success) !important;
    border-color: rgba(25, 135, 84, 0.28) !important;
}

.alert-warning,
.text-bg-warning {
    background-color: rgba(255, 193, 7, 0.16) !important;
    color: #7A5B00 !important;
    border-color: rgba(255, 193, 7, 0.34) !important;
}

.alert-danger,
.text-bg-danger {
    background-color: rgba(220, 53, 69, 0.12) !important;
    color: var(--lf-danger) !important;
    border-color: rgba(220, 53, 69, 0.26) !important;
}

.alert-info {
    background-color: rgba(86, 151, 208, 0.14);
    color: var(--lf-primary);
    border-color: rgba(86, 151, 208, 0.3);
}

.badge {
    font-weight: 800;
}

.kpi-card {
    min-height: 120px;
}

.admin-card {
    display: flex;
    gap: 1rem;
    height: 100%;
    min-height: 142px;
    padding: 1rem;
    background: var(--lf-panel);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius);
    box-shadow: var(--lf-shadow);
    color: var(--lf-text);
}

.admin-card:hover,
.admin-card:focus {
    color: var(--lf-text);
    border-color: var(--lf-primary);
}

.admin-card-icon {
    width: 2.35rem;
    height: 2.35rem;
    color: var(--lf-primary);
    background: rgba(86, 151, 208, 0.12);
    border-radius: var(--lf-radius);
}

.admin-card-status {
    margin-top: 0.75rem;
    color: var(--lf-primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.wizard-step {
    color: var(--lf-muted);
    border-bottom: 3px solid var(--lf-border);
    padding-bottom: 0.5rem;
}

.wizard-step.active {
    color: var(--lf-primary);
    border-color: var(--lf-primary);
    font-weight: 800;
}

.installer-step {
    border-left: 3px solid transparent;
    color: rgba(255, 255, 255, 0.62);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--lf-radius) var(--lf-radius) 0;
}

.installer-shell,
.auth-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(86, 151, 208, 0.12), transparent 32rem),
        var(--lf-background);
}

.auth-panel {
    width: 100%;
    max-width: 440px;
    background: var(--lf-panel);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius);
    box-shadow: var(--lf-shadow);
}

.lf-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--lf-radius);
    color: #FFFFFF;
    background: var(--lf-primary);
    font-weight: 800;
}

.luis-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin: auto 0 0;
    padding: 20px 24px;
    background: var(--lf-panel);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius);
    color: var(--lf-muted);
    font-size: 13px;
    line-height: 1.4;
}

.luis-footer div {
    flex: 1 1 0;
    min-width: 0;
}

.luis-footer div:nth-child(2) {
    text-align: center;
}

.luis-footer div:nth-child(3) {
    text-align: right;
}

@media (max-width: 991.98px) {
    .les011-option2-grid {
        grid-template-columns: 1fr;
    }

    .app-main {
        padding: 1.5rem;
    }

    .app-sidebar,
    .installer-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
        padding: 1rem;
    }

    .app-sidebar + .app-main {
        margin-left: 0;
    }

    .app-sidebar .nav,
    .installer-sidebar nav {
        flex-direction: row !important;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .luis-footer {
        margin-top: 1.5rem;
        flex-direction: column;
        gap: 0.35rem;
        font-size: 13px;
    }

    .luis-footer div,
    .luis-footer div:nth-child(2),
    .luis-footer div:nth-child(3) {
        text-align: left;
    }

    .lds-top-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .lds-top-meta {
        text-align: left;
    }
}
