/*=============================================================================
  Blazor Bootstrap Override Styles
  This file ensures Blazor Bootstrap components match the existing Bootstrap 5 
  styling used throughout the application.
=============================================================================*/

/*-----------------------------------------------------------------------------
  HTML/Body Overflow Fix
  Prevent double scrollbars caused by Blazor Bootstrap
-----------------------------------------------------------------------------*/
html {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100% !important;
}

body {
    overflow-y: visible !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
    margin: 0 !important;
}

/* Ensure Blazor app container doesn't add extra scrollbars */
#app,
.app,
[id*="blazor"] {
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
}

/* Remove any fixed heights from Blazor Bootstrap wrappers */
.bb-page,
.bb-container,
.bb-main,
main {
    overflow: visible !important;
    height: auto !important;
}

/* Ensure page wrapper doesn't cause scrollbars */
.page {
    overflow: visible !important;
    height: auto !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Ensure article/content areas flow naturally */
article,
.content {
    overflow: visible !important;
    height: auto !important;
}

/* Container should not overflow */
.container,
.container-fluid {
    overflow: visible !important;
    height: auto !important;
}

/*-----------------------------------------------------------------------------
  Navigation Bar Styles
-----------------------------------------------------------------------------*/
/* Override Blazor Bootstrap navbar to match standard Bootstrap 5 navbar */

/* Blazor Bootstrap Nav component renders as <nav> with bb-nav class */
.bb-nav,
nav.navbar {
    background-color: #0d6efd !important;
}

/* Ensure NavbarToggler component only shows on mobile (< 768px) */
.navbar-expand-md .bb-navbar-toggler,
.navbar-expand-md .navbar-toggler {
    display: none;
}

@media (max-width: 767.98px) {
    .navbar-expand-md .bb-navbar-toggler,
    .navbar-expand-md .navbar-toggler {
        display: block;
    }
}

/* Fix Blazor Bootstrap NavbarToggler to render properly */
.bb-navbar-toggler,
.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.375rem;
    transition: box-shadow 0.15s ease-in-out;
}

.bb-navbar-toggler:hover,
.navbar-toggler:hover {
    text-decoration: none;
}

.bb-navbar-toggler:focus,
.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* NavbarToggler icon */
.bb-navbar-toggler-icon,
.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* Blazor Bootstrap Collapse component */
.bb-collapse:not(.show),
.collapse:not(.show) {
    display: none;
}

.bb-collapse.show,
.collapse.show {
    display: block;
}

/* On larger screens (?768px), always show the navbar collapse */
@media (min-width: 768px) {
    .navbar-expand-md .bb-collapse,
    .navbar-expand-md .collapse {
        display: flex !important;
        flex-basis: auto;
    }
}

/* Brand styling */
.bb-nav .bb-navbar-brand,
.bb-nav .navbar-brand,
.navbar .bb-navbar-brand,
.navbar .navbar-brand {
    color: white !important;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    text-decoration: none;
    white-space: nowrap;
}

/* Nav link styling */
.bb-nav .nav-link,
.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.bb-nav .nav-link:hover,
.navbar .nav-link:hover,
.bb-nav .nav-link:focus,
.navbar .nav-link:focus {
    color: white !important;
}

.bb-nav .nav-link.active,
.navbar .nav-link.active {
    color: white !important;
    font-weight: 500;
}

