/* Modern Styles for Buku Tamu Kantor */

/* Body and Container Styling */
body {
    background: #f8f9fa;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}
.table thead th{
    vertical-align: middle !important;
}
.container {
    padding-bottom: 2rem;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
} */

.card-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Form Styling */
.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Button Styling */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary {
    border: 1px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Header Styling */
.display-4 {
    font-weight: 700;
    color: #1f2937;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.lead {
    color: #6b7280;
    font-weight: 400;
    font-size: 1.1rem;
}

/* Navigation Styling */
.navbar {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Statistics Cards */
.stat-card {
    border-radius: 12px;
    border: none;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.bg-primary { background: #3b82f6 !important; }
.bg-success { background: #10b981 !important; }
.bg-warning { background: #f59e0b !important; }
.bg-info { background: #06b6d4 !important; }

/* Table Styling */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #374151;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Badge Styling */
.badge {
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

.bg-success { background: #10b981 !important; }
.bg-warning { background: #f59e0b !important; }

/* Footer Styling */
footer {
    margin-top: 3rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        margin-top: 1rem !important;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Animation for form elements */
.form-control, .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom select styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Focus states for accessibility */
.form-control:focus,
.btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Print styles */
@media print {
    .btn, .alert, footer {
        display: none;
    }

    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* ===== STAFF MANAGEMENT STYLES ===== */

/* Better button spacing and responsive behavior */
.action-buttons {
    gap: 8px !important;
    flex-wrap: wrap;
}

.action-buttons .btn {
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    margin-bottom: 2px !important;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        gap: 4px !important;
        justify-content: center;
    }

    .action-buttons .btn {
        min-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }
}

/* Improve table responsiveness */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

#staffTable {
    margin-bottom: 0;
}

#staffTable thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 12px 8px;
}

#staffTable tbody td {
    padding: 10px 8px;
    vertical-align: middle;
}

/* Better modal styling */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
}

/* Pagination styling */
.pagination-info {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.pagination {
    margin: 0;
    flex-wrap: wrap;
}

.pagination .page-link {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 4px !important;
    margin: 0 2px;
    min-width: 36px;
    text-align: center;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Card footer styling for pagination */
.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 15px 20px;
}

/* Items per page selector styling */
.form-select-sm {
    padding: 0.25rem 1.5rem 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

.card-tools .form-label {
    font-weight: 500;
    color: #495057;
}

/* Mobile pagination improvements */
@media (max-width: 576px) {
    .card-footer {
        padding: 10px 15px;
    }

    .pagination-info {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .pagination {
        justify-content: center;
    }

    .pagination .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        min-width: 30px;
        margin: 0 1px;
    }

    .card-tools {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .card-tools .d-flex {
        justify-content: center;
    }
}

/* ===== STAFF SELECTION STYLES ===== */

/* Selected row styling */
.staff-row-selected {
    background-color: #f8f9fa !important;
    border-left: 4px solid #007bff;
}

.staff-row-selected td {
    background-color: #f8f9fa !important;
}

/* Modern checkbox styling */
.form-check-input.staff-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    margin: 0;
}

.form-check-input.staff-checkbox:checked {
    background-color: #007bff;
    border-color: #007bff;
    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='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.form-check-input.staff-checkbox:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-check-input.staff-checkbox:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Select All checkbox styling */
#selectAllCheckbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    margin: 0;
}

#selectAllCheckbox:checked {
    background-color: #007bff;
    border-color: #007bff;
    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='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

#selectAllCheckbox:indeterminate {
    background-color: #007bff;
    border-color: #007bff;
    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='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

#selectAllCheckbox:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#selectAllCheckbox:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Form check alignment */
.form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    margin-bottom: 0;
    padding-left: 0;
}

/* Bulk actions styling */
.bulk-actions {
    transition: all 0.3s ease;
}

.bulk-actions .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bulk-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Bulk actions container styling */
.bulk-actions-container {
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Selection counter styling */
.selection-counter {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    background: #e9ecef;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.selection-counter.visible {
    opacity: 1;
    visibility: visible;
}

/* Bulk actions styling */
.bulk-actions {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-5px);
}

.bulk-actions.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Table Transition Animations */
.table-transition-container {
    position: relative;
    min-height: 200px;
}

#staffTable {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#staffTable.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

#staffTable.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Table Body Animation Classes */
.table-body-fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.table-body-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Individual Row Animations */
.staff-table-row {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.staff-table-row.fade-out {
    opacity: 0;
    transform: translateY(5px);
}

.staff-table-row.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.table-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.table-loading-spinner {
    text-align: center;
}

.table-loading-spinner svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern Dropdown Selector Styling */
.modern-dropdown-selector {
    position: relative;
}

.modern-dropdown-selector .modern-dropdown-btn {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    min-width: 160px;
    height: 38px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.modern-dropdown-selector .modern-dropdown-btn:hover {
    background: #f8fafc;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.modern-dropdown-selector .modern-dropdown-btn:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.modern-dropdown-selector .modern-dropdown-btn .selected-value {
    font-weight: 600;
    color: #1f2937;
    margin-right: 6px;
    font-size: 0.9rem;
}

.modern-dropdown-selector .modern-dropdown-btn .dropdown-label {
    color: #6b7280;
    font-size: 0.8rem;
    margin-left: auto;
}

.modern-dropdown-selector .modern-dropdown-btn::after {
    margin-left: 8px;
    border-top-color: #6b7280;
}

.modern-dropdown-selector .modern-dropdown-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.modern-dropdown-selector .modern-dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 120px;
    margin-top: 4px;
    background: #ffffff;
}

.modern-dropdown-selector .modern-dropdown-menu .dropdown-item {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.modern-dropdown-selector .modern-dropdown-menu .dropdown-item:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: translateX(2px);
}

.modern-dropdown-selector .modern-dropdown-menu .dropdown-item.active {
    background: #3b82f6;
    color: #ffffff;
    position: relative;
}

.modern-dropdown-selector .modern-dropdown-menu .dropdown-item.active::after {
    content: "✓";
    position: absolute;
    right: 0.75rem;
    font-weight: bold;
}

.modern-dropdown-selector .modern-dropdown-menu .dropdown-item:active {
    background: #2563eb;
    color: #ffffff;
}

/* Mobile responsive for bulk actions */
@media (max-width: 768px) {
    .bulk-actions .d-flex {
        flex-wrap: wrap;
        gap: 6px !important;
    }
    
    .bulk-actions .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .selection-counter {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .form-check-input.staff-checkbox,
    #selectAllCheckbox {
        width: 16px;
        height: 16px;
    }

    /* Mobile responsive for per-page selector */
    .per-page-selector .per-page-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
        min-width: 40px;
    }

    .per-page-selector .per-page-btn svg {
        width: 12px;
        height: 12px;
        margin-right: 2px;
    }
}

/* ===== SORT ICON STYLES ===== */

/* Clean sort icon buttons */
.sort-icon-btn {
    background: none !important;
    border: none !important;
    padding: 2px !important;
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 3px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    opacity: 0.6;
}

.sort-icon-btn:hover {
    background-color: #f8f9fa !important;
    opacity: 1;
    transform: scale(1.1);
}

.sort-icon-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

.sort-icon-btn svg {
    width: 14px;
    height: 14px;
    fill: #6c757d;
    transition: fill 0.2s ease;
}

.sort-icon-btn:hover svg {
    fill: #495057;
}

/* Active sort state */
.sort-icon-btn[data-sort-by] svg {
    fill: #007bff;
}

/* Table header alignment with sort icons */
.table th .d-flex {
    align-items: center;
    gap: 6px;
}

.table th span {
    font-weight: 600;
    color: #374151;
}

/* ===== ADMINLTE FILTER DROPDOWN STYLES ===== */

/* AdminLTE filter dropdown container */
.filter-dropdowns {
    gap: 15px !important;
}

/* AdminLTE filter group styling */
.filter-group {
    display: flex;
    flex-direction: column;
}

/* AdminLTE filter label styling */
.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* AdminLTE enhanced select styling */
.filter-select {
    min-width: 150px;
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-select:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.filter-select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Active filter state for AdminLTE */
.filter-select:not([value="all"]) {
    border-color: #007bff;
    background-color: #e3f2fd;
    color: #0056b3;
    font-weight: 500;
}

/* AdminLTE responsive filter dropdowns */
@media (max-width: 768px) {
    .filter-dropdowns {
        gap: 10px !important;
        flex-wrap: wrap;
    }
    
    .filter-group {
        min-width: 120px;
    }
    
    .filter-select {
        min-width: 120px;
        font-size: 0.8rem;
        padding: 0.25rem 1.75rem 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .filter-dropdowns {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-select {
        min-width: auto;
        width: 100%;
    }
}

/* ===== SIDEBAR BULK ACTIONS STYLES ===== */

/* Sidebar bulk actions container */
.sidebar-bulk-actions {
    transition: all 0.3s ease;
    margin-top: auto;
    padding: 15px;
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    overflow: hidden;
}

.sidebar-bulk-actions.visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 300px;
}

.sidebar-bulk-actions .card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    background: #fff;
}

.sidebar-bulk-actions .card-header {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    padding: 8px 12px;
}

.sidebar-bulk-actions .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-align: center;
}

.sidebar-bulk-actions .card-body {
    padding: 12px;
    background: #fff;
    display:flex !important;
    flex-direction: column;
    gap:16px;
}

.sidebar-bulk-actions .selection-info {
    text-align: center;
    margin-bottom:0 !important
}

.sidebar-bulk-actions .selection-info span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    background: #f0f9ff;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    display: inline-block;
}

.sidebar-bulk-actions .bulk-actions-buttons {
    gap: 16px;
    display:flex;
    flex-direction: column;
}

.sidebar-bulk-actions .btn {
    font-size: 0.85rem;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sidebar-bulk-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sidebar-bulk-actions .btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Responsive sidebar bulk actions */
@media (max-width: 768px) {
    .sidebar-bulk-actions {
        padding: 10px;
    }
    
    .sidebar-bulk-actions .card-body {
        padding: 10px;
    }
    
    .sidebar-bulk-actions .btn {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    
    .sidebar-bulk-actions .selection-info span {
        font-size: 0.8rem;
    }
}

/* Custom hidden text for loading states */
.loading-text-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===== TAXPAYER TABLE STYLES ===== */

/* Monospace font for NPWP column */
.npwp-column {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    /* font-size: 0.9em; */
    letter-spacing: 0.5px;
    font-weight: 500;
    color: #1f2937;
}

/* ===== TAXPAYER CHECKBOX STYLES ===== */

/* Modern checkbox styling for taxpayer checkboxes */
.form-check-input.taxpayer-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    margin: 0;
}

.form-check-input.taxpayer-checkbox:checked {
    background-color: #007bff;
    border-color: #007bff;
    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='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.form-check-input.taxpayer-checkbox:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-check-input.taxpayer-checkbox:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* ===== PIC CHECKBOX STYLES ===== */

/* Modern checkbox styling for PIC checkboxes */
.form-check-input.pic-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    margin: 0;
}

.form-check-input.pic-checkbox:checked {
    background-color: #007bff;
    border-color: #007bff;
    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='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.form-check-input.pic-checkbox:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-check-input.pic-checkbox:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Select All checkbox styling for taxpayers */
#selectAllTaxpayersCheckbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    margin: 0;
}

#selectAllTaxpayersCheckbox:checked {
    background-color: #007bff;
    border-color: #007bff;
    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='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

#selectAllTaxpayersCheckbox:indeterminate {
    background-color: #007bff;
    border-color: #007bff;
    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='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

#selectAllTaxpayersCheckbox:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#selectAllTaxpayersCheckbox:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Selected row styling for taxpayers */
.taxpayer-row-selected {
    background-color: #f8f9fa !important;
    border-left: 4px solid #007bff;
}

.taxpayer-row-selected td {
    background-color: #f8f9fa !important;
}

/* ===== TAXPAYER TABLE ANIMATION STYLES ===== */

/* Table Body Animation Classes for Taxpayers */
.taxpayer-table-body-fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.taxpayer-table-body-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Individual Row Animations for Taxpayers */
.taxpayer-table-row {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.taxpayer-table-row.fade-out {
    opacity: 0;
    transform: translateY(5px);
}

.taxpayer-table-row.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Table Loading Overlay for Taxpayers */
.taxpayer-table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.taxpayer-table-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.taxpayer-table-loading-spinner {
    text-align: center;
}

.taxpayer-table-loading-spinner svg {
    animation: spin 1s linear infinite;
}
