/* ============================================================
   ISO-Link Brand Identity — v2
   Primary:    #4E21B1  rgb(78, 33, 177)
   Secondary:  #B293FA  rgb(178, 147, 250)
   Background: #F0F0F9  rgb(240, 240, 249)
   Light-Primary:  #ddd1f9
   Light-Secondary: #efe8fe
   ============================================================ */

/* ==========================================================
   1. CORE CSS VARIABLES
   ========================================================== */
[data-pc-preset=preset-8] {
    --bs-font-sans-serif: 'Tajawal', sans-serif;
    --pc-sidebar-active-color: #B293FA;
    --pc-sidebar-active-color-rgb: 178, 147, 250;
    --pc-sidebar-background: #441d9c;
    --pc-sidebar-color: #ffffff;
    --pc-sidebar-color-rgb: 255, 255, 255;
    --pc-sidebar-submenu-border-color: rgba(255, 255, 255, 0.12);
    --pc-sidebar-caption-color: #c9b3f0;
    --pc-sidebar-border: none;
    --pc-sidebar-shadow: 2px 0 20px rgba(78, 33, 177, 0.18);
    --pc-header-background: rgba(255, 255, 255, 0.97);
    --pc-header-color: #343a40;
    --bs-blue: #4E21B1;
    --bs-primary: #4E21B1;
    --Colors-Primary-200: #EBE5F6;
    --Colors-Grey-Cool-Grey-500: #3E4852;
    --bs-primary-rgb: 78, 33, 177;
    --bs-primary-light: #ddd1f9;
    --bs-secondary: #B293FA;
    --bs-secondary-rgb: 178, 147, 250;
    --bs-secondary-light: #efe8fe;
    --bs-link-color: #4E21B1;
    --bs-link-color-rgb: 78, 33, 177;
    --bs-link-hover-color: #3d1a8c;
    --bs-link-hover-color-rgb: 61, 26, 140;
    --dt-row-selected: 78, 33, 177;
    --bs-body-bg: #ffffff;
    --bs-body-bg-rgb: 248, 250, 252;
}

/* Background helpers */
[data-pc-preset=preset-8] .bg-primary-dark {
    background: #3d1a8c;
    color: #3d1a8c;
}

[data-pc-preset=preset-8] .bg-secondary-dark {
    background: #9a7ae0;
    color: #9a7ae0;
}

/* ==========================================================
   2. SIDEBAR — Full Mode (Dark Purple)
   ========================================================== */
[data-pc-preset=preset-8] .pc-sidebar {
    /* background: linear-gradient(180deg, #5526B8 0%, #4018A0 100%); */
    color: #ffffff;
    border: none !important;
    box-shadow: 2px 0 24px rgba(78, 33, 177, 0.15);
    transition: width 0.3s cubic-bezier(.4, 0, .2, 1);
    overflow: visible !important;
}

[data-pc-preset=preset-8] .pc-sidebar .navbar-wrapper {
    background: transparent;
    transition: width 0.3s cubic-bezier(.4, 0, .2, 1);
}

[data-pc-preset=preset-8] .pc-sidebar .m-header {
    background: transparent;
    padding: 20px 20px 10px;
}

[data-pc-preset=preset-8] .pc-sidebar .m-header .b-brand {
    color: #ffffff !important;
}

[data-pc-preset=preset-8] .pc-sidebar .m-header .logo-lg {
    max-height: 60px !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-pc-preset=preset-8] .pc-sidebar .navbar-content {
    /* background: transparent; */
    padding: 8px 0;
}

