/* Custom Dashboard Styling */
body { 
    font-family: 'Instrument Sans', sans-serif; 
    background-color: #F8F9FA; 
}

.content-card { 
    background: #FFFFFF; 
    border-radius: 2.5rem; 
    border: 1px solid #F1F3F4; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.02); 
}

/* Reusable wrapper for table + pagination (border + radius 10) */
.datatable-card {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #FFFFFF;
    overflow: hidden;
}

.datatable-card .pagination-footer {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

table.dataTable thead th {
    background-color: #F1F5F9 !important;;
}

table.dataTable tbody tr.odd,
table.dataTable tbody tr.even {
    background-color: transparent;
}

table.dataTable tbody tr.odd {
    background-color: #FFFFFF !important;
}

table.dataTable tbody tr.even {
    background-color: #F8FAFC !important;
}

/* Fallback for non-DataTables tables */
table tbody tr:nth-child(odd) {
    background-color: #FFFFFF;
}

table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

/* DataTables Modern Header */
table.dataTable thead th {
    border-bottom: 1px solid #F1F3F4 !important;
    color: #5F6368;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 900;
    padding: 1.5rem 1rem !important;
}

/* Search Container with Icon (Diperlebar) */
.search-container { 
    position: relative; 
    flex: 1; 
    min-width: 350px; 
}

.search-container svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    width: 16px;
    height: 16px;
    z-index: 10;
    pointer-events: none;
}

.dataTables_filter {
    display: none;
}

/* Input Fields Base & Animations */
.custom-search, .status-filter, .focusable-input {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #E5E7EB !important;
    background-color: #F8F9FA;
}

/* Pop-up Effect & Shadow Bottom Only */
.custom-search:focus, .status-filter:focus, .focusable-input:focus {
    background-color: #FFF;
    border-color: #D93025 !important;
    outline: none;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.custom-search {
    padding-left: 40px !important;
    border-radius: 1rem !important;
    width: 100%;
    height: 46px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-filter {
    height: 46px;
    width: 100%;
    border-radius: 1rem;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
}

.status-filter option {
    background-color: #FFFFFF;
    color: #374151;
    font-weight: 600;
    padding: 12px;
    border-radius: 1rem;
}

.focusable-input option {
    background-color: #FFFFFF;
    color: #374151;
    padding: 12px 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    border-radius: 1rem !important;
}

/* Action Buttons - Always Visible */
.action-btn {
    background: #F9FAFB;
    color: #6B7280;
    border: 1px solid #E5E7EB;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:not(.paginate_button), .action-btn, a.action-btn {
    position: relative;
    overflow: hidden;
}

button:not(.paginate_button)::after, .action-btn::after, a.action-btn::after {
    content: "";
    position: absolute;
    top: 0;
    right: -120%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: none;
}

button:not(.paginate_button):hover::after, .action-btn:hover::after, a.action-btn:hover::after {
    animation: shimmerEffect 1s ease-in-out infinite;
}

@keyframes shimmerEffect {
    0% { right: -120%; }
    100% { right: 120%; }
}

.action-btn:hover {
    background: #FCE8E6;
    color: #D93025;
    border-color: #D93025;
    transform: translateY(-2px);
}

/* Elegant Pagination Styling */
.pagination-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-top: 1px solid #F1F3F4;
    background-color: #FFF;
    border-bottom-left-radius: 2.5rem;
    border-bottom-right-radius: 2.5rem;
}

#tablePagination .paginate_button {
    cursor: pointer;
    padding: 0.5rem 0.9rem;
    margin: -10px 3px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    transition: all 0.2s;
    display: inline-block;
    border: 1px solid transparent;
}

#tablePagination .paginate_button.previous,
#tablePagination .paginate_button.next {
    background: #F3F4F6;
    color: #111827 !important;
    border-color: #E5E7EB;
}

#tablePagination .paginate_button.current {
    background: #D93025 !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(217, 48, 37, 0.2);
}

#tablePagination .paginate_button:hover:not(.current) {
    background: #E5E7EB;
    border-color: #D1D5DB;
}

.dataTables_info,
.page-indicator {
    font-size: 0.7rem;
    font-weight: 800;
    color: #9CA3AF;
}

.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 10px; }