/* Custom styles */
:root {
    --primary: #007bff;
    --primary-hover: #0056b3;
    --dark: #343a40;
    --light: #f8f9fa;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--light);
    font-size: 14px;
}

/* Card styles */
.card {
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--light);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* Table styles */
.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
    padding: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.table td {
    padding: 0.5rem;
    vertical-align: middle;
}

/* Action buttons/icons */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1;
    border-radius: 0.2rem;
    margin: 0 0.125rem;
    background: transparent;
    border: none;
    color: var(--dark);
}

.btn-action i {
    font-size: 0.875rem;
}

.btn-action.edit-btn:hover {
    color: var(--primary);
}

.btn-action.delete-btn:hover {
    color: var(--danger);
}

/* Regular buttons */
.btn {
    font-weight: 400;
    padding: 0.375rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}


/* Form styles */
.form-control {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
}

.form-label {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--light);
    padding: 0.75rem 1rem;
}

.modal-title {
    font-size: 1rem;
}

.modal-footer {
    border-top: 1px solid var(--light);
    padding: 0.75rem 1rem;
}

/* DataTables customization */
.dataTables_wrapper {
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    height: calc(1.5em + 0.5rem + 2px);
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.8125rem;
    color: #6c757d;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary);
    border-color: var(--primary);
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--light);
    border-color: var(--gray-300);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: var(--gray-500) !important;
}