/* css/style.css */

body {
    font-family: 'Inter', sans-serif; /* Using Inter as requested */
    background-color: #f8f9fa; /* Light background */
    color: #343a40; /* Darker text for readability */
}

.navbar {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.card {
    border: none; /* Remove default card border */
    border-radius: 15px !important; /* Rounded corners for cards */
    overflow: hidden; /* Ensures content respects rounded corners */
}

.card-header {
    border-bottom: none; /* Remove header border */
    padding: 1.25rem 1.5rem; /* More padding */
    font-weight: bold;
}

.card-header.bg-primary {
    background-color: #007bff !important; /* Bootstrap primary color */
}

.card-header.bg-dark {
    background-color: #343a40 !important; /* Bootstrap dark color */
}

.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}
.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529; /* Dark text for warning button */
}
.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}
.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}
.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.form-control.rounded-pill {
    border-radius: 50rem !important; /* Make input fields rounded */
    padding: 0.75rem 1.25rem;
}

.table {
    margin-bottom: 0; /* Remove bottom margin from table inside card-body */
}

.table thead th {
    border-bottom: 2px solid #dee2e6; /* Stronger header border */
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03); /* Lighter stripe */
}

/* Custom styles for DataTables search and pagination */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 50rem !important;
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
    margin-left: 0.5em;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.5rem !important;
    margin: 0 0.2rem;
    padding: 0.5rem 0.8rem;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    color: #495057 !important;
    text-decoration: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 0.5rem !important;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
}

/* Modal styling */
.modal-content {
    border-radius: 15px !important;
}

.modal-header.bg-danger {
    background-color: #dc3545 !important;
}

.modal-header.bg-primary {
    background-color: #007bff !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .card-header h4, .card-header h5 {
        font-size: 1.2rem;
    }
    .btn {
        width: 100%; /* Full width buttons on small screens */
    }
    .d-flex.flex-wrap.gap-2 {
        flex-direction: column;
    }
}
