:root {
    --pm-ink: #17102d;
    --pm-muted: #746f82;
    --pm-canvas: #f7f5fb;
    --pm-card: #ffffff;
    --pm-border: #e8e3f0;
    --pm-purple: #7c35e8;
    --pm-purple-dark: #5620b8;
    --pm-purple-soft: #f0e8ff;
    --pm-sidebar: #120826;
    --pm-sidebar-2: #24103f;
    --pm-success: #11a974;
    --pm-danger: #e94663;
    --pm-warning: #e9a11b;
    --pm-shadow: 0 14px 40px rgba(40, 22, 72, .08);
}

body {
    background: var(--pm-canvas);
    color: var(--pm-ink);
}

.side-bar {
    background:
        radial-gradient(circle at 20% 0, rgba(139, 67, 235, .3), transparent 28%),
        linear-gradient(180deg, var(--pm-sidebar-2), var(--pm-sidebar));
    border-right: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 12px 0 36px rgba(20, 8, 40, .12);
}

.side-bar-logo {
    min-height: 82px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.side-bar-logo img {
    max-height: 42px;
    max-width: 180px;
    object-fit: contain;
}

.side-bar-manu {
    padding: 14px 12px 24px;
}

.side-bar-manu > ul > li {
    margin-bottom: 5px;
}

.side-bar-manu > ul > li > a {
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, .72);
    font-weight: 600;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.side-bar-manu > ul > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    transform: translateX(2px);
}

.side-bar-manu > ul > li.active > a,
.side-bar-manu > ul > li > a.active[aria-current="page"] {
    color: #fff;
    background: linear-gradient(135deg, #9149f2, #6624cc);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 10px 25px rgba(101, 35, 205, .28);
}

.side-bar-manu .sidebar-icon {
    display: inline-grid;
    width: 26px;
    height: 26px;
    margin-right: 9px;
    place-items: center;
}

.side-bar-manu .sidebar-icon svg,
.side-bar-manu .sidebar-icon i {
    width: 19px;
    max-height: 19px;
}

.side-bar-manu li ul {
    margin: 6px 0 8px 42px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.side-bar-manu li ul a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .62);
}

.side-bar-manu li ul a:hover,
.side-bar-manu li ul a.active {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.main-header-section {
    min-height: 72px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--pm-border);
    box-shadow: 0 7px 25px rgba(32, 17, 56, .045);
    backdrop-filter: blur(14px);
}

.header-wrapper {
    min-height: 72px;
    padding: 0 26px;
}

.header-left > a {
    padding: 9px 13px;
    border-radius: 10px;
    background: var(--pm-purple-soft);
    color: var(--pm-purple-dark) !important;
    font-weight: 700;
}

.header-right .btn-light,
.profile-info > a {
    border: 1px solid var(--pm-border);
    background: #fff;
    box-shadow: 0 5px 16px rgba(38, 20, 65, .06);
}

.profile-info > a {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    place-items: center;
}

.profile-info > a img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
}

.min-100-vh > .container-fluid,
.m-h-100 {
    padding: 28px;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.table-header h4,
.dashboard-chart-header h4 {
    color: var(--pm-ink);
    font-weight: 800;
    letter-spacing: -.02em;
}

.card,
.new-card,
.erp-table-section .card {
    border: 1px solid var(--pm-border) !important;
    border-radius: 18px !important;
    background: var(--pm-card);
    box-shadow: var(--pm-shadow);
}

.card-body,
.card-bodys {
    padding: 22px;
}

.gpt-dashboard-card {
    gap: 16px;
}

.gpt-dashboard-card .couter-box {
    min-height: 128px;
    border: 1px solid var(--pm-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--pm-shadow);
}

.gpt-dashboard-card .couter-box .icons {
    border-radius: 14px;
    background: var(--pm-purple-soft);
}

.gpt-dashboard-card .content-side h5 {
    color: var(--pm-ink);
    font-size: 26px;
    font-weight: 800;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table thead th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--pm-border);
    background: #faf8fd;
    color: #625b70;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tbody td {
    padding: 15px 16px;
    border-color: #f0ecf5;
    color: #302a3b;
    vertical-align: middle;
}

.table tbody tr {
    transition: background .15s ease;
}

.table tbody tr:hover {
    background: #fbf9fe;
}

.form-control,
.form-select {
    min-height: 44px;
    border: 1px solid #ddd6e8;
    border-radius: 11px;
    color: var(--pm-ink);
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #9e62ef;
    box-shadow: 0 0 0 4px rgba(124, 53, 232, .11);
}

.form-label,
label {
    color: #3b3448;
    font-weight: 650;
}

.theme-btn,
.add-order-btn,
.btn-primary {
    border: 0 !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #8e43ed, #6422c6) !important;
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(105, 35, 203, .2);
    font-weight: 750;
}

.theme-btn:hover,
.add-order-btn:hover,
.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: #b894eb;
    color: var(--pm-purple-dark);
}

.btn-outline-primary:hover {
    border-color: var(--pm-purple);
    background: var(--pm-purple);
    color: #fff;
}

.badge {
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 750;
}

.dropdown-menu {
    padding: 8px;
    border: 1px solid var(--pm-border);
    border-radius: 13px;
    box-shadow: 0 18px 45px rgba(31, 16, 55, .14);
}

.dropdown-item,
.dropdown-menu a {
    border-radius: 8px;
}

.pagination {
    gap: 5px;
}

.page-link {
    border: 1px solid var(--pm-border);
    border-radius: 9px !important;
    color: var(--pm-purple-dark);
}

.page-item.active .page-link {
    border-color: var(--pm-purple);
    background: var(--pm-purple);
}

.alert {
    border: 0;
    border-radius: 13px;
}

@media (max-width: 991.98px) {
    .header-wrapper {
        padding: 0 16px;
    }

    .min-100-vh > .container-fluid,
    .m-h-100 {
        padding: 20px 16px;
    }

    .language-change {
        display: none;
    }

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

    .table-header > div:last-child {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .main-header-section,
    .header-wrapper {
        min-height: 64px;
    }

    .header-left > a {
        display: none;
    }

    .card,
    .new-card,
    .erp-table-section .card {
        border-radius: 14px !important;
    }

    .card-body,
    .card-bodys {
        padding: 16px;
    }

    .table thead th,
    .table tbody td {
        padding: 12px;
    }
}
