
:root {
    --primary-color: #1a4774;
    --secondary-color: #f8f9fa;
    --accent-color: #e9ecef;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--secondary-color);
    padding-bottom: 70px;
    font-size: 14px;
    line-height: 1.5;
}

.navbar {
    background-color: var(--primary-color);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: white !important;
}

.container {
    max-width: 1200px;
    padding: 0 1rem;
    margin: 0 auto;
}

h1 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.75rem;
    margin: 1.5rem 0;
    text-align: center;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 1rem 0;
    border: 1px solid rgba(0,0,0,0.1);
}

.card-body {
    padding: 1.5rem;
}

/* Table styles */
.table-responsive {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.table {
    margin: 0;
    background: white;
    width: 100% !important;
}

.dataTables_wrapper {
    width: 100%;
}

.dataTables_scrollBody {
    width: 100% !important;
}

.table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
    background: white;
}

.table tbody tr:hover {
    background-color: var(--accent-color);
}

/* DataTables customization */
.dataTables_wrapper {
    padding: 1rem;
}

.dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_filter label {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    font-weight: 500;
}

.dataTables_filter input {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    background-color: white;
    color: #212529;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.dataTables_filter input:hover {
    border-color: #dee2e6;
}

.dataTables_filter input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 71, 116, 0.1);
}

.dataTables_filter input:focus,
.dataTables_length select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 71, 116, 0.2);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #15385d;
    border-color: #15385d;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #146c43;
    border-color: #146c43;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.9);
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.875rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table td, .table th {
        padding: 0.75rem;
    }
    
    .dataTables_wrapper {
        padding: 0.5rem;
    }
    
    .dataTables_filter input {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .dataTables_length select {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        margin: 0.25rem 0;
    }
    
    .table-responsive {
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }
}

/* DataTables Responsive */
.dtr-data {
    max-width: calc(100vw - 4rem);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control {
    padding-left: 2.5rem !important;
}
