/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

h1 {
    color: #343a40;
    margin-bottom: 20px;
    text-align: center;
}

/* Table Styles */
.table-responsive {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead.table-dark th {
    background-color: #343a40;
    color: white;
    text-align: center;
}

table tbody tr {
    transition: background-color 0.3s ease;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

.table-danger {
    background-color: #f8d7da !important;
}

td, th {
    padding: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
}

td.editable {
    cursor: pointer;
}

input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

/* Form Styles */
.form-select, .form-control {
    margin: 10px 0;
}

.filter-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pagination */
.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #dee2e6;
    color: #007bff;
    transition: background-color 0.3s ease;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
}

.pagination a:hover {
    background-color: #0056b3;
    color: white;
}

/* Modal */
.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: #343a40;
    color: white;
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

.btn-close {
    color: white;
}

/* Buttons */
.btn {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 5px;
}

.btn-sm {
    padding: 4px 8px;
}

.btn-warning {
    background-color: #ffc107;
    border: none;
    color: #343a40;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
    color: white;
}

.btn-success {
    background-color: #28a745;
    border: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }

    .filter-container {
        flex-direction: column;
    }
}

/* Light Mode */
body.light-mode .navbar {
    background-color: #ffffff;
    color: #212529;
}

/* Dark Mode */
body.dark-mode .navbar {
    background-color: #343a40;
    color: #f8f9fa;
}
