/* datatable */
.dt-length label {
    display: none !important;
}

.dt-length {
    margin-right: 0.5rem;
}

.dt-length select,
.dt-length .dt-input {
    border-radius: 0.375rem;
    color: rgb(255, 255, 255) !important;
    background: rgb(46, 55, 164) !important;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgb(46, 55, 164);
}

.dt-container .dt-layout-row.dt-layout-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* avatar input file */
.file-info-text {
    position: absolute;
    z-index: 1;
    left: 10px;
    top: 14px;
    overflow: hidden;
    cursor: pointer;
    font-size: 0.8rem;
    width: 90%;
    white-space: nowrap;
}

.avatar-preview {
    height: 100px;
    width: 100px;
    border: 2px solid rgba(46, 55, 164, 0.1);
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.is-invalid .select2-container--default .select2-selection--single {
    border: 2px solid #dc3545 !important;
}

.dt-buttons {
    display: none !important;
}

/* ========== PREMIUM DARK SIDEBAR ========== */
.sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15) !important;
}

.sidebar-inner {
    background: transparent !important;
}

/* Menu title */
.sidebar-menu li.menu-title {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 20px 15px 8px !important;
}

/* All sidebar links */
.sidebar-menu li a {
    color: rgba(255, 255, 255, 0.65) !important;
    transition: all 0.3s ease !important;
    border-radius: 10px !important;
    margin: 2px 12px !important;
    padding: 10px 14px !important;
}

.sidebar-menu li a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Active menu item */
.sidebar-menu li.active a,
.sidebar-menu li a.active {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35) !important;
    border-radius: 10px !important;
}

/* Subdrop (expanded parent) */
.sidebar-menu li a.subdrop {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
}

/* Submenu */
.sidebar-menu ul ul {
    background: rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    margin: 4px 12px !important;
    padding: 4px 0 !important;
}

.sidebar-menu ul ul a {
    color: rgba(255, 255, 255, 0.55) !important;
    margin: 0 4px !important;
    padding: 8px 14px !important;
}

.sidebar-menu ul ul a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.sidebar-menu ul ul a.active,
.sidebar-menu ul .submenu .active {
    color: #60a5fa !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

/* Sidebar icons */
.sidebar-menu ul li a span.menu-side img {
    filter: brightness(0) invert(1) opacity(0.6) !important;
    transition: all 0.3s ease !important;
}

.sidebar-menu ul li a:hover span.menu-side img,
.sidebar-menu li.active a span.menu-side img,
.sidebar-menu li a.active span.menu-side img {
    filter: brightness(0) invert(1) opacity(1) !important;
}

/* Menu arrow */
.sidebar-menu .menu-arrow {
    color: rgba(255, 255, 255, 0.4) !important;
}

.sidebar-menu li a:hover .menu-arrow,
.sidebar-menu li a.subdrop .menu-arrow {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Logout button in sidebar */
.logout-btn a {
    color: rgba(255, 255, 255, 0.55) !important;
}

.logout-btn a:hover {
    color: #f87171 !important;
    background: rgba(248, 113, 113, 0.1) !important;
}

/* Scrollbar for sidebar */
.sidebar .slimScrollDiv,
.sidebar .slimScrollBar {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
}

/* ========== PREMIUM HEADER ========== */
.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
}

.header .header-left .logo span {
    color: #fff !important;
}

.header .user-names h5 {
    color: #fff !important;
}

.header .user-names span {
    color: rgba(255, 255, 255, 0.6) !important;
}

.header #toggle_btn img,
.header #mobile_btn img {
    filter: brightness(0) invert(1) !important;
}

