/* Global Overrides */
:root {
    --bs-primary: #3CA9F0;
    --bs-primary-rgb: 60, 169, 240;
    --bs-btn-primary-bg: #3CA9F0;
    --bs-btn-primary-border-color: #3CA9F0;
    --bs-component-active-bg: #3CA9F0;
}

.form-control {
    padding-left: 0.75rem !important;
}

/* App Search Fixes */
.app-search .position-relative {
    display: flex;
    align-items: center;
}

.app-search .search-widget-icon {
    position: absolute;
    left: 15px;
    /* Icon positioning */
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--bs-gray-500);
    z-index: 5;
}

.app-search .form-control {
    padding-left: 45px !important;
    /* Override global padding to make room for icon */
    padding-top: 10px;
    padding-bottom: 10px;
    height: 48px;
    /* Ensure specific height for vertical centering */
    line-height: 1.5;
}

/* Ensure Logo Box allows dynamic sizing */
.logo-box img {
    max-height: 100%;
    transition: all 0.2s ease;
}

.logo-box img.logo-lg {
    height: 35px !important;
    /* Larger logo */
}

.logo-box img.logo-sm {
    height: 35px !important;
}

/* Driver.js (Tutorial) Dark Mode */
[data-bs-theme="dark"] .driver-popover {
    background-color: #2b3035 !important;
    /* bs-dark-bg-subtle approx */
    color: #dee2e6 !important;
    border: 1px solid #495057 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .driver-popover-title {
    color: #fff !important;
    font-weight: 600 !important;
}

[data-bs-theme="dark"] .driver-popover-description {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .driver-popover-footer button {
    background-color: #343a40 !important;
    color: #fff !important;
    border: 1px solid #495057 !important;
    text-shadow: none !important;
}

[data-bs-theme="dark"] .driver-popover-footer button:hover {
    background-color: #495057 !important;
}

[data-bs-theme="dark"] .driver-popover-footer .driver-close-btn {
    color: #adb5bd !important;
    background-color: transparent !important;
    border: none !important;
}

[data-bs-theme="dark"] .driver-popover-footer .driver-close-btn:hover {
    color: #fff !important;
    background-color: transparent !important;
}

[data-bs-theme="dark"] .driver-popover-arrow-side-left.driver-popover-arrow {
    border-left-color: #2b3035 !important;
}

[data-bs-theme="dark"] .driver-popover-arrow-side-right.driver-popover-arrow {
    border-right-color: #2b3035 !important;
}

[data-bs-theme="dark"] .driver-popover-arrow-side-top.driver-popover-arrow {
    border-top-color: #2b3035 !important;
}

[data-bs-theme="dark"] .driver-popover-arrow-side-bottom.driver-popover-arrow {
    border-bottom-color: #2b3035 !important;
}