/* Status badge styles */
.badge.bg-success {
    background-color: #28a745 !important;
    color: white !important;
    font-weight: 500;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
    font-weight: 500;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
    font-weight: 500;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
    font-weight: 500;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Table styling */
.table th {
    border: none !important;
}

.table td {
    border: none !important;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* DataTables Custom Styling */
.dataTables_wrapper .dataTables_length {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px 10px;
    margin: 0 5px;
    background-color: white;
    min-width: 80px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px 10px;
    margin-left: 10px;
    background-color: white;
    min-width: 200px;
}

.dataTables_wrapper .dataTables_info {
    color: #666;
    font-size: 0.9rem;
    padding: 15px 0;
}

/* Minimalist pagination wrapper */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
    padding: 10px 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: none !important;
    border-radius: 4px;
    margin: 0 2px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    color: #666 !important;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #e0e0e0;
    color: #333 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #007bff !important;
    border: none !important;
    color: white !important;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #ccc !important;
    background-color: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.6;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background-color: #f0f0f0;
}

/* Hide the length menu (Show X entries dropdown) */
.dataTables_wrapper .dataTables_length {
    display: none !important;
}

/* Remove DataTables default borders */
.dataTables_wrapper .dataTable {
    border: none !important;
}

.dataTables_wrapper .dataTable thead th {
    border: none !important;
    background-color: #f8f9fa !important;
    font-weight: 600;
    color: #333;
    padding: 15px;
}

.dataTables_wrapper .dataTable tbody td {
    border: none !important;
    padding: 15px;
    vertical-align: middle;
}

/* Responsive table styling */
.table-responsive {
    overflow-x: auto;
}

/* Ensure proper spacing on mobile */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left;
        margin-bottom: 10px;
    }
    
    .dataTables_wrapper .dataTables_length select,
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin: 5px 0;
    }
    
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
        margin-top: 10px;
    }
}