.header .top-nav-search .form-control {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.header .top-nav-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.header .top-nav-search .btn img {
    filter: brightness(0) invert(1) opacity(0.5) !important;
}

.header .dropdown-toggle.nav-link.user-link {
    color: #fff !important;
}


/* Mobile menu icon */
.header .fa-solid.fa-ellipsis-vertical {
    color: #fff !important;
}

/* ========== GLOBAL PAGE CONTENT STYLING ========== */

/* Page wrapper background */
.page-wrapper {
    background: linear-gradient(135deg, #eef2f7 0%, #e2e8f0 100%) !important;
}

.page-wrapper > .content {
    padding: 20px 24px !important;
}

/* Breadcrumb styling */
.page-header .breadcrumb {
    background: transparent !important;
    padding: 0 !important;
}

.page-header .breadcrumb-item a {
    color: #3b82f6 !important;
    font-weight: 600 !important;
}

.page-header .breadcrumb-item.active {
    color: #64748b !important;
}

/* ========== CARDS ========== */
.card {
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    background: linear-gradient(135deg, #1a1f3c 0%, #2d3561 100%) !important;
    border-bottom: none !important;
    padding: 16px 20px !important;
    color: #fff !important;
}

.card-header h4,
.card-header h5,
.card-header .card-title {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    margin: 0 !important;
}

.card-body {
    padding: 20px !important;
}

/* ========== TABLES ========== */
.table {
    margin-bottom: 0 !important;
}

.table thead th {
    background: linear-gradient(135deg, #1a1f3c 0%, #2d3561 100%) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    padding: 14px 16px !important;
    white-space: nowrap !important;
}

.table tbody tr {
    transition: all 0.2s ease !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04) !important;
}

.table tbody td {
    padding: 14px 16px !important;
    vertical-align: middle !important;
    color: #334155 !important;
    font-size: 14px !important;
    border: none !important;
}

/* ========== ALERTS ========== */
.alert-info,
.alert-primary {
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(99,102,241,0.08)) !important;
    border: 1px solid rgba(59,130,246,0.15) !important;
    border-left: 4px solid #3b82f6 !important;
    border-radius: 12px !important;
    color: #1e40af !important;
    padding: 16px 20px !important;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(5,150,105,0.08)) !important;
    border: 1px solid rgba(16,185,129,0.15) !important;
    border-left: 4px solid #10b981 !important;
    border-radius: 12px !important;
    color: #065f46 !important;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(217,119,6,0.08)) !important;
    border: 1px solid rgba(245,158,11,0.15) !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 12px !important;
    color: #92400e !important;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(220,38,38,0.08)) !important;
    border: 1px solid rgba(239,68,68,0.15) !important;
    border-left: 4px solid #ef4444 !important;
    border-radius: 12px !important;
    color: #991b1b !important;
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s ease !important;
    padding: 8px 18px !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3) !important;
}

/* ========== BADGES ========== */
.badge-success,
.badge.bg-success,
.badge.badge-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

.badge-danger,
.badge.bg-danger,
.badge.badge-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

.badge-warning,
.badge.bg-warning,
.badge.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #fff !important;
}

.badge-info,
.badge.bg-info,
.badge.badge-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #fff !important;
}

.badge-primary,
.badge.bg-primary,
.badge.badge-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

/* ========== FORM ELEMENTS ========== */
.form-control,
.form-select,
.select2-container--default .select2-selection--single {
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 10px 14px !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    color: #334155 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* ========== PAGINATION ========== */
.page-item .page-link {
    border-radius: 8px !important;
    margin: 0 3px !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.page-item .page-link:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

/* ========== MODAL ========== */
.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #1a1f3c 0%, #2d3561 100%) !important;
    border-bottom: none !important;
    padding: 18px 24px !important;
}

.modal-title {
    color: #fff !important;
    font-weight: 700 !important;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1) !important;
}

/* ========== STATUS BADGES (custom) ========== */
.custom-badge.status-green {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-radius: 8px !important;
}

.custom-badge.status-red {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border-radius: 8px !important;
}

.custom-badge.status-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-radius: 8px !important;
}

.custom-badge.status-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border-radius: 8px !important;
}

/* ========== SELECT2 ========== */
.select2-container--default .select2-selection--single {
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

/* ========== DATATABLE WRAPPER ========== */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 8px 14px !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* ========== ACTION BUTTONS ========== */
.action-icon {
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

/* ========== PAGE TITLE STYLING ========== */
.page-header h4,
.page-header h3 {
    font-weight: 700 !important;
    color: #1e293b !important;
}

/* ========== DROPDOWN MENU ========== */
.dropdown-menu {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
    padding: 8px !important;
}

.dropdown-item {
    border-radius: 8px !important;
    padding: 8px 14px !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #3b82f6 !important;
}