/* Sidebar dividers between top-level items */
[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 2px;
    margin-bottom: 2px;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item:last-child {
    border-bottom: none;
}

/* Section caption label (e.g. "بنود الأيزو") */
[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.pc-caption {
    border-bottom: none;
    padding: 12px 24px 4px;
    margin-top: 8px;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.pc-caption label {
    color: rgba(196, 181, 253, 0.9);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

/* Sidebar logo — full logo open, favicon collapsed */
[data-pc-preset=preset-8] .pc-sidebar .m-header .logo-sm {
    display: none;
    max-height: 36px;
    width: auto;
    height: 60px;
}

.modal-header {
    background: var(--bs-primary-light) !important;
    border-bottom: none;
    padding: 1.5rem;
}

.card-header {
    background: var(--bs-primary-light) !important;
    border-bottom: none;
    padding: 1.5rem;
}

[data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .m-header .logo-lg {
    display: none !important;
}

[data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .m-header .logo-sm {
    display: inline-block !important;
}

/* Sidebar footer */
[data-pc-preset=preset-8] .pc-sidebar .sidebar-footer {
    padding: 20px 24px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

[data-pc-preset=preset-8] .pc-sidebar .sidebar-footer img {
    max-height: 28px;
    filter: brightness(0) invert(1);
}

/* Sidebar links — better contrast & readability */
[data-pc-preset=preset-8] .pc-sidebar .pc-link {
    color: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    /* margin: 3px 16px; */
    padding: 11px 16px;
    transition: all 0.2s ease;
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-link .pc-mtext {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-link .pc-micon {
    min-width: 30px;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-link .pc-micon i,
[data-pc-preset=preset-8] .pc-sidebar .pc-link .pc-micon svg {
    color: rgba(255, 255, 255, 0.85);
    font-size: 21px;
    transition: all 0.2s ease;
}

/* Hover state */
[data-pc-preset=preset-8] .pc-sidebar .pc-item:hover>.pc-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-item:hover>.pc-link .pc-micon i,
[data-pc-preset=preset-8] .pc-sidebar .pc-item:hover>.pc-link .pc-micon svg {
    color: #ffffff;
    transform: scale(1.05);
}

/* Active state — accent pill (TOP-LEVEL ONLY, no submenu) */
[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.active:not(.pc-hasmenu)>.pc-link {
    color: #4E21B1;
    background: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(78, 33, 177, 0.18);
    border: none;
    border-radius: 0;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.active:not(.pc-hasmenu)>.pc-link .pc-micon i,
[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.active:not(.pc-hasmenu)>.pc-link .pc-micon svg {
    color: #4E21B1;
}

/* Active state — parent with open submenu (pc-hasmenu.active) */
[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.pc-hasmenu.active>.pc-link,
[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.pc-hasmenu.pc-trigger>.pc-link {
    color: #4E21B1;
    background: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(78, 33, 177, 0.18);
    border: none;
    border-radius: 0;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.pc-hasmenu.active>.pc-link .pc-micon i,
[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.pc-hasmenu.active>.pc-link .pc-micon svg,
[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.pc-hasmenu.pc-trigger>.pc-link .pc-micon i,
[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.pc-hasmenu.pc-trigger>.pc-link .pc-micon svg {
    color: #4E21B1;
}

/* Active state — arrow icon for hasmenu */
[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.pc-hasmenu.active>.pc-link .pc-arrow,
[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item.pc-hasmenu.pc-trigger>.pc-link .pc-arrow {
    color: #4E21B1;
}

/* Submenu (Level 1) */
[data-pc-preset=preset-8] .pc-sidebar .pc-submenu .pc-link {
    color: rgba(255, 255, 255, 0.82);
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 13.5px;
    font-weight: 400;
    margin: 2px 12px;
    border-radius: 10px;
}

/* Submenu active — text-only, no background */
[data-pc-preset=preset-8] .pc-sidebar .pc-submenu>.pc-item.active>.pc-link {
    color: #ffffff;
    background: transparent;
    font-weight: 700;
}

/* Submenu active parent (has nested sub) */
[data-pc-preset=preset-8] .pc-sidebar .pc-submenu>.pc-item.pc-hasmenu.active>.pc-link,
[data-pc-preset=preset-8] .pc-sidebar .pc-submenu>.pc-item.pc-hasmenu.pc-trigger>.pc-link {
    color: #ffffff;
    background: transparent;
    font-weight: 600;
}

/* Submenu hover — subtle, no background */
[data-pc-preset=preset-8] .pc-sidebar .pc-submenu .pc-item:hover>.pc-link {
    color: #ffffff;
    background: transparent;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-submenu .pc-item:hover:before,
[data-pc-preset=preset-8] .pc-sidebar .pc-submenu .pc-item.active:before {
    background: #B293FA !important;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item .pc-submenu:after {
    background: rgba(255, 255, 255, 0.20);
}

[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item .pc-submenu .pc-item>.pc-link:after {
    background: rgba(255, 255, 255, 0.3);
}

/* Sub-submenu (Level 2) — deeper nesting, text-only active */
[data-pc-preset=preset-8] .pc-sidebar .pc-submenu .pc-submenu .pc-link {
    font-size: 13px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin: 1px 8px;
    border-radius: 8px;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-submenu .pc-submenu>.pc-item.active>.pc-link {
    color: #ffffff;
    background: transparent;
    font-weight: 700;
}

/* Caption */
[data-pc-preset=preset-8] .pc-sidebar .pc-caption {
    color: #c9b3f0;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-caption label {
    color: #c9b3f0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* Arrow */
[data-pc-preset=preset-8] .pc-sidebar .pc-arrow i,
[data-pc-preset=preset-8] .pc-sidebar .pc-arrow svg {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}

/* Scrollbar */
[data-pc-preset=preset-8] .pc-sidebar .simplebar-scrollbar::before {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Separator between top-level items */
[data-pc-preset=preset-8] .pc-sidebar .pc-navbar>.pc-item>.pc-link::after {
    background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================
   2b. SIDEBAR FOOTER — Logo at Bottom
   ========================================================== */
[data-pc-preset=preset-8] .pc-sidebar .sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.08);
    text-align: center;
    z-index: 5;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}

[data-pc-preset=preset-8] .pc-sidebar .sidebar-footer img {
    max-height: 30px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

[data-pc-preset=preset-8] .pc-sidebar .sidebar-footer img:hover {
    opacity: 1;
}

[data-pc-preset=preset-8] .pc-sidebar .navbar-content {
    height: calc(100vh - 80px - 55px) !important;
}

/* ==========================================================
   3. SIDEBAR — Mini Mode (Icon-Only, 70px)
   ========================================================== */
@media (min-width: 1025px) {

    /* Override default width:0 → 70px mini sidebar */
    /* Also cancel transform:translateX(260px) from style-preset.css (RTL hide) */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide {
        width: 70px !important;
        overflow: visible !important;
        transform: none !important;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .navbar-wrapper {
        width: 70px !important;
        overflow: visible !important;
    }

    /* Force SimpleBar inner containers to match 70px */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .navbar-content,
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .simplebar-wrapper,
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .simplebar-mask,
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .simplebar-offset,
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .simplebar-content-wrapper {
        width: 70px !important;
        overflow: visible !important;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .simplebar-content {
        width: 70px !important;
    }

    /* Header & container adjust to 70px */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide~.pc-header {
        left: 70px !important;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide~.pc-footer,
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide~.pc-container {
        margin-left: 70px !important;
    }

    /* Hide text, caption, arrow, badge */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-mtext,
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-caption,
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-arrow,
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-badge {
        display: none !important;
    }

    /* Constrain navbar list */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-navbar {
        width: 70px !important;
    }

    /* Position context for flyout */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-navbar>.pc-item {
        position: relative;
    }

    /* Center icons */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-navbar>.pc-item>.pc-link {
        padding: 14px 0;
        /* margin: 3px 8px; */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-radius: 10px;
        width: calc(70px - 16px);
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-link .pc-micon {
        margin: 0;
        min-width: auto;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-link .pc-micon i {
        font-size: 22px;
    }

    /* Hide SimpleBar scrollbar tracks in mini mode */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .simplebar-track {
        display: none !important;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .simplebar-placeholder {
        width: 70px !important;
    }

    /* Active in mini mode — highlighted circle bg (top-level only) */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-navbar>.pc-item.active>.pc-link {
        background: rgba(178, 147, 250, 0.25);
        box-shadow: none;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-navbar>.pc-item.active>.pc-link .pc-micon i {
        color: #B293FA;
    }

    /* Small logo in header */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .m-header {
        padding: 16px 8px;
        justify-content: center;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .m-header .logo-lg {
        max-height: 28px;
        max-width: 46px;
        object-fit: contain;
    }

    /* Mini footer */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .sidebar-footer {
        padding: 10px 4px;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .sidebar-footer img {
        max-height: 20px;
    }

    /* Hide all submenus in mini mode (CSS takes over from JS) */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-submenu {
        display: none !important;
    }

    /* ---- Flyout Submenu on Hover ---- */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-hasmenu>.pc-submenu {
        display: none !important;
        position: absolute;
        left: 70px;
        top: 0;
        min-width: 230px;
        background: #3a1894;
        background: linear-gradient(135deg, #4a20a8 0%, #3a1894 100%);
        border-radius: 12px;
        box-shadow: 6px 6px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06);
        padding: 10px 0;
        z-index: 1060;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-hasmenu:hover>.pc-submenu {
        display: block !important;
        animation: isolink-flyout-in 0.22s cubic-bezier(.4, 0, .2, 1);
    }

    /* Flyout items styling */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-submenu .pc-link {
        padding: 9px 18px !important;
        /* margin: 1px 6px; */
        border-radius: 6px;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.82);
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-submenu .pc-link:after {
        display: none;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-submenu .pc-item:hover>.pc-link {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-submenu .pc-item.active>.pc-link {
        background: rgba(178, 147, 250, 0.2);
        color: #fff;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-submenu .pc-item:before {
        display: none;
    }

    /* Hide the submenu vertical line in flyout */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-navbar>.pc-item .pc-submenu:after {
        display: none;
    }

    /* Nested submenus in flyout */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-submenu .pc-submenu {
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 0;
        padding: 0;
        padding-left: 12px;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-submenu .pc-submenu .pc-link {
        padding: 7px 18px !important;
        font-size: 12.5px;
    }
}

/* RTL Mini Mode */
@media (min-width: 1025px) {

    /* Cancel translateX(260px) from style-preset.css — keep sidebar visible at 70px */
    [data-pc-preset=preset-8][data-pc-direction=rtl] .pc-sidebar.pc-sidebar-hide {
        transform: none !important;
        width: 70px !important;
    }

    [data-pc-preset=preset-8][data-pc-direction=rtl] .pc-sidebar.pc-sidebar-hide~.pc-header {
        right: 70px !important;
        left: 0 !important;
    }

    [data-pc-preset=preset-8][data-pc-direction=rtl] .pc-sidebar.pc-sidebar-hide~.pc-footer,
    [data-pc-preset=preset-8][data-pc-direction=rtl] .pc-sidebar.pc-sidebar-hide~.pc-container {
        margin-right: 70px !important;
        margin-left: 0px !important;
    }

    /* Flyout appears to the LEFT in RTL */
    [data-pc-preset=preset-8][data-pc-direction=rtl] .pc-sidebar.pc-sidebar-hide .pc-hasmenu>.pc-submenu {
        left: auto;
        right: 70px;
    }

    /* Active accent on right side in full RTL */
    [data-pc-preset=preset-8][data-pc-direction=rtl] .pc-sidebar.pc-sidebar-hide .pc-submenu .pc-submenu {
        padding-left: 0;
        padding-right: 12px;
    }
}

/* Flyout animation */
@keyframes isolink-flyout-in {
    from {
        opacity: 0;
        transform: translateX(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

[data-pc-direction=rtl] [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-hasmenu:hover>.pc-submenu {
    animation-name: isolink-flyout-in-rtl;
}

@keyframes isolink-flyout-in-rtl {
    from {
        opacity: 0;
        transform: translateX(8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ==========================================================
   4. HEADER — Professional Glass Effect
   ========================================================== */
[data-pc-preset=preset-8] .pc-header {
    background: #ffffff !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: none;
    min-height: 72px;
}

[data-pc-preset=preset-8] .pc-header .pc-head-link {
    border-radius: 10px;
    transition: all 0.2s ease;
}

[data-pc-preset=preset-8] .pc-header .pc-head-link i {
    font-size: 20px;
}

[data-pc-preset=preset-8] .pc-header .header-wrapper {
    padding: 0 20px;
}

/* Menu toggle button styling */
[data-pc-preset=preset-8] .pc-header .pc-head-link.head-link-secondary {
    background: transparent;
    color: #6b7280;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

[data-pc-preset=preset-8] .pc-header .pc-head-link.head-link-secondary:hover {
    background: rgba(78, 33, 177, 0.04);
    color: #4E21B1;
    border-color: #d1d5db;
    box-shadow: none;
}

[data-pc-preset=preset-8] .pc-header .pc-head-link.head-link-secondary>i {
    color: inherit;
}

/* ==========================================================
   5. BUTTONS — Primary
   ========================================================== */
[data-pc-preset=preset-8] .btn-link {
    --bs-btn-color: #4E21B1;
    --bs-btn-hover-color: #3d1a8c;
    --bs-btn-active-color: #3d1a8c;
}

[data-pc-preset=preset-8] .btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #4E21B1;
    --bs-btn-border-color: #4E21B1;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #421c97;
    --bs-btn-hover-border-color: #3d1a8c;
    --bs-btn-focus-shadow-rgb: 105, 66, 189;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #3d1a8c;
    --bs-btn-active-border-color: #381780;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #4E21B1;
    --bs-btn-disabled-border-color: #4E21B1;
}

[data-pc-preset=preset-8] .btn-outline-primary {
    --bs-btn-color: #4E21B1;
    --bs-btn-border-color: #4E21B1;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #4E21B1;
    --bs-btn-hover-border-color: #4E21B1;
    --bs-btn-focus-shadow-rgb: 78, 33, 177;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #4E21B1;
    --bs-btn-active-border-color: #4E21B1;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #4E21B1;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #4E21B1;
    --bs-gradient: none;
}

[data-pc-preset=preset-8] .btn-light-primary {
    background: #ddd1f9;
    color: #4E21B1;
    border-color: #ddd1f9;
}

[data-pc-preset=preset-8] .btn-light-primary .material-icons-two-tone {
    background-color: #4E21B1;
}

[data-pc-preset=preset-8] .btn-light-primary:hover {
    background: #4E21B1;
    color: #fff;
    border-color: #4E21B1;
}

[data-pc-preset=preset-8] .btn-light-primary:hover .material-icons-two-tone {
    background-color: #fff;
}

[data-pc-preset=preset-8] .btn-light-primary.focus,
[data-pc-preset=preset-8] .btn-light-primary:focus {
    background: #4E21B1;
    color: #fff;
    border-color: #4E21B1;
}

[data-pc-preset=preset-8] .btn-light-primary:not(:disabled):not(.disabled).active,
[data-pc-preset=preset-8] .btn-light-primary:not(:disabled):not(.disabled):active,
.show>[data-pc-preset=preset-8] .btn-light-primary.dropdown-toggle {
    background: #4E21B1;
    color: #fff;
    border-color: #4E21B1;
}

[data-pc-preset=preset-8] .btn-check:active+.btn-light-primary,
[data-pc-preset=preset-8] .btn-check:checked+.btn-light-primary {
    background: #4E21B1;
    color: #fff;
    border-color: #4E21B1;
}

[data-pc-preset=preset-8] .btn-link-primary {
    background: transparent;
    color: #4E21B1;
    border-color: transparent;
}

[data-pc-preset=preset-8] .btn-link-primary .material-icons-two-tone {
    background-color: #4E21B1;
}

[data-pc-preset=preset-8] .btn-link-primary:hover {
    background: #ddd1f9;
    color: #4E21B1;
    border-color: #ddd1f9;
}

[data-pc-preset=preset-8] .btn-link-primary.focus,
[data-pc-preset=preset-8] .btn-link-primary:focus {
    background: #ddd1f9;
    color: #4E21B1;
    border-color: #ddd1f9;
}

[data-pc-preset=preset-8] .btn-link-primary:not(:disabled):not(.disabled).active,
[data-pc-preset=preset-8] .btn-link-primary:not(:disabled):not(.disabled):active,
.show>[data-pc-preset=preset-8] .btn-link-primary.dropdown-toggle {
    background: #ddd1f9;
    color: #4E21B1;
    border-color: #ddd1f9;
}

[data-pc-preset=preset-8] .btn-check:active+.btn-link-primary,
[data-pc-preset=preset-8] .btn-check:checked+.btn-link-primary {
    background: #ddd1f9;
    color: #4E21B1;
    border-color: #ddd1f9;
}

/* ==========================================================
   BUTTONS - Secondary
   ========================================================== */
[data-pc-preset=preset-8] .btn-secondary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #7C3AED;
    --bs-btn-border-color: #7C3AED;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #6D28D9;
    --bs-btn-hover-border-color: #6D28D9;
    --bs-btn-focus-shadow-rgb: 124, 58, 237;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #5B21B6;
    --bs-btn-active-border-color: #5B21B6;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #c4b5fd;
    --bs-btn-disabled-border-color: #c4b5fd;
}

[data-pc-preset=preset-8] .btn-outline-secondary {
    --bs-btn-color: #7C3AED;
    --bs-btn-border-color: #7C3AED;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #7C3AED;
    --bs-btn-hover-border-color: #7C3AED;
    --bs-btn-focus-shadow-rgb: 124, 58, 237;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #6D28D9;
    --bs-btn-active-border-color: #6D28D9;
    --bs-btn-disabled-color: #c4b5fd;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #c4b5fd;
    --bs-gradient: none;
}

[data-pc-preset=preset-8] .btn-light-secondary {
    background: #efe8fe;
    color: #B293FA;
    border-color: #efe8fe;
}

[data-pc-preset=preset-8] .btn-light-secondary:hover {
    background: #B293FA;
    color: #fff;
    border-color: #B293FA;
}

[data-pc-preset=preset-8] .btn-link-secondary {
    background: transparent;
    color: #B293FA;
    border-color: transparent;
}

[data-pc-preset=preset-8] .btn-link-secondary:hover {
    background: #efe8fe;
    color: #B293FA;
    border-color: #efe8fe;
}

/* ==========================================================
   HEADER — head-link-primary (notification, profile icons)
   ========================================================== */
[data-pc-preset=preset-8] .pc-header .pc-head-link.head-link-primary {
    background: transparent;
    color: #6b7280;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

[data-pc-preset=preset-8] .pc-header .pc-head-link.head-link-primary>i {
    color: #6b7280;
}

[data-pc-preset=preset-8] .pc-header .pc-head-link.head-link-primary:hover {
    background: rgba(78, 33, 177, 0.04);
    color: #4E21B1;
    border-color: #d1d5db;
    box-shadow: none;
}

[data-pc-preset=preset-8] .pc-header .pc-head-link.head-link-primary:hover>i {
    color: #4E21B1;
}

/* ==========================================================
   TEXT & BACKGROUND UTILITIES
   ========================================================== */
[data-pc-preset=preset-8] .bg-light-primary {
    background: #ddd1f9;
    color: #4E21B1;
}

[data-pc-preset=preset-8] .bg-light-secondary {
    background: #efe8fe;
    color: #B293FA;
}

[data-pc-preset=preset-8] .link-primary {
    color: #4E21B1 !important;
}

[data-pc-preset=preset-8] .link-primary:hover,
[data-pc-preset=preset-8] .link-primary:focus {
    color: #3d1a8c !important;
}

[data-pc-preset=preset-8] .link-secondary {
    color: #B293FA !important;
}

[data-pc-preset=preset-8] .link-secondary:hover,
[data-pc-preset=preset-8] .link-secondary:focus {
    color: #9a7ae0 !important;
}

[data-pc-preset=preset-8] .text-bg-primary {
    color: #ffffff !important;
    background-color: RGBA(78, 33, 177, var(--bs-bg-opacity, 1)) !important;
}

[data-pc-preset=preset-8] .material-icons-two-tone.text-primary {
    background-color: #4E21B1;
}

/* ==========================================================
   ALERTS & LIST GROUPS
   ========================================================== */
[data-pc-preset=preset-8] .alert-primary {
    --bs-alert-color: #2f1470;
    --bs-alert-bg: #ddd1f9;
    --bs-alert-border-color: #cdbdf7;
    --bs-alert-link-color: #25105a;
}

[data-pc-preset=preset-8] .list-group-item-primary {
    color: #4E21B1;
    background-color: #ddd1f9;
}

[data-pc-preset=preset-8] .list-group {
    --bs-list-group-active-bg: #4E21B1;
    --bs-list-group-active-border-color: #4E21B1;
}

/* ==========================================================
   ACCORDION
   ========================================================== */
[data-pc-preset=preset-8] .accordion {
    --bs-accordion-btn-focus-border-color: #4E21B1;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(78, 33, 177, 0.25);
    --bs-accordion-active-color: #4E21B1;
    --bs-accordion-active-bg: #ddd1f9;
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234E21B1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ==========================================================
   NAV, PAGINATION, PROGRESS
   ========================================================== */
[data-pc-preset=preset-8] .nav {
    --bs-nav-link-hover-color: #3d1a8c;
}

[data-pc-preset=preset-8] .nav-pills {
    --bs-nav-pills-link-active-bg: #4E21B1;
}

[data-pc-preset=preset-8] .pagination {
    --bs-pagination-hover-color: #3d1a8c;
    --bs-pagination-focus-color: #3d1a8c;
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(78, 33, 177, 0.25);
    --bs-pagination-active-bg: #4E21B1;
    --bs-pagination-active-border-color: #4E21B1;
}

[data-pc-preset=preset-8] .progress {
    --bs-progress-bar-bg: #4E21B1;
}

/* ==========================================================
   TABLE
   ========================================================== */
[data-pc-preset=preset-8] .table-primary {
    --bs-table-color: #ffffff;
    --bs-table-bg: #4E21B1;
    --bs-table-border-color: #6037b9;
    --bs-table-striped-bg: #572cb5;
    --bs-table-striped-color: #ffffff;
    --bs-table-active-bg: #6037b9;
    --bs-table-active-color: #ffffff;
    --bs-table-hover-bg: #5425b3;
    --bs-table-hover-color: #ffffff;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

[data-pc-preset=preset-8] table.dataTable tbody tr.selected {
    background-color: rgba(78, 33, 177, 0.08) !important;
}

/* ==========================================================
   FORM CONTROLS & CHECKS
   ========================================================== */
[data-pc-preset=preset-8] .form-control:focus,
[data-pc-preset=preset-8] .form-select:focus {
    border-color: #B293FA;
    box-shadow: 0 0 0 0.2rem rgba(78, 33, 177, 0.15);
}

[data-pc-preset=preset-8] .form-check .form-check-input.input-primary:checked {
    border-color: #4E21B1;
    background-color: #4E21B1;
}

[data-pc-preset=preset-8] .form-check .form-check-input.input-light-primary:checked {
    border-color: #ddd1f9;
    background-color: #ddd1f9;
}

[data-pc-preset=preset-8] .form-check .form-check-input.input-light-primary:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%234E21B1' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

[data-pc-preset=preset-8] .form-check .form-check-input.input-light-primary:checked[type=radio] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%234E21B1'/%3e%3c/svg%3e");
}

[data-pc-preset=preset-8] .form-check .form-check-input.input-primary:focus[type=checkbox],
[data-pc-preset=preset-8] .form-check .form-check-input.input-primary:focus[type=radio],
[data-pc-preset=preset-8] .form-check .form-check-input.input-light-primary:focus[type=checkbox],
[data-pc-preset=preset-8] .form-check .form-check-input.input-light-primary:focus[type=radio] {
    box-shadow: 0 0 0 0.2rem rgba(78, 33, 177, 0.25);
    border-color: #4E21B1;
}

[data-pc-preset=preset-8] .form-check.form-switch .form-check-input.input-light-primary:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%234E21B1'/%3e%3c/svg%3e");
}

/* ==========================================================
   SWAL (SweetAlert)
   ========================================================== */
[data-pc-preset=preset-8] .swal-button:not([disabled]):hover {
    background-color: #421c97;
}

[data-pc-preset=preset-8] .swal-button:active {
    background-color: #421c97;
}

[data-pc-preset=preset-8] .swal-button:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgba(78, 33, 177, 0.29);
}

[data-pc-preset=preset-8] .swal-content__input:focus {
    border-color: rgba(78, 33, 177, 0.29);
}

[data-pc-preset=preset-8] .swal-content__textarea:focus {
    border-color: rgba(78, 33, 177, 0.29);
}

[data-pc-preset=preset-8] .swal2-styled:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgba(78, 33, 177, 0.4) !important;
}

/* ==========================================================
   SLIDER
   ========================================================== */
[data-pc-preset=preset-8] .slider-selection {
    background-image: linear-gradient(to bottom, #B293FA 0, #B293FA 100%);
}

[data-pc-preset=preset-8] .slider-selection.tick-slider-selection {
    background-image: linear-gradient(to bottom, #9a7ae0 0, #9a7ae0 100%);
}

[data-pc-preset=preset-8] .slider-tick.in-selection {
    background-image: linear-gradient(to bottom, #9a7ae0 0, #9a7ae0 100%);
}

/* ==========================================================
   SELECT2
   ========================================================== */
[data-pc-preset=preset-8] .select2-container--default .select2-selection--single,
[data-pc-preset=preset-8] .select2-container--default .select2-selection--multiple {
    background-color: var(--bs-body-bg);
    border-color: #dee2e6;
}

[data-pc-preset=preset-8] .select2-container--default.select2-container--focus .select2-selection--single,
[data-pc-preset=preset-8] .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #B293FA;
    box-shadow: 0 0 0 0.2rem rgba(78, 33, 177, 0.15);
}

[data-pc-preset=preset-8] .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #4E21B1;
}

[data-pc-preset=preset-8] .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #ddd1f9;
    color: #4E21B1;
}

[data-pc-preset=preset-8] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #4E21B1;
    border-color: #3d1a8c;
    color: #fff;
}

/* ==========================================================
   CHOICES.JS
   ========================================================== */
[data-pc-preset=preset-8] .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #4E21B1;
    color: #fff;
}

[data-pc-preset=preset-8] .choices__list--multiple .choices__item {
    background-color: #4E21B1;
    border-color: #3d1a8c;
}

/* ==========================================================
   DARK THEME
   ========================================================== */
[data-pc-preset=preset-8][data-pc-theme=dark] {
    --bs-body-bg: #1a1625;
    --bs-body-bg-rgb: 26, 22, 37;
    --bs-primary-light: #2d2245;
    --pc-sidebar-background: #2a1560;
    --pc-header-background: rgba(26, 22, 37, 0.92);
}

[data-pc-preset=preset-8][data-pc-theme=dark] .pc-sidebar {
    background: linear-gradient(180deg, #2a1560 0%, #1e0f4a 100%);
}

[data-pc-preset=preset-8][data-pc-theme=dark] .pc-header {
    background: rgba(26, 22, 37, 0.92) !important;
    border-bottom-color: rgba(178, 147, 250, 0.1);
}

[data-pc-preset=preset-8][data-pc-theme=dark].layout-2 {
    --pc-sidebar-background: #1e0f4a;
    --pc-header-background: #1e0f4a;
    background: #1e0f4a;
}

/* ==========================================================
   PRESET COLOR SWATCH (8th dot = brand purple gradient)
   ========================================================== */
.preset-color>a[data-value="preset-8"] {
    background: linear-gradient(135deg, #4E21B1 50%, #B293FA 50%) !important;
}

/* ==========================================================
   NEW DESIGN SYSTEM — Global Overrides (Figma Match)
   ========================================================== */

/* Modern Card Design */
[data-pc-preset=preset-8] .card {
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

[data-pc-preset=preset-8] .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-pc-preset=preset-8] .card .card-header {
    border-bottom-color: #f1f5f9;
}



/* Page header — clean minimal style matching reference */
[data-pc-preset=preset-8] .page-header {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 0 8px 0 !important;
    padding: 16px 11px 8px 6px !important;
    /* position: relative !important;
    top: auto !important; */
    z-index: auto !important;
}

[data-pc-preset=preset-8] .page-header .page-block {
    width: 100%;
}

[data-pc-preset=preset-8] .page-header .page-block>div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

[data-pc-preset=preset-8] .page-header .page-header-title {
    display: block !important;
}

[data-pc-preset=preset-8] .page-header h5,
[data-pc-preset=preset-8] .page-header .h5 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #1e293b;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block;
}

[data-pc-preset=preset-8] .page-header .breadcrumb {
    display: flex !important;
    background: transparent;
    margin: 4px 0 0 0;
    padding: 0;
    font-size: 13px;
}

[data-pc-preset=preset-8] .breadcrumb .breadcrumb-item,
[data-pc-preset=preset-8] .breadcrumb .breadcrumb-item a {
    color: #6b7280;
    font-size: 13px;
}

[data-pc-preset=preset-8] .breadcrumb .breadcrumb-item a:hover {
    color: #4E21B1;
}

[data-pc-preset=preset-8] .breadcrumb .breadcrumb-item.active {
    color: #4E21B1;
}

/* Action button in header */
[data-pc-preset=preset-8] .page-header .flex-shrink-0 {
    display: flex;
    align-items: center;
}

/* Mobile: sidebar collapsed by default */
@media (max-width: 1024px) {
    [data-pc-preset=preset-8] .page-header {
        padding: 12px 0 6px 0 !important;
    }

    [data-pc-preset=preset-8] .page-header h5,
    [data-pc-preset=preset-8] .page-header .h5 {
        font-size: 1.1rem;
    }

    [data-pc-preset=preset-8] .page-header .breadcrumb {
        font-size: 11px;
    }

    /* Sidebar collapsed on mobile — LTR */
    .pc-sidebar:not(.mob-sidebar-active) {
        left: -300px !important;
    }

    /* Sidebar collapsed on mobile — RTL */
    [data-pc-direction=rtl] .pc-sidebar:not(.mob-sidebar-active) {
        left: auto !important;
        right: -300px !important;
    }
}

@media (max-width: 767px) {
    [data-pc-preset=preset-8] .page-header .page-block>div {
        gap: 8px;
    }

    [data-pc-preset=preset-8] .page-header h5,
    [data-pc-preset=preset-8] .page-header .h5 {
        font-size: 1rem;
    }
}

/* User profile in header — show name */
[data-pc-preset=preset-8] .pc-header .header-user-profile .pc-head-link {
    width: auto;
    padding: 6px 12px;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: transparent;
}

[data-pc-preset=preset-8] .pc-header .header-user-profile .pc-head-link .pc-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
}

/* Hero banner styles moved to AI banner component */

/* ==========================================================
   DASHBOARD — Stat Cards Grid
   ========================================================== */
.il-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.il-stat-card {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
    background: white;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 96px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.il-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.il-stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 4px;
}

.il-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

@media (min-width: 768px) {
    .il-stat-card {
        flex: 1 1 calc(20% - 12px);
    }
}

@media (min-width: 1200px) {
    .il-stat-card {
        flex: 1 1 calc(10% - 12px);
    }
}

/* ==========================================================
   DASHBOARD — Alert Widget
   ========================================================== */
.il-widget-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 20px;
}

.il-widget-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
}

.il-alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 12px;
    background: rgba(249, 250, 251, 0.5);
    border: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.il-alert-item:hover {
    background: #f9fafb;
}

.il-alert-item+.il-alert-item {
    margin-top: 12px;
}

.il-alert-info {
    display: flex;
    flex-direction: column;
}

.il-alert-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.il-alert-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.il-alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.il-alert-icon.orange {
    background: #fff7ed;
    color: #f97316;
}

.il-alert-icon.blue {
    background: #eff6ff;
    color: #3b82f6;
}

.il-alert-icon.red {
    background: #fef2f2;
    color: #ef4444;
}

.il-alert-icon.green {
    background: #f0fdf4;
    color: #22c55e;
}

/* ==========================================================
   DASHBOARD — Storage Widget
   ========================================================== */
.il-storage-bar-wrap {
    width: 100%;
    background: #f3f4f6;
    border-radius: 999px;
    height: 8px;
    margin-bottom: 12px;
}

.il-storage-fill {
    height: 8px;
    border-radius: 999px;
    background: #8B5CF6;
    transition: width 0.5s ease;
}

/* ==========================================================
   DASHBOARD — Chart Card
   ========================================================== */
.il-chart-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 24px;
}

.il-chart-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1f2937;
}

/* ==========================================================
   DASHBOARD — Clause Section
   ========================================================== */
.il-clause-header {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.il-clause-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8b5cf6;
    flex-shrink: 0;
}

.il-clause-stat {
    background: white;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 112px;
    transition: box-shadow 0.2s ease;
}

.il-clause-stat:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.il-clause-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 8px;
}

.il-clause-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.il-clause-value i {
    font-size: 14px;
}

/* ==========================================================
   GLOBAL — Tajawal Font Override
   ========================================================== */
.notifier-container,
.daterangepicker {
    font-family: 'Tajawal', sans-serif !important;
}



/* ==========================================================
   HEADER — Notification Bell Icon (match other icons)
   ========================================================== */
[data-pc-preset=preset-8] .pc-header .notification-bell {
    background: transparent;
    color: #6b7280;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 0;
    margin: 0 4px;
    transition: all 0.2s ease;
    position: relative;
}

[data-pc-preset=preset-8] .pc-header .notification-bell:hover {
    background: rgba(78, 33, 177, 0.04);
    color: #4E21B1;
    border-color: #d1d5db;
}

[data-pc-preset=preset-8] .pc-header .notification-bell>i {
    color: inherit;
    font-size: 20px;
}

[data-pc-preset=preset-8] .pc-header .notification-bell .pc-h-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

/* Also fix the pc-head-right container alignment */
[data-pc-preset=preset-8] .pc-header .pc-head-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================
   HEADER — Notification Dropdown (Figma Design)
   ========================================================== */
[data-pc-preset=preset-8] .notification-dropdown {
    width: 380px;
    max-width: 95vw;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 0;
    overflow: hidden;
}

[data-pc-preset=preset-8] .notification-dropdown .dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

[data-pc-preset=preset-8] .notification-dropdown .dropdown-header h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

[data-pc-preset=preset-8] .notification-dropdown .dropdown-header .mark-all-read {
    font-size: 13px;
    color: #4E21B1;
    text-decoration: none;
    font-weight: 500;
    padding: 0;
}

[data-pc-preset=preset-8] .notification-dropdown .dropdown-divider {
    display: none;
}

[data-pc-preset=preset-8] .notification-dropdown .notification-list-container {
    max-height: 360px;
    overflow-y: auto;
}

/* Notification items — dynamically generated */
[data-pc-preset=preset-8] .notification-dropdown .notification-item {
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
    white-space: normal;
    border-left: none;
    border-right: none;
    position: relative;
}

[data-pc-preset=preset-8] .notification-dropdown .notification-item:hover {
    background: #faf8ff;
    border-left: none;
}

[data-pc-preset=preset-8] .notification-dropdown .notification-item:last-child {
    border-bottom: none;
}

/* Notification icon circle — smaller, cleaner */
[data-pc-preset=preset-8] .notification-dropdown .notification-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Notification text content */
[data-pc-preset=preset-8] .notification-dropdown .notification-item h6 {
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
    line-height: 1.4;
}

[data-pc-preset=preset-8] .notification-dropdown .notification-item p {
    font-size: 12.5px;
    color: #6b7280;
    margin-bottom: 4px;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
}

[data-pc-preset=preset-8] .notification-dropdown .notification-time {
    font-size: 11.5px;
    color: #9ca3af;
}

/* Mark-read button */
[data-pc-preset=preset-8] .notification-dropdown .mark-read {
    padding: 2px 6px;
    font-size: 16px;
    color: #22c55e;
    opacity: 0.6;
    transition: opacity 0.15s;
    border: none;
    background: none;
}

[data-pc-preset=preset-8] .notification-dropdown .mark-read:hover {
    opacity: 1;
    color: #16a34a;
}

/* Unread indicator — red dot */
[data-pc-preset=preset-8] .notification-dropdown .notification-item.unread {
    background: rgba(78, 33, 177, 0.03);
}

[data-pc-preset=preset-8] .notification-dropdown .notification-item.unread::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

[data-pc-preset=preset-8][data-pc-direction=rtl] .notification-dropdown .notification-item.unread::after {
    right: auto;
    left: 12px;
}

/* View all button */
[data-pc-preset=preset-8] .notification-dropdown>a.dropdown-item:last-child,
[data-pc-preset=preset-8] .notification-dropdown>.dropdown-item.text-center {
    display: block;
    text-align: center;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #4E21B1;
    border-top: 1px solid #f1f5f9;
    background: #faf8ff;
    transition: background 0.15s ease;
}

[data-pc-preset=preset-8] .notification-dropdown>a.dropdown-item:last-child:hover,
[data-pc-preset=preset-8] .notification-dropdown>.dropdown-item.text-center:hover {
    background: #f3f0ff;
    color: #3d1a8c;
}

/* ==========================================================
   HEADER — Identity-Driven Professional Design
   ========================================================== */
[data-pc-preset=preset-8] .pc-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e9eff6 !important;
    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

[data-pc-preset=preset-8] .pc-header .header-wrapper {
    padding: 0 24px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* Professional Search Element — No border on Desktop */
[data-pc-preset=preset-8] .pc-header-search {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 12px !important;
    border: none !important;
    /* Removed border on Desktop */
    background: transparent !important;
    color: #475569 !important;
    font-size: 14px !important;
    transition: all 0.2s ease;
}

/* Show border only on mobile/tablet */
@media (max-width: 1024px) {
    [data-pc-preset=preset-8] .pc-header-search {
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
    }
}

/* Navigation Icons — Bold & Bordered */
[data-pc-preset=preset-8] .header-navigation-list {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

[data-pc-preset=preset-8] .pc-header .pc-head-link {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 20px !important;
    padding: 0 !important;
    transition: all 0.2s ease;
}

[data-pc-preset=preset-8] .pc-header .pc-head-link:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #000000 !important;
}

/* Notification Body Refinement */
[data-pc-preset=preset-8] .notification-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Bell icon for all notifications — Changed from Blue to Black/Dark */
[data-pc-preset=preset-8] .notification-item .item-avatar-circle {
    background: #f8fafc !important;
    color: #1e293b !important;
    /* Unified Black instead of Cyan */
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Notification Badge (Header) — Precise & Clean */
[data-pc-preset=preset-8] .pc-header .notifications-count.pulse-badge {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    width: 10px !important;
    height: 10px !important;
    background: #ef4444 !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    display: block !important;
    z-index: 5 !important;
}

/* Fix: Hide notification count numbers '27' from internal item icons */
[data-pc-preset=preset-8] .notification-item .notifications-count {
    display: none !important;
}

/* Restore Search Icon Color for consistency */
[data-pc-preset=preset-8] .pc-header-search i {
    color: #1e293b !important;
}

/* Notification Item Refinement & Monochrome Accents */
[data-pc-preset=preset-8] .notification-item {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8fafc !important;
}

[data-pc-preset=preset-8] .notification-item:hover {
    background: #fbfcfe !important;
}

/* Premium Thin Scrollbar for Notification Dropdown */
.notification-list-container.scrollable-container::-webkit-scrollbar {
    width: 4px !important;
}

.notification-list-container.scrollable-container::-webkit-scrollbar-track {
    background: transparent !important;
}

.notification-list-container.scrollable-container::-webkit-scrollbar-thumb {
    background: #e2e8f0 !important;
    border-radius: 10px !important;
}

.notification-list-container.scrollable-container::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1 !important;
}

/* User Profile Icon instead of Image */
[data-pc-preset=preset-8] .pc-header .user-avtar-icon {
    font-size: 24px !important;
    color: #1e293b !important;
}

[data-pc-preset=preset-8] .pc-header .user-avtar-icon {
    font-size: 24px !important;
    color: #1e293b !important;
}

/* Notification Badge Pulse Fix */
[data-pc-preset=preset-8] .notifications-count.pulse-badge {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    min-width: 8px !important;
    height: 8px !important;
    padding: 0 !important;
    border: 2px solid #fff !important;
}

/* Premium ISO Switcher Modal Styling */
#isoSystemsModal .modal-content {
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

#isoSystemsModal .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.iso-selector-card {
    position: relative;
    border: 2px dashed #f1f5f9 !important;
    border-radius: 16px !important;
    padding: 7px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #ffffff;
    cursor: pointer;
}

.iso-selector-card:hover {
    border-color: #e2e8f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05) !important;
}

/* Active State for Selected ISO */
.iso-radio:checked+.iso-selector-card {
    border-color: var(--bs-primary) !important;
    background: var(--bs-primary-light) !important;
}

.iso-radio:checked+.iso-selector-card .status-indicator {
    background: var(--bs-primary) !important;
    color: #ffffff !important;
}

.iso-selector-card .system-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--bs-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bs-primary-light);
    transition: all 0.3s ease;
}

.iso-radio:checked+.iso-selector-card .system-icon-wrapper {
    background: var(--bs-primary-light);
    border-color: var(--bs-primary);
    box-shadow: 0 4px 10px var(--bs-primary);
}

.status-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.3s ease;
}

.iso-radio:checked+.iso-selector-card .status-indicator {
    border-color: var(--bs-primary);
    color: #ffffff;
}

#isoSystemsModal .modal-footer .btn-dark {
    border-radius: 12px !important;
    padding: 12px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--bs-primary) !important;
}

/* Profile List spacing and hover */
[data-pc-preset=preset-8] .dropdown-user-profile .dropdown-item {
    padding: 10px 20px !important;
    font-size: 14px !important;
    color: #334155 !important;
}

[data-pc-preset=preset-8] .dropdown-user-profile .dropdown-item:hover {
    background: #f8fafc !important;
    color: #431abe !important;
}





/* ==========================================================
   SIDEBAR — Full Mode (Desktop, width 260px)
   ========================================================== */
[data-pc-preset=preset-8] .pc-sidebar {
    background: linear-gradient(180deg, #441d9c 0%, #2a1260 100%);
    border: none;
    box-shadow: var(--pc-sidebar-shadow);
    width: 260px !important;
}

/* Sidebar Pin Button Styling */
[data-pc-preset=preset-8] .sidebar-pin-wrapper {
    position: relative;
    padding: 0 16px 15px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
}

[data-pc-preset=preset-8] .sidebar-pin-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

[data-pc-preset=preset-8] .sidebar-pin-btn:hover {
    background: rgba(178, 147, 250, 0.2);
    color: #B293FA;
}

[data-pc-preset=preset-8] .sidebar-pin-btn i {
    font-size: 18px;
}

[data-pc-preset=preset-8] .sidebar-pin-btn .pin-icon-collapsed {
    display: none;
}

[data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .sidebar-pin-btn .pin-icon-expanded {
    display: none;
}

[data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .sidebar-pin-btn .pin-icon-collapsed {
    display: block;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-item>.pc-link {
    border-radius: 12px;
    /* margin: 3px 16px; */
    padding: 11px 16px;
    transition: background 0.2s ease, color 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
}

[data-pc-preset=preset-8] .pc-sidebar .pc-item>.pc-link .pc-micon i,
[data-pc-preset=preset-8] .pc-sidebar .pc-item>.pc-link .pc-micon svg {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}

/* ==========================================================
   SIDEBAR — Full Mode (Desktop, width 260px)
   ========================================================== */
[data-pc-preset=preset-8] .pc-sidebar {
    background: linear-gradient(180deg, #441d9c 0%, #2a1260 100%);
    border: none;
    box-shadow: var(--pc-sidebar-shadow);
    width: 260px !important;
}

[data-pc-preset=preset-8] .pc-sidebar .m-header {
    background: transparent;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* اللوقو يسار والزر يمين في العادي */
}

/* Sidebar Pin Button Styling */
[data-pc-preset=preset-8] .sidebar-pin-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

[data-pc-preset=preset-8] .sidebar-pin-btn:hover {
    background: rgba(178, 147, 250, 0.25);
    color: #B293FA;
}

[data-pc-preset=preset-8] .sidebar-pin-btn i {
    font-size: 16px;
}

[data-pc-preset=preset-8] .sidebar-pin-btn .pin-icon-collapsed {
    display: none;
}

[data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .sidebar-pin-btn .pin-icon-expanded {
    display: none;
}

[data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .sidebar-pin-btn .pin-icon-collapsed {
    display: block;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-item>.pc-link {
    border-radius: 12px;
    /* margin: 3px 16px; */
    padding: 11px 16px;
    transition: background 0.2s ease, color 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
}

[data-pc-preset=preset-8] .pc-sidebar .pc-item>.pc-link .pc-micon i,
[data-pc-preset=preset-8] .pc-sidebar .pc-item>.pc-link .pc-micon svg {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-item.active>.pc-link {
    background: rgba(178, 147, 250, 0.18);
    color: #fff;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-item.active>.pc-link .pc-micon i {
    color: #B293FA;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-item:hover>.pc-link {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-caption {
    color: var(--pc-sidebar-caption-color);
}

/* ==========================================================
   SIDEBAR — Mini Mode (Desktop Only, 70px)
   ========================================================== */
@media (min-width: 1025px) {
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide {
        width: 70px !important;
        overflow: visible !important;
        transform: none !important;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .m-header {
        flex-direction: column;
        /* جعل الزر تحت اللوقو في الـ collapsed */
        padding: 18px 0;
        gap: 12px;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .m-header .logo-lg {
        display: none !important;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .m-header .logo-sm {
        display: block !important;
        max-height: 32px;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide~.pc-header {
        left: 70px;
    }

    [data-pc-preset=preset-8][data-pc-direction=rtl] .pc-sidebar.pc-sidebar-hide~.pc-header {
        left: 0;
        right: 70px;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide~.pc-container,
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide~.pc-footer {
        margin-left: 70px !important;
    }

    [data-pc-preset=preset-8][data-pc-direction=rtl] .pc-sidebar.pc-sidebar-hide~.pc-container,
    [data-pc-preset=preset-8][data-pc-direction=rtl] .pc-sidebar.pc-sidebar-hide~.pc-footer {
        margin-left: 0 !important;
        margin-right: 70px !important;
    }

    /* Hide text & show flyout */
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-mtext,
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-caption,
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-arrow,
    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-badge {
        display: none !important;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-navbar>.pc-item>.pc-link {
        padding: 14px 0;
        margin: 2px 8px;
        justify-content: center;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-submenu {
        display: none !important;
        position: absolute;
        left: 70px;
        top: 0;
        min-width: 230px;
        background: #3c1a8f;
        box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        padding: 8px 0;
        z-index: 1050;
        animation: isolinkSubmenuFadeIn 0.2s ease;
    }

    [data-pc-preset=preset-8][data-pc-direction=rtl] .pc-sidebar.pc-sidebar-hide .pc-submenu {
        left: auto;
        right: 70px;
    }

    [data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .pc-hasmenu:hover>.pc-submenu {
        display: block !important;
    }
}

@keyframes isolinkSubmenuFadeIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================
   SIDEBAR — Mobile Responsive (Overlay Mode)
   ========================================================== */
@media (max-width: 1024px) {
    [data-pc-preset=preset-8] .pc-sidebar {
        left: -260px !important;
        right: auto !important;
        z-index: 1030;
        width: 260px !important;
        box-shadow: none;
        transition: left 0.3s cubic-bezier(.4, 0, .2, 1), box-shadow 0.3s ease !important;
        /* تأكيد اللون والخلفية لتطابق الديسكتوب */
        background: linear-gradient(180deg, #441d9c 0%, #2a1260 100%) !important;
    }

    [data-pc-preset=preset-8][data-pc-direction=rtl] .pc-sidebar {
        left: auto !important;
        right: -260px !important;
    }

    [data-pc-preset=preset-8] .pc-sidebar.mob-sidebar-active {
        left: 0 !important;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.4);
    }

    [data-pc-preset=preset-8][data-pc-direction=rtl] .pc-sidebar.mob-sidebar-active {
        right: 0 !important;
        left: auto !important;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    }

    /* Fixed header & content in mobile (no push) */
    [data-pc-preset=preset-8] .pc-sidebar~.pc-header {
        left: 0 !important;
        right: 0 !important;
    }

    [data-pc-preset=preset-8] .pc-sidebar~.pc-container,
    [data-pc-preset=preset-8] .pc-sidebar~.pc-footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    [data-pc-preset=preset-8] .pc-header .pc-h-item.pc-sidebar-popup {
        display: flex !important;
    }

    [data-pc-preset=preset-8] .pc-header .pc-h-item.header-mobile-collapse {
        display: none !important;
    }

    /* Backdrop blur added by JS .pc-menu-overlay */
    [data-pc-preset=preset-8] .pc-sidebar .pc-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        /* background: rgba(0, 0, 0, 0.5); */
        z-index: -1;
        backdrop-filter: blur(3px);
    }

    /* Logo & Header fix on mobile */
    [data-pc-preset=preset-8] .pc-sidebar .m-header {
        padding: 20px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: transparent;
    }

    [data-pc-preset=preset-8] .pc-sidebar .m-header .logo-lg {
        display: block !important;
        max-height: 45px !important;
    }

    [data-pc-preset=preset-8] .pc-sidebar .m-header .logo-sm {
        display: none !important;
    }

    /* Pin link behaves as close button on mobile */
    [data-pc-preset=preset-8] .pc-sidebar .sidebar-pin-btn {
        background: rgba(255, 255, 255, 0.15);
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* RTL Fixes for Sidebar */
[data-pc-direction=rtl][data-pc-preset=preset-8] .pc-sidebar .m-header {
    flex-direction: row-reverse;
}

[data-pc-direction=rtl][data-pc-preset=preset-8] .pc-sidebar.pc-sidebar-hide .m-header {
    flex-direction: column;
}

[data-pc-preset=preset-8] .pc-sidebar .pc-link .pc-micon {
    margin-right: 15px;
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-pc-direction=rtl][data-pc-preset=preset-8] .pc-sidebar .pc-link .pc-micon {
    margin-right: 0;
    /* margin-left: 15px; */
}

/* Page header fix for mobile overlay shadow */
@media (max-width: 1024px) {
    [data-pc-preset=preset-8] .pc-sidebar.mob-sidebar-active {
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3) !important;
    }

    [data-pc-direction=rtl][data-pc-preset=preset-8] .pc-sidebar.mob-sidebar-active {
        box-shadow: -4px 0 25px rgba(0, 0, 0, 0.3) !important;
    }
}