/* BRIS Theme for AdminLTE */

:root {
    --bris-primary: #003366; /* Deep Blue from BRIS Logo */
    --bris-secondary: #4a7d9f; /* Lighter Blue */
    --bris-accent: #d4a01d;   /* Gold/Yellow Accent */
    --bris-light: #f8f9fa;
    --bris-dark: #343a40;
}

/* Body and General Styling */
body {
    font-family: 'Source Sans Pro', sans-serif;
}

.content-wrapper {
    background-color: #f4f6f9;
}

/* Navbar */
.navbar-brand .brand-image {
    max-height: 40px;
    margin-right: 10px;
}

.main-header.navbar {
    border-bottom: 1px solid #dee2e6;
    background-color: #ffffff;
}

.nav-link {
    color: var(--bris-primary) !important;
}

.nav-link:hover {
    color: var(--bris-accent) !important;
}

.dropdown-item:hover {
    background-color: var(--bris-primary);
    color: white !important;
}

/* Breadcrumb */
.breadcrumb-item a {
    color: var(--bris-primary);
}
.breadcrumb-item.active {
    color: var(--bris-dark);
}


/* Cards */
.card {
    border-radius: .5rem;
    box-shadow: 0 0 15px rgba(0,0,0,.05);
    border: none;
}

.card-header {
    background-color: var(--bris-primary);
    color: white;
    border-bottom: none;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}

.card-title {
    font-weight: 600;
}

/* Stats Card */
.stats-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid #e9ecef;
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stats-icon.primary {
    background-color: var(--bris-primary);
}

.stats-icon.success {
    background-color: #28a745;
}

.stats-icon.warning {
    background-color: #ffc107;
    color: #333;
}

.stats-icon.danger {
    background-color: #dc3545;
}

/* Buttons */
.btn-primary {
    background-color: var(--bris-primary);
    border-color: var(--bris-primary);
}

.btn-primary:hover {
    background-color: var(--bris-secondary);
    border-color: var(--bris-secondary);
}

.btn-info {
    background-color: var(--bris-secondary);
    border-color: var(--bris-secondary);
}

.btn-info:hover {
    background-color: var(--bris-accent);
    border-color: var(--bris-accent);
    color: #fff;
}


/* Footer */
.main-footer {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    color: #869099;
}

.main-footer a {
    color: var(--bris-primary);
}

/* ===== SELECT2 STYLING ===== */
.select2-container--default .select2-selection--single {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    height: auto;
    min-height: 31px;
    padding: 0;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.select2-container--default.select2-container--sm .select2-selection--single {
    min-height: 31px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0.25rem 0.5rem;
    line-height: 1.5;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    padding-right: 0.5rem;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--bris-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    min-height: 31px;
    padding: 0.1rem 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.select2-container--default.select2-container--sm .select2-selection--multiple {
    min-height: 31px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--bris-primary);
    border: 1px solid var(--bris-primary);
    padding: 2px 6px;
    border-radius: 3px;
    margin: 0;
    line-height: 1.4;
    font-size: 0.875rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin: 0 3px 0 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--bris-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--bris-secondary);
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: var(--bris-primary);
    color: white;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.select2-search__field:focus {
    border-color: var(--bris-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.25);
}

/* Disabled select2 */
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #e9ecef;
    cursor: not-allowed;
}
