/* Modern Clean Theme */
body {
    background-color: #f8f9fa;
    color: #212529;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Sidebar Refined */
.sidebar {
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.02);
}

.sidebar a {
    color: #495057;
    border-radius: 0.25rem;
    margin: 0.25rem 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
}

.sidebar a:hover {
    background-color: #e9ecef;
    color: #0d6efd;
    text-decoration: none;
}

.sidebar h6 {
    color: #adb5bd;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding-left: 1rem;
    margin-top: 1.5rem;
}

/* Card Modernization */
.card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    background-color: #ffffff;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: #343a40;
}

/* Table Clean */
.table thead th {
    border-bottom: 2px solid #dee2e6;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table td {
    vertical-align: middle;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Utilities */


/* SELECT2 FIXES */
/* Fix Layout in Input Group - Handled by Blade Wrapper now */
/* .input-group .select2-container { ... } removed */

/* Ensure consistent height with other inputs */
.select2-container .select2-selection--single {
    height: 38px !important;
    /* Bootstrap default height */
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

/* Remove side borders if inside input group (to merge visually if needed, though usually kept separate) */
/* For now, just ensuring alignment */
.input-group>.select2-container--bootstrap-5 {
    display: flex;
    flex-grow: 1;
}

/* Fix rounded corners when in input group */
.input-group> :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}