/* Ensure icons inside nav-links display properly */
.nav-link .bi,
.nav-link .oi {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Dropdown menu styling */
.bb-nav .bb-dropdown-menu,
.bb-nav .dropdown-menu,
.navbar .bb-dropdown-menu,
.navbar .dropdown-menu {
    background-color: #0d6efd;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
}

.bb-nav .bb-dropdown-item,
.bb-nav .dropdown-item,
.navbar .bb-dropdown-item,
.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.bb-nav .bb-dropdown-item:hover,
.bb-nav .dropdown-item:hover,
.navbar .bb-dropdown-item:hover,
.navbar .dropdown-item:hover,
.bb-nav .bb-dropdown-item:focus,
.bb-nav .dropdown-item:focus,
.navbar .bb-dropdown-item:focus,
.navbar .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.bb-nav .bb-dropdown-item.active,
.bb-nav .dropdown-item.active,
.navbar .bb-dropdown-item.active,
.navbar .dropdown-item.active {
    color: white;
    font-weight: 500;
}

.bb-nav .bb-dropdown-toggle::after,
.bb-nav .dropdown-toggle::after,
.navbar .bb-dropdown-toggle::after,
.navbar .dropdown-toggle::after {
    vertical-align: 0.255em;
}

/* Blazor Bootstrap Dropdown component wrapper */
.bb-dropdown {
    position: relative;
}

/* Form button in navbar (logout) */
.bb-nav form button,
.navbar form button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.bb-nav form button:hover,
.navbar form button:hover,
.bb-nav form button:focus,
.navbar form button:focus {
    color: white !important;
    background: none;
}

/*-----------------------------------------------------------------------------
  Carousel Styles
-----------------------------------------------------------------------------*/
/* Override Blazor Bootstrap carousel to match standard Bootstrap 5 carousel */
.bb-carousel,
.carousel {
    position: relative;
}

.bb-carousel .carousel-inner,
.carousel .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bb-carousel .carousel-item,
.carousel .carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

.bb-carousel .carousel-item.active,
.carousel .carousel-item.active,
.bb-carousel .carousel-item-next,
.carousel .carousel-item-next,
.bb-carousel .carousel-item-prev,
.carousel .carousel-item-prev {
    display: block;
}

.bb-carousel .carousel-item img,
.carousel .carousel-item img {
    display: block;
    width: 100%;
}

/* Carousel controls */
.bb-carousel .carousel-control-prev,
.carousel .carousel-control-prev,
.bb-carousel .carousel-control-next,
.carousel .carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: none;
    border: 0;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.bb-carousel .carousel-control-prev:hover,
.carousel .carousel-control-prev:hover,
.bb-carousel .carousel-control-next:hover,
.carousel .carousel-control-next:hover,
.bb-carousel .carousel-control-prev:focus,
.carousel .carousel-control-prev:focus,
.bb-carousel .carousel-control-next:focus,
.carousel .carousel-control-next:focus {
    color: #fff;
    text-decoration: none;
    outline: 0;
    opacity: 0.9;
}

.bb-carousel .carousel-control-prev,
.carousel .carousel-control-prev {
    left: 0;
}

.bb-carousel .carousel-control-next,
.carousel .carousel-control-next {
    right: 0;
}

.bb-carousel .carousel-control-prev-icon,
.carousel .carousel-control-prev-icon,
.bb-carousel .carousel-control-next-icon,
.carousel .carousel-control-next-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}

.bb-carousel .carousel-control-prev-icon,
.carousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.bb-carousel .carousel-control-next-icon,
.carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Carousel captions */
.bb-carousel .carousel-caption,
.carousel .carousel-caption {
    position: absolute;
    right: 15%;
    bottom: 1.25rem;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: center;
}

/*-----------------------------------------------------------------------------
  Button Styles
-----------------------------------------------------------------------------*/
/* Override Blazor Bootstrap buttons to match standard Bootstrap 5 buttons */
.bb-btn-primary,
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.bb-btn-primary:hover,
.btn-primary:hover {
    color: #fff;
    background-color: #1861ac;
    border-color: #155a9e;
}

.bb-btn-primary:focus,
.btn-primary:focus,
.bb-btn-primary:active,
.btn-primary:active {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/*-----------------------------------------------------------------------------
  Link Styles
-----------------------------------------------------------------------------*/
/* Ensure Blazor Bootstrap links match standard styles */
.bb-link,
a {
    color: #006bb7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bb-link:hover,
a:hover {
    color: #004080 !important;
}

.bb-link-primary:hover {
    color: #0056b3 !important;
}

/*-----------------------------------------------------------------------------
  Grid and Layout Styles
-----------------------------------------------------------------------------*/
/* Ensure Blazor Bootstrap grid system matches Bootstrap 5 */

/* Container classes */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container, .container-sm {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container, .container-sm, .container-md {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container, .container-sm, .container-md, .container-lg {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
        max-width: 1320px;
    }
}

.bb-row,
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.bb-col,
[class*="bb-col-"],
.col,
[class*="col-"] {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

/* Large screens (?992px) - Multi-column layout */
@media (min-width: 992px) {
    .col-lg-1 {
        flex: 0 0 auto;
        width: 8.33333333%;
    }
    
    .col-lg-2 {
        flex: 0 0 auto;
        width: 16.66666667%;
    }
    
    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    
    .col-lg-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }
    
    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .col-lg-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }
    
    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
    
    .col-lg-9 {
        flex: 0 0 auto;
        width: 75%;
    }
    
    .col-lg-10 {
        flex: 0 0 auto;
        width: 83.33333333%;
    }
    
    .col-lg-11 {
        flex: 0 0 auto;
        width: 91.66666667%;
    }
    
    .col-lg-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Medium screens (?768px) */
@media (min-width: 768px) {
    .col-md-1 {
        flex: 0 0 auto;
        width: 8.33333333%;
    }
    
    .col-md-2 {
        flex: 0 0 auto;
        width: 16.66666667%;
    }
    
    .col-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    
    .col-md-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }
    
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .col-md-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }
    
    .col-md-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
    
    .col-md-9 {
        flex: 0 0 auto;
        width: 75%;
    }
    
    .col-md-10 {
        flex: 0 0 auto;
        width: 83.33333333%;
    }
    
    .col-md-11 {
        flex: 0 0 auto;
        width: 91.66666667%;
    }
    
    .col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Small screens (?576px) */
@media (min-width: 576px) {
    .col-sm-1 {
        flex: 0 0 auto;
        width: 8.33333333%;
    }
    
    .col-sm-2 {
        flex: 0 0 auto;
        width: 16.66666667%;
    }
    
    .col-sm-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    
    .col-sm-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    
    .col-sm-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }
    
    .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .col-sm-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }
    
    .col-sm-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
    
    .col-sm-9 {
        flex: 0 0 auto;
        width: 75%;
    }
    
    .col-sm-10 {
        flex: 0 0 auto;
        width: 83.33333333%;
    }
    
    .col-sm-11 {
        flex: 0 0 auto;
        width: 91.66666667%;
    }
    
    .col-sm-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

/*-----------------------------------------------------------------------------
  Form Styles
-----------------------------------------------------------------------------*/
/* Override Blazor Bootstrap form controls */
.bb-form-control,
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bb-form-control:focus,
.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.bb-form-check-input,
.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
}

