p.parsley-success {
    color: var(--color-green-7);
    background-color: var(--color-green-1);
    border: 1px solid var(--color-green-3);
    font-size: 0.857rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

p.parsley-error {
    color: var(--color-red-7);
    background-color: var(--color-red-1);
    border: 1px solid var(--color-red-3);
    font-size: 0.857rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

ul.parsley-errors-list {
    list-style: none;
    color: var(--color-red-6);
    padding-left: 0;
    font-size: 0.857rem;
    margin-top: 5px;
}

input.parsley-error,
textarea.parsley-error,
select.parsley-error {
    border: 1px solid var(--color-red-4) !important;
    background-color: var(--color-red-1);
    font-size: 0.857rem;
}

.btn-group .parsley-errors-list {
    display: none;
}

.menu .app-brand {
    height: 80px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.05);
}

.app-brand-link img {
    max-height: 42px !important;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-brand-link:hover img {
    transform: scale(1.03) translateY(-1px);
}


.iti {
    width: 100% !important;
}

.layout-wrapper {
    position: absolute;
}

.file-upload {
    position: relative;
    overflow: hidden;
    margin: 10px;
}

.file-upload input.upload {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
}

.crop-box {
    position: relative;
    height: 400px;
    width: 100%;
    background: #fff;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    cursor: move;
}

.crop-box .thumb-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin-top: -100px;
    margin-left: -100px;
    box-sizing: border-box;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
    background: none repeat scroll 0% 0% transparent;
}

.crop-box .spinner {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    line-height: 400px;
    background: rgba(0, 0, 0, 0.7);
}

.state-loading {
    position: relative
}

.state-loading::before {
    content: " ";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: -2px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99
}

.state-loading::after {
    display: inline-block;
    font-family: tabler-icons;
    font-kerning: auto;
    line-height: 35px;
    font-size: 35px;
    font-style: normal;
    font-synthesis: weight style;
    font-weight: normal;
    animation: 2s linear 0s normal none infinite running fa-spin;
    color: #fff;
    content: "\eca3";
    left: 50%;
    position: absolute;
    text-align: center;
    top: 50%;
    z-index: 100;
    margin-top: -10px;
    margin-left: -10px
}

.mobile-700 {
    min-width: 100% !important;
}

@media only screen and (max-width: 600px) {
    .mobile-700 {
        min-width: 700px !important;
    }
}

.br-1,
.card {
    border-radius: 0.875rem !important;
}

.donut-bg1 {
    background-color: var(--color-secondary-5);
}

.donut-bg2 {
    background-color: var(--color-green-5);
}

.donut-bg3 {
    background-color: var(--color-orange-4);
}

.donut-bg4 {
    background-color: var(--color-primary-5);
}

.bullet-point {
    height: 1rem;
    width: 1rem;
    display: inline-block;
    margin: 0 0.5rem;
}

.id-card {
    width: 100%;
    max-width: 580px;
    /* optional, control size */

    aspect-ratio: 9 / 16;
    /* 🔥 9:16 ratio */

    background-image: url('../img/icard_bg.png');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
}

.id-card-new {
    background-image: url('../img/icard_bg_new.png');
}

.table-data-list th,
.table-data-list td {
    white-space: nowrap !important;
}

.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-product td {
    padding: 2px 4px !important;
    font-size: 13px !important;
    white-space: nowrap;
}

.table-product th {
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 4px !important;
    white-space: nowrap;
}

.text-justify {
    text-align: justify;
}

.dashboard-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.dashboard-card .card-body {
    padding: 1.25rem;
}

.dashboard-card h6 {
    font-weight: 600;
    font-size: 0.95rem;
    color: #566a7f;
}

.dashboard-card .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.75rem 0;
    background: transparent;
}

.dashboard-card .list-group-item:last-child {
    border-bottom: none;
}

.dashboard-card .badge {
    font-size: 0.875rem;
    padding: 0.35rem 0.65rem;
    font-weight: 600;
}

