.dataTables_processing::after {
    content: "Processing...";
    font-size: 12px;
    color: #9e1b1b;
}

.page-item.active .page-link {
    background-color: #353535;
    border-color: #353535;
}

/* Modern Sidebar Scrollbar Styling */
.sidebar-content {
    font-size: 85%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 120px); /* Adjust based on header height */
    scroll-behavior: smooth;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.sidebar-content::-webkit-scrollbar-corner {
    background: transparent;
}

/* Sidebar navigation scrollbar */
.sidebar .nav-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar .nav-sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar .nav-sidebar::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.sidebar .nav-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.sidebar .nav-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar .nav-sidebar::-webkit-scrollbar-corner {
    background: transparent;
}

/* Enhanced Sidebar Styling */
.sidebar {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Modern sidebar navigation styling */
.sidebar .nav-sidebar .nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 8px;
}

.sidebar .nav-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.sidebar .nav-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Smooth transitions for sidebar elements */
.sidebar * {
    transition: all 0.3s ease;
}

/* Responsive sidebar adjustments */
@media (max-width: 991px) {
    .sidebar-content {
        height: calc(100vh - 100px);
    }
}

/* Global scrollbar styling for modern browsers */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

.sidebar-resize-hide {
    padding-right: 8px;
}

.select2-selection--single {
    padding: .3125rem .75rem !important;
    padding-left: 0px !important;
}

.select2-selection__clear {
    display: none;
}

.swal2-icon.swal2-warning {
    font-size: 1rem;
}

.swal2-styled {
    padding: .25em 1em !important;
}

.small-grey-title {
    color: grey;
    font-size: 85%;
}

.small-grey-extra-title {
    color: grey;
    font-size: 80%;
}

.small-red-danger {
    color: #c71717;
    font-size: 85%;
}

.font-90-danger {
    color: #c71717;
    font-size: 90%;
}

.font-size-lg {
    font-size: 135%;
}

.form-group {
    margin-bottom: 0.5rem;
}

.font-90 {
    font-size: 90%;
}

.font-85 {
    font-size: 85%;
}

.boxResumeDash {
    width: 45px !important;
    height: 25px !important;
    font-size: 90% !important;
    font-weight: bold;
}

.no-outline {
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
}

.phml{
    padding-left: 7px;
}



/*  Custom css for dashboard  */

/* Dashboard Chart Container */
#chartContainer {
    max-width: 100%;
    overflow-x: auto;
}

/* Dashboard Stat Cards */
.stat-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
}

/* Dashboard Chart Cards */
.chart-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Dashboard Transaction Table */
.transaction-table {
    border-radius: 12px;
    overflow: hidden;
}

.transaction-table .table {
    margin-bottom: 0;
}

.transaction-table .table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
    padding: 1rem;
}

.transaction-table .table td {
    padding: 1rem;
    vertical-align: middle;
}

.transaction-item {
    transition: all 0.2s ease;
}

.transaction-item:hover {
    background-color: #f8f9fa;
}

/*  END Custom css for dashboard  */

/*  Custom css for table status  */

/* Table Status Header Section */
.table-status-header {
    margin-bottom: 1.5rem;
}

.table-status-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.table-status-header p {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Status Summary Cards */
.status-summary-cards {
    display: flex;
    justify-content: flex-end;
}

.status-summary-cards .d-flex {
    gap: 10px;
}

/* Mobile responsive for status summary cards */
@media (max-width: 991px) {
    .status-summary-cards {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .status-summary-cards .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .status-summary-cards .card {
        min-width: 100px;
        flex: 0 1 auto;
    }
}

/* Table Status Card Hover Effects */
.table-status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15)!important;
}

.table-status-card img {
    transition: all 0.3s ease;
}

.table-status-card:hover img {
    transform: scale(1.05);
}

/* Fix dropdown z-index issue for Bootstrap 5 */
.dropdown.show {
    z-index: 1050 !important;
    position: relative !important;
}