.bb-form-check-input:focus,
.form-check-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/*-----------------------------------------------------------------------------
  Modal Styles
-----------------------------------------------------------------------------*/
/* Override Blazor Bootstrap modals */
.bb-modal .modal-content {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.bb-modal .modal-header {
    border-bottom: 1px solid #dee2e6;
}

.bb-modal .modal-footer {
    border-top: 1px solid #dee2e6;
}

/*-----------------------------------------------------------------------------
  Alert Styles
-----------------------------------------------------------------------------*/
/* Override Blazor Bootstrap alerts */
.bb-alert {
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.bb-alert-primary {
    color: #084298;
    background-color: #cfe2ff;
    border-color: #b6d4fe;
}

.bb-alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.bb-alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.bb-alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

/*-----------------------------------------------------------------------------
  Badge Styles
-----------------------------------------------------------------------------*/
/* Override Blazor Bootstrap badges */
.bb-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.bb-badge-primary {
    background-color: #0d6efd;
}

/*-----------------------------------------------------------------------------
  Card Styles
-----------------------------------------------------------------------------*/
/* Override Blazor Bootstrap cards */
.bb-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
}

.bb-card-header {
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.bb-card-body {
    flex: 1 1 auto;
    padding: 1rem 1rem;
}

.bb-card-footer {
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/*-----------------------------------------------------------------------------
  Table Styles
-----------------------------------------------------------------------------*/
/* Override Blazor Bootstrap tables */
.bb-table,
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
    --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: top;
    border-color: #dee2e6;
}

.bb-table > :not(caption) > * > *,
.table > :not(caption) > * > * {
    padding: 0.5rem 0.5rem;
    background-color: var(--bs-table-bg);
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}

.bb-table-striped > tbody > tr:nth-of-type(odd) > *,
.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
}

.bb-table-hover > tbody > tr:hover > *,
.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: var(--bs-table-hover-bg);
}

/*-----------------------------------------------------------------------------
  Pagination Styles
-----------------------------------------------------------------------------*/
/* Override Blazor Bootstrap pagination */
.bb-pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
}

.bb-page-link {
    position: relative;
    display: block;
    padding: 0.375rem 0.75rem;
    color: #0d6efd;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.bb-page-link:hover {
    z-index: 2;
    color: #0a58ca;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.bb-page-item.active .bb-page-link {
    z-index: 3;
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/*-----------------------------------------------------------------------------
  Spinner/Loading Styles
-----------------------------------------------------------------------------*/
/* Override Blazor Bootstrap spinners */
.bb-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: bb-spinner-border 0.75s linear infinite;
}

@keyframes bb-spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/*-----------------------------------------------------------------------------
  Tooltip Styles
-----------------------------------------------------------------------------*/
/* Override Blazor Bootstrap tooltips */
.bb-tooltip {
    position: absolute;
    z-index: 1080;
    display: block;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    white-space: normal;
    line-break: auto;
    font-size: 0.875rem;
    word-wrap: break-word;
    opacity: 0.9;
}

