/**
 * IBU Brand Variables (Core Template)
 */
:root {
    --ibu-main-blue: #003A6D;
    --ibu-gold: #937947;
    --ibu-white: #ffffff;
    
    /* Metronic overlaps */
    --kt-primary: var(--ibu-main-blue);
    --kt-app-header-bg-color: var(--ibu-main-blue);
}

body {
    font-family: 'Inter', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .menu-title, .app-header-logo {
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase;
}

/* Custom styles for layout adjustments */
.app-header {
    background-color: var(--ibu-main-blue) !important;
}

/* Sidebar Menu — sizing */
#kt_app_sidebar_menu .menu-title {
    font-size: 14px !important;
}

#kt_app_sidebar_menu .menu-icon i {
    font-size: 1.35rem !important;
}

/* Sidebar Menu Gold Accents */
#kt_app_sidebar_menu .menu-link.active {
    background-color: rgba(147, 121, 71, 0.1) !important;
    color: var(--ibu-gold) !important;
}

#kt_app_sidebar_menu .menu-link.active .menu-icon i {
    color: var(--ibu-gold) !important;
}

/* Gold border for active items or special cards */
.ibu-border-gold {
    border-color: var(--ibu-gold) !important;
}

/* Ensure SPAPP sections fit properly */
#spapp > section {
    min-height: calc(100vh - 150px);
}

/* Card hover effect (Core standard) */
.ibu-card-hover:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Select2 filter dropdowns — match form-select-solid style */
.select2-container--default .select2-selection--single {
    background-color: var(--kt-input-solid-bg, #f9f9f9);
    border: 1px solid var(--kt-input-solid-bg, #f9f9f9);
    border-radius: 0.475rem;
    height: calc(1.5em + 1.1rem + 2px);
    padding: 0.55rem 0.75rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--kt-input-color, #181c32);
    line-height: 1.5;
    padding: 0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 0.75rem;
}
.select2-container--default .select2-results__option--highlighted {
    background-color: var(--kt-primary, #003A6D);
}
.select2-dropdown {
    border: 1px solid var(--kt-input-solid-bg, #f0f0f0);
    border-radius: 0.475rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.075);
}
.select2-search--dropdown .select2-search__field {
    border: 1px solid #e4e6ef;
    border-radius: 0.475rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.95rem;
}
/* Ensure Select2 dropdown appears above Bootstrap modals */
.select2-container--open .select2-dropdown {
    z-index: 9999;
}

/* Scan method selector active state */
.scan-method-btn.active-scan-method {
    font-weight: 600;
}

/* DataTables controls — inline alignment */
.dataTables_length label,
.dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
    font-size: 0.875rem;
    color: #7E8299;
    white-space: nowrap;
}

.dataTables_length select,
.dataTables_filter input[type=search] {
    display: inline-block !important;
    width: auto !important;
    padding: 5px 10px !important;
    border: 1px solid #e4e6ef !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    background-color: #fff !important;
}

/* Notification bell — consistent white icon on dark header */
.notification-bell-btn i,
.notification-bell-btn:hover i,
.notification-bell-btn.active i,
.notification-bell-btn.show i {
    color: rgba(255, 255, 255, 0.85) !important;
}
.notification-bell-btn:hover,
.notification-bell-btn.active,
.notification-bell-btn.show {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive sidebar fixes */
@media (max-width: 991.98px) {
    .app-header-logo img {
        height: 25px !important;
    }
}