/* Premium UI Components (Generalized) */
.modal-premium .modal-content {
    border-radius: 1.25rem !important;
    overflow: hidden;
}

.avatar-premium-lg {
    width: 56px;
    height: 56px;
}

.card-stat-modern {
    border-radius: 1rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(248,249,250,1) 100%);
}

.card-stat-premium {
    border-radius: 1rem !important;
    background: linear-gradient(135deg, var(--color-primary-5) 0%, var(--color-primary-6) 100%);
    box-shadow: 0 8px 20px rgba(var(--color-primary-5-rgb), 0.2);
}

.text-spacing-sm {
    letter-spacing: 0.5px;
}

.audit-section-modern {
    border-radius: 1rem !important;
    background-color: #f8f9fa; /* Matches bg-light but explicitly defined for sectioning */
}

.text-audit-label {
    font-size: 0.65rem;
    letter-spacing: 0.8px;
}

.text-extra-small {
    font-size: 0.75rem;
}

.font-tabular {
    font-feature-settings: "tnum";
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid rgba(0,0,0,0.05);
    }
}

/* --- Premium Sidebar & Badge Improvements --- */

/* Menu Link Base Styles */
.menu-vertical .menu-item .menu-link {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    border-radius: 0.5rem;
    margin: 0.15rem 0.75rem;
    line-height: 1.4;
}

.menu-vertical .menu-item .menu-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
}


/* Hover State */
.menu-vertical .menu-item:not(.active) .menu-link:hover {
    background-color: rgba(var(--primary-color-rgb), 0.06);
    color: var(--primary-color);
    transform: translateX(2px);
}

.menu-vertical .menu-item:not(.active) .menu-link:hover i {
    color: var(--primary-color);
}

/* Active State */
.menu-vertical .menu-item.active > .menu-link {
    background: linear-gradient(270deg, var(--color-primary-5) 0%, var(--color-primary-6) 100%) !important;
    box-shadow: 0 4px 12px rgba(var(--color-primary-5-rgb), 0.35);
    color: #fff !important;
}

.menu-vertical .menu-item.active > .menu-link i {
    color: #fff !important;
}

/* Menu Header (Categories) */
.menu-vertical .menu-header {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.menu-vertical .menu-header .menu-header-text {
    font-weight: 700;
    color: #a1acb8;
    letter-spacing: 1px;
    font-size: 0.7rem;
}

/* Premium Notification Badge */
.menu-badge-premium {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    background: var(--color-red-5);
    color: #fff;
    box-shadow: 0 2px 6px rgba(var(--color-red-5-rgb), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-red 2s infinite;
}

/* Active Menu Badge Adjustments */
.menu-item.active .menu-badge-premium {
    background: #fff;
    color: var(--color-primary-5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    animation: none;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(var(--color-red-5-rgb), 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(var(--color-red-5-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--color-red-5-rgb), 0); }
}

/* Sub-menu Item Adjustments */
.menu-vertical .menu-sub .menu-item .menu-link {
    margin-left: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.menu-vertical .menu-sub .menu-item.active .menu-link {
    background: var(--color-primary-1) !important;
    color: var(--color-primary-5) !important;
    box-shadow: none !important;
    font-weight: 600;
}

.menu-vertical .menu-sub .menu-item.active .menu-link::before {
    content: "";
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary-5) !important;
    box-shadow: 0 0 8px var(--color-primary-5) !important;
}

/* Toggle Arrow Fix for Flexbox */
.menu-vertical .menu-item .menu-link.menu-toggle::after {
    margin-left: 0.5rem;
}

/* Sidebar scrollbar refinements */
.menu-inner::-webkit-scrollbar {
    width: 4px;
}

.menu-inner::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-color-rgb), 0.2);
    border-radius: 10px;
}

.menu-inner::-webkit-scrollbar-track {
    background: transparent;
}