.bb-tooltip-inner {
    max-width: 200px;
    padding: 0.25rem 0.5rem;
    color: #fff;
    text-align: center;
    background-color: #000;
    border-radius: 0.375rem;
}

/*-----------------------------------------------------------------------------
  Responsive Utilities
-----------------------------------------------------------------------------*/
/* Ensure responsive utilities work consistently */

/* Extra small devices (default, <576px) */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

/* Small devices (?576px) */
@media (min-width: 576px) {
    .d-sm-none {
        display: none !important;
    }
    
    .d-sm-block {
        display: block !important;
    }
    
    .d-sm-flex {
        display: flex !important;
    }
}

/* Medium devices (?768px) */
@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-md-block {
        display: block !important;
    }
    
    .d-md-flex {
        display: flex !important;
    }
}

/* Large devices (?992px) */
@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
    
    .d-lg-block {
        display: block !important;
    }
    
    .d-lg-flex {
        display: flex !important;
    }
}

/* Extra large devices (?1200px) */
@media (min-width: 1200px) {
    .d-xl-none {
        display: none !important;
    }
    
    .d-xl-block {
        display: block !important;
    }
    
    .d-xl-flex {
        display: flex !important;
    }
}

/* XXL devices (?1400px) */
@media (min-width: 1400px) {
    .d-xxl-none {
        display: none !important;
    }
    
    .d-xxl-block {
        display: block !important;
    }
    
    .d-xxl-flex {
        display: flex !important;
    }
}

/*-----------------------------------------------------------------------------
  Margin and Padding Utilities
-----------------------------------------------------------------------------*/
/* Ensure spacing utilities work consistently */
.bb-mb-0, .mb-0 { margin-bottom: 0 !important; }
.bb-mb-1, .mb-1 { margin-bottom: 0.25rem !important; }
.bb-mb-2, .mb-2 { margin-bottom: 0.5rem !important; }
.bb-mb-3, .mb-3 { margin-bottom: 1rem !important; }
.bb-mb-4, .mb-4 { margin-bottom: 1.5rem !important; }
.bb-mb-5, .mb-5 { margin-bottom: 3rem !important; }

.bb-mt-0, .mt-0 { margin-top: 0 !important; }
.bb-mt-1, .mt-1 { margin-top: 0.25rem !important; }
.bb-mt-2, .mt-2 { margin-top: 0.5rem !important; }
.bb-mt-3, .mt-3 { margin-top: 1rem !important; }
.bb-mt-4, .mt-4 { margin-top: 1.5rem !important; }
.bb-mt-5, .mt-5 { margin-top: 3rem !important; }

.bb-ms-0, .ms-0 { margin-left: 0 !important; }
.bb-ms-1, .ms-1 { margin-left: 0.25rem !important; }
.bb-ms-2, .ms-2 { margin-left: 0.5rem !important; }
.bb-ms-3, .ms-3 { margin-left: 1rem !important; }
.bb-ms-4, .ms-4 { margin-left: 1.5rem !important; }
.bb-ms-5, .ms-5 { margin-left: 3rem !important; }

.bb-me-0, .me-0 { margin-right: 0 !important; }
.bb-me-1, .me-1 { margin-right: 0.25rem !important; }
.bb-me-2, .me-2 { margin-right: 0.5rem !important; }
.bb-me-3, .me-3 { margin-right: 1rem !important; }
.bb-me-4, .me-4 { margin-right: 1.5rem !important; }
.bb-me-5, .me-5 { margin-right: 3rem !important; }

.bb-pe-0, .pe-0 { padding-right: 0 !important; }
.bb-pe-1, .pe-1 { padding-right: 0.25rem !important; }
.bb-pe-2, .pe-2 { padding-right: 0.5rem !important; }
.bb-pe-3, .pe-3 { padding-right: 1rem !important; }
.bb-pe-4, .pe-4 { padding-right: 1.5rem !important; }
.bb-pe-5, .pe-5 { padding-right: 3rem !important; }

/*-----------------------------------------------------------------------------
  Text Utilities
-----------------------------------------------------------------------------*/
/* Ensure text utilities work consistently */
.bb-text-center,
.text-center {
    text-align: center !important;
}

.bb-text-start,
.text-start {
    text-align: left !important;
}

.bb-text-end,
.text-end {
    text-align: right !important;
}

.bb-text-primary {
    color: #0d6efd !important;
}

.bb-text-danger {
    color: #dc3545 !important;
}

.bb-text-success {
    color: #198754 !important;
}

.bb-text-warning {
    color: #ffc107 !important;
}