.dropdown .dropdown-menu {
    z-index: 1051 !important;
}

/* Ensure card with open dropdown is above others */
.card:has(.dropdown.show) {
    z-index: 1049 !important;
    position: relative !important;
}

/* Alternative for browsers that don't support :has() */
.card.dropdown-active {
    z-index: 1049 !important;
    position: relative !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .d-flex.justify-content-end {
        justify-content: center !important;
    }
    
    /* Keep counters horizontal on mobile */
    .d-flex[style*="gap"] {
        flex-direction: row !important;
        gap: 8px !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Adjust counter cards for mobile */
    .d-flex[style*="gap"] .card {
        min-width: 100px !important;
        flex: 0 1 auto;
    }
    
    .d-flex[style*="gap"] .card .card-body {
        padding: 8px 12px !important;
    }
}

/*  END Custom css for table status  */

/* Modern Sidebar Alert Styling */
.sidebar-admin-alert {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    margin: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
    min-height: auto;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-admin-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

.sidebar-admin-alert::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-admin-alert:hover::after {
    opacity: 1;
}

.sidebar-admin-alert:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Alert with different color themes */
.sidebar-admin-alert.alert-primary::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.sidebar-admin-alert.alert-success::before {
    background: linear-gradient(90deg, #56ab2f 0%, #a8e6cf 100%);
}

.sidebar-admin-alert.alert-warning::before {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.sidebar-admin-alert.alert-info::before {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.sidebar-admin-alert .alert-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-admin-alert .alert-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-admin-alert:hover .alert-icon::before {
    opacity: 1;
}

.sidebar-admin-alert:hover .alert-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: scale(1.05);
}

.sidebar-admin-alert .alert-close {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 10px;
    position: relative;
    overflow: hidden;
}

.sidebar-admin-alert .alert-close::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-admin-alert .alert-close:hover::before {
    opacity: 1;
}

.sidebar-admin-alert .alert-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.sidebar-admin-alert .alert-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.sidebar-admin-alert:hover .alert-title {
    color: rgba(255, 255, 255, 1);
}

.sidebar-admin-alert .alert-subtitle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    margin-top: 0.15rem;
    transition: color 0.3s ease;
    line-height: 1.1;
}

.sidebar-admin-alert:hover .alert-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Pulse animation for alert icon */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.sidebar-admin-alert .alert-icon {
    animation: pulse 2s infinite;
}

/* Responsive adjustments for sidebar alert */
@media (max-width: 991px) {
    .sidebar-admin-alert {
        margin: 0.5rem;
        padding: 0.6rem;
    }
    
    .sidebar-admin-alert .alert-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

/* Sidebar Logo Centering */
.sidebar-logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: 60px;
}

.sidebar-logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-decoration: none;
    height: 100%;
}

.sidebar-logo-icon {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Ensure logo is centered even when sidebar is collapsed */
.sidebar-collapsed .sidebar-logo {
    justify-content: center;
    align-items: center;
}

.sidebar-collapsed .sidebar-logo a {
    justify-content: center;
    align-items: center;
}

/* Responsive logo sizing */
@media (max-width: 991px) {
    .sidebar-logo {
        padding: 0.5rem 0.75rem;
        min-height: 50px;
    }
    
    .sidebar-logo-icon {
        width: 70% !important;
        max-width: 200px;
    }
}

@media (min-width: 992px) {
    .sidebar-logo-icon {
        width: 60% !important;
        max-width: 180px;
    }
}

/* Ensure logo stays centered in all sidebar states */
.sidebar-main-resized .sidebar-logo,
.sidebar-main-collapsed .sidebar-logo {
    justify-content: center;
    align-items: center;
}

.sidebar-main-resized .sidebar-logo a,
.sidebar-main-collapsed .sidebar-logo a {
    justify-content: center;
    align-items: center;
}
