:root {
    --theme-default: #f86c2b;
    --theme-secondary: #a5c7aa;
    --light-background: rgba(253, 249, 246, 0.7);
    --body-font-color: #3a3a3a;
    --chart-border: #fdf9f6;
    --recent-chart-bg: #fdf9f6;
    --light-bg: #fdf9f6;
    --white: #fdf9f6;
    --light2: #fdf9f6;

    /* Bootstrap 5 Color Variables */
    --bs-primary: #f86c2b;
    --bs-primary-rgb: 248, 108, 43;
    --bs-secondary: #a5c7aa;
    --bs-secondary-rgb: 165, 199, 170;
    --bs-success: #b2e6b3;
    --bs-success-rgb: 178, 230, 179;
    --bs-info: #a4c9ea;
    --bs-info-rgb: 164, 201, 234;
    --bs-warning: #fbd59b;
    --bs-warning-rgb: 251, 213, 155;
    --bs-danger: #f6b1b1;
    --bs-danger-rgb: 246, 177, 177;
    --bs-light: #fdf9f6;
    --bs-light-rgb: 253, 249, 246;
    --bs-dark: #3a3a3a;
    --bs-dark-rgb: 58, 58, 58;

    /* Bootstrap 5 Text Colors */
    --bs-primary-text-emphasis: #c54a1c;
    --bs-secondary-text-emphasis: #7a9b7f;
    --bs-success-text-emphasis: #8dd390;
    --bs-info-text-emphasis: #7fb5e0;
    --bs-warning-text-emphasis: #f8c572;
    --bs-danger-text-emphasis: #f19999;
    --bs-light-text-emphasis: #6c757d;
    --bs-dark-text-emphasis: #495057;

    /* Bootstrap 5 Background Colors */
    --bs-primary-bg-subtle: rgba(248, 108, 43, 0.125);
    --bs-secondary-bg-subtle: rgba(165, 199, 170, 0.125);
    --bs-success-bg-subtle: rgba(178, 230, 179, 0.125);
    --bs-info-bg-subtle: rgba(164, 201, 234, 0.125);
    --bs-warning-bg-subtle: rgba(251, 213, 155, 0.125);
    --bs-danger-bg-subtle: rgba(246, 177, 177, 0.125);
    --bs-light-bg-subtle: #fdf9f6;
    --bs-dark-bg-subtle: rgba(58, 58, 58, 0.125);

    /* Bootstrap 5 Border Colors */
    --bs-primary-border-subtle: rgba(248, 108, 43, 0.375);
    --bs-secondary-border-subtle: rgba(165, 199, 170, 0.375);
    --bs-success-border-subtle: rgba(178, 230, 179, 0.375);
    --bs-info-border-subtle: rgba(164, 201, 234, 0.375);
    --bs-warning-border-subtle: rgba(251, 213, 155, 0.375);
    --bs-danger-border-subtle: rgba(246, 177, 177, 0.375);
    --bs-light-border-subtle: #dee2e6;
    --bs-dark-border-subtle: rgba(58, 58, 58, 0.375);

    /* Bootstrap 5 Body and Text */
    --bs-body-color: #3a3a3a;
    --bs-body-color-rgb: 58, 58, 58;
    --bs-body-bg: #ffffff;
    --bs-body-bg-rgb: 253, 249, 246;
    --bs-emphasis-color: #000;
    --bs-emphasis-color-rgb: 0, 0, 0;
    --bs-secondary-color: rgba(58, 58, 58, 0.75);
    --bs-secondary-color-rgb: 58, 58, 58;
    --bs-secondary-bg: #e9ecef;
    --bs-secondary-bg-rgb: 233, 236, 239;
    --bs-tertiary-color: rgba(58, 58, 58, 0.5);
    --bs-tertiary-color-rgb: 58, 58, 58;
    --bs-tertiary-bg: #f8f9fa;
    --bs-tertiary-bg-rgb: 248, 249, 250;

    /* Bootstrap 5 Link Colors */
    --bs-link-color: #f86c2b;
    --bs-link-color-rgb: 248, 108, 43;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #c6561f;
    --bs-link-hover-color-rgb: 198, 86, 31;

    /* Bootstrap 5 Code Colors */
    --bs-code-color: #d63384;

    /* Bootstrap 5 Highlight Colors */
    --bs-highlight-color: #3a3a3a;
    --bs-highlight-bg: #fff3cd;

    /* Bootstrap 5 Border and Box Shadow */
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: #dee2e6;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 2rem;
    --bs-border-radius-2xl: var(--bs-border-radius-xxl);
    --bs-border-radius-pill: 50rem;
    --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);

    /* Bootstrap 5 Focus Ring */
    --bs-focus-ring-width: 0.25rem;
    --bs-focus-ring-opacity: 0.25;
    --bs-focus-ring-color: rgba(248, 108, 43, 0.25);

    /* Bootstrap 5 Form Colors */
    --bs-form-valid-color: #b2e6b3;
    --bs-form-valid-border-color: #b2e6b3;
    --bs-form-invalid-color: #f6b1b1;
    --bs-form-invalid-border-color: #f6b1b1;

    /* Bootstrap 5 Button Close */
    --bs-btn-close-color: #000;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m.235 1.406l4.31 4.31 4.31-4.31a.5.5 0 0 1 .708.708L6.267 5.31l4.31 4.31a.5.5 0 0 1-.708.708L5.56 6.017l-4.31 4.31a.5.5 0 0 1-.708-.708L4.853 5.31.544 1.406a.5.5 0 0 1 .708-.708z'/%3e%3c/svg%3e");
    --bs-btn-close-opacity: 0.5;
    --bs-btn-close-hover-opacity: 0.75;
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(248, 108, 43, 0.25);
    --bs-btn-close-focus-opacity: 1;
    --bs-btn-close-disabled-opacity: 0.25;
    --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);

    /* Bootstrap 5 Navbar */
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0.5rem;
    --bs-navbar-color: rgba(var(--bs-emphasis-color-rgb), 0.65);
    --bs-navbar-hover-color: rgba(var(--bs-emphasis-color-rgb), 0.8);
    --bs-navbar-disabled-color: rgba(var(--bs-emphasis-color-rgb), 0.3);
    --bs-navbar-active-color: rgba(var(--bs-emphasis-color-rgb), 1);
    --bs-navbar-brand-padding-y: 0.3125rem;
    --bs-navbar-brand-margin-end: 1rem;
    --bs-navbar-brand-font-size: 1.25rem;
    --bs-navbar-brand-color: rgba(var(--bs-emphasis-color-rgb), 1);
    --bs-navbar-brand-hover-color: rgba(var(--bs-emphasis-color-rgb), 1);
    --bs-navbar-nav-link-padding-x: 0.5rem;
    --bs-navbar-toggler-padding-y: 0.25rem;
    --bs-navbar-toggler-padding-x: 0.75rem;
    --bs-navbar-toggler-font-size: 1.25rem;
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --bs-navbar-toggler-border-color: rgba(var(--bs-emphasis-color-rgb), 0.15);
    --bs-navbar-toggler-border-radius: var(--bs-border-radius);
    --bs-navbar-toggler-focus-width: var(--bs-focus-ring-width);
    --bs-navbar-toggler-transition: box-shadow 0.15s ease-in-out;

    /* Bootstrap 5 Dropdown */
    --bs-dropdown-zindex: 1000;
    --bs-dropdown-min-width: 10rem;
    --bs-dropdown-padding-x: 0;
    --bs-dropdown-padding-y: 0.5rem;
    --bs-dropdown-spacer: 0.125rem;
    --bs-dropdown-font-size: 1rem;
    --bs-dropdown-color: var(--bs-body-color);
    --bs-dropdown-bg: var(--bs-body-bg);
    --bs-dropdown-border-color: var(--bs-border-color-translucent);
    --bs-dropdown-border-radius: var(--bs-border-radius);
    --bs-dropdown-border-width: var(--bs-border-width);
    --bs-dropdown-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
    --bs-dropdown-divider-bg: var(--bs-border-color-translucent);
    --bs-dropdown-divider-margin-y: 0.5rem;
    --bs-dropdown-box-shadow: var(--bs-box-shadow);
    --bs-dropdown-link-color: var(--bs-body-color);
    --bs-dropdown-link-hover-color: var(--bs-body-color);
    --bs-dropdown-link-hover-bg: var(--bs-tertiary-bg);
    --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-link-active-bg: var(--bs-primary);
    --bs-dropdown-link-disabled-color: var(--bs-tertiary-color);
    --bs-dropdown-item-padding-x: 1rem;
    --bs-dropdown-item-padding-y: 0.25rem;
    --bs-dropdown-header-color: #6c757d;
    --bs-dropdown-header-padding-x: 1rem;
    --bs-dropdown-header-padding-y: 0.5rem;

    /* Bootstrap 5 Pagination */
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-padding-x-sm: 0.5rem;
    --bs-pagination-padding-y-sm: 0.25rem;
    --bs-pagination-padding-x-lg: 1.5rem;
    --bs-pagination-padding-y-lg: 0.75rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: var(--bs-link-color);
    --bs-pagination-bg: var(--bs-body-bg);
    --bs-pagination-border-width: var(--bs-border-width);
    --bs-pagination-border-color: var(--bs-border-color);
    --bs-pagination-border-radius: var(--bs-border-radius);
    --bs-pagination-hover-color: var(--bs-link-hover-color);
    --bs-pagination-hover-bg: var(--bs-tertiary-bg);
    --bs-pagination-hover-border-color: var(--bs-border-color);
    --bs-pagination-focus-color: var(--bs-link-hover-color);
    --bs-pagination-focus-bg: var(--bs-secondary-bg);
    --bs-pagination-focus-box-shadow: var(--bs-focus-ring-color);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
    --bs-pagination-disabled-color: var(--bs-secondary-color);
    --bs-pagination-disabled-bg: var(--bs-secondary-bg);
    --bs-pagination-disabled-border-color: var(--bs-border-color);

    /* Bootstrap 5 Card */
    --bs-card-spacer-y: 1rem;
    --bs-card-spacer-x: 1rem;
    --bs-card-title-spacer-y: 0.5rem;
    --bs-card-title-color: inherit;
    --bs-card-subtitle-color: inherit;
    --bs-card-border-width: var(--bs-border-width);
    --bs-card-border-color: var(--bs-border-color-translucent);
    --bs-card-border-radius: var(--bs-border-radius);
    --bs-card-box-shadow: ;
    --bs-card-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
    --bs-card-cap-padding-y: 0.5rem;
    --bs-card-cap-padding-x: 1rem;
    --bs-card-cap-bg: rgba(var(--bs-body-color-rgb), 0.03);
    --bs-card-cap-color: inherit;
    --bs-card-height: auto;
    --bs-card-color: inherit;
    --bs-card-bg: var(--bs-body-bg);
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 0.75rem;

    /* Bootstrap 5 Accordion */
    --bs-accordion-color: var(--bs-body-color);
    --bs-accordion-bg: var(--bs-body-bg);
    --bs-accordion-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
    --bs-accordion-border-color: var(--bs-border-color);
    --bs-accordion-border-width: var(--bs-border-width);
    --bs-accordion-border-radius: var(--bs-border-radius);
    --bs-accordion-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
    --bs-accordion-btn-padding-x: 1.25rem;
    --bs-accordion-btn-padding-y: 1rem;
    --bs-accordion-btn-color: var(--bs-body-color);
    --bs-accordion-btn-bg: var(--bs-accordion-bg);
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-icon-width: 1.25rem;
    --bs-accordion-btn-icon-transform: rotate(-180deg);
    --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23052c65'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-focus-border-color: #86b7fe;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(248, 108, 43, 0.25);
    --bs-accordion-body-padding-x: 1.25rem;
    --bs-accordion-body-padding-y: 1rem;
    --bs-accordion-active-color: var(--bs-primary-text-emphasis);
    --bs-accordion-active-bg: var(--bs-primary-bg-subtle);

    /* Bootstrap 5 Tooltip */
    --bs-tooltip-zindex: 1080;
    --bs-tooltip-max-width: 200px;
    --bs-tooltip-padding-x: 0.5rem;
    --bs-tooltip-padding-y: 0.25rem;
    --bs-tooltip-margin: ;
    --bs-tooltip-font-size: 0.875rem;
    --bs-tooltip-color: var(--bs-body-bg);
    --bs-tooltip-bg: var(--bs-emphasis-color);
    --bs-tooltip-border-radius: var(--bs-border-radius);
    --bs-tooltip-opacity: 0.9;
    --bs-tooltip-arrow-width: 0.8rem;
    --bs-tooltip-arrow-height: 0.4rem;

    /* Bootstrap 5 Popover */
    --bs-popover-zindex: 1070;
    --bs-popover-max-width: 276px;
    --bs-popover-font-size: 0.875rem;
    --bs-popover-bg: var(--bs-body-bg);
    --bs-popover-border-width: var(--bs-border-width);
    --bs-popover-border-color: var(--bs-border-color-translucent);
    --bs-popover-border-radius: var(--bs-border-radius-lg);
    --bs-popover-inner-border-radius: calc(var(--bs-border-radius-lg) - var(--bs-border-width));
    --bs-popover-box-shadow: var(--bs-box-shadow);
    --bs-popover-header-padding-x: 1rem;
    --bs-popover-header-padding-y: 0.5rem;
    --bs-popover-header-font-size: 1rem;
    --bs-popover-header-color: inherit;
    --bs-popover-header-bg: var(--bs-secondary-bg);
    --bs-popover-header-border-color: var(--bs-border-color-translucent);
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: 1rem;
    --bs-popover-body-color: var(--bs-body-color);
    --bs-popover-arrow-width: 1rem;
    --bs-popover-arrow-height: 0.5rem;
    --bs-popover-arrow-border: var(--bs-popover-border-color);

    /* Bootstrap 5 Toast */
    --bs-toast-zindex: 1090;
    --bs-toast-padding-x: 0.75rem;
    --bs-toast-padding-y: 0.5rem;
    --bs-toast-spacing: 1.5rem;
    --bs-toast-max-width: 350px;
    --bs-toast-font-size: 0.875rem;
    --bs-toast-color: inherit;
    --bs-toast-bg: rgba(var(--bs-body-bg-rgb), 0.85);
    --bs-toast-border-width: var(--bs-border-width);
    --bs-toast-border-color: var(--bs-border-color-translucent);
    --bs-toast-border-radius: var(--bs-border-radius);
    --bs-toast-box-shadow: var(--bs-box-shadow);
    --bs-toast-header-color: var(--bs-secondary-color);
    --bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), 0.85);
    --bs-toast-header-border-color: var(--bs-border-color-translucent);

    /* Bootstrap 5 Badge */
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-font-weight: 700;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: var(--bs-border-radius);

    /* Bootstrap 5 Modal */
    --bs-modal-zindex: 1055;
    --bs-modal-width: 500px;
    --bs-modal-padding: 1rem;
    --bs-modal-margin: 0.5rem;
    --bs-modal-color: inherit;
    --bs-modal-bg: var(--bs-body-bg);
    --bs-modal-border-color: var(--bs-border-color-translucent);
    --bs-modal-border-width: var(--bs-border-width);
    --bs-modal-border-radius: var(--bs-border-radius-lg);
    --bs-modal-box-shadow: var(--bs-box-shadow-sm);
    --bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - var(--bs-border-width));
    --bs-modal-header-padding-x: 1rem;
    --bs-modal-header-padding-y: 1rem;
    --bs-modal-header-padding: 1rem 1rem;
    --bs-modal-header-border-color: var(--bs-border-color);
    --bs-modal-header-border-width: var(--bs-border-width);
    --bs-modal-title-line-height: 1.5;
    --bs-modal-footer-gap: 0.5rem;
    --bs-modal-footer-bg: inherit;
    --bs-modal-footer-border-color: var(--bs-border-color);
    --bs-modal-footer-border-width: var(--bs-border-width);

    /* Bootstrap 5 Alert */
    --bs-alert-bg: transparent;
    --bs-alert-padding-x: 1rem;
    --bs-alert-padding-y: 1rem;
    --bs-alert-margin-bottom: 1rem;
    --bs-alert-color: inherit;
    --bs-alert-border-color: transparent;
    --bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);
    --bs-alert-border-radius: var(--bs-border-radius);
    --bs-alert-link-color: inherit;

    /* Bootstrap 5 Progress */
    --bs-progress-height: 1rem;
    --bs-progress-font-size: 0.75rem;
    --bs-progress-bg: var(--bs-secondary-bg);
    --bs-progress-border-radius: var(--bs-border-radius);
    --bs-progress-box-shadow: var(--bs-box-shadow-inset);
    --bs-progress-bar-color: #fff;
    --bs-progress-bar-bg: var(--bs-primary);
    --bs-progress-bar-transition: width 0.6s ease;

    /* Bootstrap 5 List Group */
    --bs-list-group-color: var(--bs-body-color);
    --bs-list-group-bg: var(--bs-body-bg);
    --bs-list-group-border-color: var(--bs-border-color);
    --bs-list-group-border-width: var(--bs-border-width);
    --bs-list-group-border-radius: var(--bs-border-radius);
    --bs-list-group-item-padding-x: 1rem;
    --bs-list-group-item-padding-y: 0.5rem;
    --bs-list-group-action-color: var(--bs-secondary-color);
    --bs-list-group-action-hover-color: var(--bs-emphasis-color);
    --bs-list-group-action-hover-bg: var(--bs-tertiary-bg);
    --bs-list-group-action-active-color: var(--bs-body-color);
    --bs-list-group-action-active-bg: var(--bs-secondary-bg);
    --bs-list-group-disabled-color: var(--bs-secondary-color);
    --bs-list-group-disabled-bg: var(--bs-body-bg);
    --bs-list-group-active-color: #fff;
    --bs-list-group-active-bg: var(--bs-primary);
    --bs-list-group-active-border-color: var(--bs-primary);

    /* Bootstrap 5 Breadcrumb */
    --bs-breadcrumb-padding-x: 0;
    --bs-breadcrumb-padding-y: 0;
    --bs-breadcrumb-margin-bottom: 1rem;
    --bs-breadcrumb-bg: ;
    --bs-breadcrumb-border-radius: ;
    --bs-breadcrumb-divider-color: var(--bs-secondary-color);
    --bs-breadcrumb-item-padding-x: 0.5rem;
    --bs-breadcrumb-item-active-color: var(--bs-secondary-color);

    /* Bootstrap 5 Spinner */
    --bs-spinner-width: 2rem;
    --bs-spinner-height: 2rem;
    --bs-spinner-vertical-align: -0.125em;
    --bs-spinner-border-width: 0.25em;
    --bs-spinner-animation-speed: 0.75s;
    --bs-spinner-animation-name: spinner-border;

    /* Bootstrap 5 Close Button */
    --bs-btn-close-width: 1em;
    --bs-btn-close-height: 1em;
    --bs-btn-close-padding-x: 0.25em;
    --bs-btn-close-padding-y: 0.25em;
    --bs-btn-close-color: #000;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m.235 1.406l4.31 4.31 4.31-4.31a.5.5 0 0 1 .708.708L6.267 5.31l4.31 4.31a.5.5 0 0 1-.708.708L5.56 6.017l-4.31 4.31a.5.5 0 0 1-.708-.708L4.853 5.31.544 1.406a.5.5 0 0 1 .708-.708z'/%3e%3c/svg%3e");
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(248, 108, 43, 0.25);
    --bs-btn-close-focus-opacity: 1;
    --bs-btn-close-disabled-opacity: 0.25;
    --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);

    /* Bootstrap 5 Offcanvas */
    --bs-offcanvas-zindex: 1045;
    --bs-offcanvas-width: 400px;
    --bs-offcanvas-height: 30vh;
    --bs-offcanvas-padding-x: 1rem;
    --bs-offcanvas-padding-y: 1rem;
    --bs-offcanvas-color: var(--bs-body-color);
    --bs-offcanvas-bg: var(--bs-body-bg);
    --bs-offcanvas-border-width: var(--bs-border-width);
    --bs-offcanvas-border-color: var(--bs-border-color-translucent);
    --bs-offcanvas-box-shadow: var(--bs-box-shadow-sm);
    --bs-offcanvas-transition: transform 0.3s ease-in-out;
    --bs-offcanvas-header-padding-x: 1rem;
    --bs-offcanvas-header-padding-y: 1rem;
    --bs-offcanvas-title-line-height: 1.5;

    /* Bootstrap 5 Placeholder */
    --bs-placeholder-opacity-max: 0.5;
    --bs-placeholder-opacity-min: 0.2;

    /* Bootstrap 5 Z-index */
    --bs-zindex-dropdown: 1000;
    --bs-zindex-sticky: 1020;
    --bs-zindex-fixed: 1030;
    --bs-zindex-offcanvas-backdrop: 1040;
    --bs-zindex-offcanvas: 1045;
    --bs-zindex-modal-backdrop: 1050;
    --bs-zindex-modal: 1055;
    --bs-zindex-popover: 1070;
    --bs-zindex-tooltip: 1080;
    --bs-zindex-toast: 1090;

    /* Bootstrap 5 Grid Breakpoints */
    --bs-breakpoint-xs: 0;
    --bs-breakpoint-sm: 576px;
    --bs-breakpoint-md: 768px;
    --bs-breakpoint-lg: 992px;
    --bs-breakpoint-xl: 1200px;
    --bs-breakpoint-xxl: 1400px;
}

/* Dark Mode Variables */
body.dark-only {
    --theme-default: #f86c2b;
    --theme-secondary: #a5c7aa;
    --light-background: rgba(55, 68, 98, 0.7);
    --body-font-color: rgba(255, 255, 255, 0.7);
    --chart-border: #2A3650;
    --recent-chart-bg: #2A3650;
    --light-bg: #374462;
    --white: #374462;
    --light2: #374462;

    /* Bootstrap 5 Color Variables - Dark Mode */
    --bs-primary: #f86c2b;
    --bs-primary-rgb: 248, 108, 43;
    --bs-secondary: #a5c7aa;
    --bs-secondary-rgb: 165, 199, 170;
    --bs-success: #b2e6b3;
    --bs-success-rgb: 178, 230, 179;
    --bs-info: #a4c9ea;
    --bs-info-rgb: 164, 201, 234;
    --bs-warning: #fbd59b;
    --bs-warning-rgb: 251, 213, 155;
    --bs-danger: #f6b1b1;
    --bs-danger-rgb: 246, 177, 177;
    --bs-light: #374462;
    --bs-light-rgb: 55, 68, 98;
    --bs-dark: #ffffff;
    --bs-dark-rgb: 255, 255, 255;

    /* Bootstrap 5 Text Colors - Dark Mode */
    --bs-primary-text-emphasis: #f86c2b;
    --bs-secondary-text-emphasis: #a5c7aa;
    --bs-success-text-emphasis: #b2e6b3;
    --bs-info-text-emphasis: #a4c9ea;
    --bs-warning-text-emphasis: #fbd59b;
    --bs-danger-text-emphasis: #f6b1b1;
    --bs-light-text-emphasis: rgba(255, 255, 255, 0.7);
    --bs-dark-text-emphasis: rgba(255, 255, 255, 0.9);

    /* Bootstrap 5 Background Colors - Dark Mode */
    --bs-primary-bg-subtle: rgba(248, 108, 43, 0.15);
    --bs-secondary-bg-subtle: rgba(165, 199, 170, 0.15);
    --bs-success-bg-subtle: rgba(178, 230, 179, 0.15);
    --bs-info-bg-subtle: rgba(164, 201, 234, 0.15);
    --bs-warning-bg-subtle: rgba(251, 213, 155, 0.15);
    --bs-danger-bg-subtle: rgba(246, 177, 177, 0.15);
    --bs-light-bg-subtle: #2A3650;
    --bs-dark-bg-subtle: rgba(255, 255, 255, 0.125);

    /* Bootstrap 5 Border Colors - Dark Mode */
    --bs-primary-border-subtle: rgba(248, 108, 43, 0.5);
    --bs-secondary-border-subtle: rgba(165, 199, 170, 0.5);
    --bs-success-border-subtle: rgba(178, 230, 179, 0.5);
    --bs-info-border-subtle: rgba(164, 201, 234, 0.5);
    --bs-warning-border-subtle: rgba(251, 213, 155, 0.5);
    --bs-danger-border-subtle: rgba(246, 177, 177, 0.5);
    --bs-light-border-subtle: #495057;
    --bs-dark-border-subtle: rgba(255, 255, 255, 0.375);

    /* Bootstrap 5 Body and Text - Dark Mode */
    --bs-body-color: rgba(255, 255, 255, 0.7);
    --bs-body-color-rgb: 255, 255, 255;
    --bs-body-bg: #374462;
    --bs-body-bg-rgb: 55, 68, 98;
    --bs-emphasis-color: rgba(255, 255, 255, 0.9);
    --bs-emphasis-color-rgb: 255, 255, 255;
    --bs-secondary-color: rgba(255, 255, 255, 0.6);
    --bs-secondary-color-rgb: 255, 255, 255;
    --bs-secondary-bg: #2A3650;
    --bs-secondary-bg-rgb: 42, 54, 80;
    --bs-tertiary-color: rgba(255, 255, 255, 0.5);
    --bs-tertiary-color-rgb: 255, 255, 255;
    --bs-tertiary-bg: #2A3650;
    --bs-tertiary-bg-rgb: 42, 54, 80;

    /* Bootstrap 5 Link Colors - Dark Mode */
    --bs-link-color: #f86c2b;
    --bs-link-color-rgb: 248, 108, 43;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #ff7a39;
    --bs-link-hover-color-rgb: 255, 122, 57;

    /* Bootstrap 5 Code Colors - Dark Mode */
    --bs-code-color: #f86c2b;

    /* Bootstrap 5 Highlight Colors - Dark Mode */
    --bs-highlight-color: #374462;
    --bs-highlight-bg: rgba(248, 108, 43, 0.25);

    /* Bootstrap 5 Border and Box Shadow - Dark Mode */
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: rgba(255, 255, 255, 0.125);
    --bs-border-color-translucent: rgba(255, 255, 255, 0.125);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 2rem;
    --bs-border-radius-2xl: var(--bs-border-radius-xxl);
    --bs-border-radius-pill: 50rem;
    --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
    --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.25);
    --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.15);

    /* Bootstrap 5 Focus Ring - Dark Mode */
    --bs-focus-ring-width: 0.25rem;
    --bs-focus-ring-opacity: 0.25;
    --bs-focus-ring-color: rgba(248, 108, 43, var(--bs-focus-ring-opacity));

    /* Bootstrap 5 Form Colors - Dark Mode */
    --bs-form-valid-color: #b2e6b3;
    --bs-form-valid-border-color: #b2e6b3;
    --bs-form-invalid-color: #f6b1b1;
    --bs-form-invalid-border-color: #f6b1b1;

    /* Bootstrap 5 Button Close - Dark Mode */
    --bs-btn-close-color: #fff;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='m.235 1.406l4.31 4.31 4.31-4.31a.5.5 0 0 1 .708.708L6.267 5.31l4.31 4.31a.5.5 0 0 1-.708.708L5.56 6.017l-4.31 4.31a.5.5 0 0 1-.708-.708L4.853 5.31.544 1.406a.5.5 0 0 1 .708-.708z'/%3e%3c/svg%3e");
    --bs-btn-close-opacity: 0.7;
    --bs-btn-close-hover-opacity: 0.9;
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(248, 108, 43, 0.25);
    --bs-btn-close-focus-opacity: 1;
    --bs-btn-close-disabled-opacity: 0.25;
    --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);

    /* Bootstrap 5 Navbar - Dark Mode */
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0.5rem;
    --bs-navbar-color: rgba(255, 255, 255, 0.65);
    --bs-navbar-hover-color: rgba(255, 255, 255, 0.8);
    --bs-navbar-disabled-color: rgba(255, 255, 255, 0.3);
    --bs-navbar-active-color: rgba(255, 255, 255, 1);
    --bs-navbar-brand-padding-y: 0.3125rem;
    --bs-navbar-brand-margin-end: 1rem;
    --bs-navbar-brand-font-size: 1.25rem;
    --bs-navbar-brand-color: rgba(255, 255, 255, 1);
    --bs-navbar-brand-hover-color: rgba(255, 255, 255, 1);
    --bs-navbar-nav-link-padding-x: 0.5rem;
    --bs-navbar-toggler-padding-y: 0.25rem;
    --bs-navbar-toggler-padding-x: 0.75rem;
    --bs-navbar-toggler-font-size: 1.25rem;
    --bs-navbar-toggler-icon-bg: 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.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.15);
    --bs-navbar-toggler-border-radius: var(--bs-border-radius);
    --bs-navbar-toggler-focus-width: var(--bs-focus-ring-width);
    --bs-navbar-toggler-transition: box-shadow 0.15s ease-in-out;

    /* Bootstrap 5 Dropdown - Dark Mode */
    --bs-dropdown-zindex: 1000;
    --bs-dropdown-min-width: 10rem;
    --bs-dropdown-padding-x: 0;
    --bs-dropdown-padding-y: 0.5rem;
    --bs-dropdown-spacer: 0.125rem;
    --bs-dropdown-font-size: 1rem;
    --bs-dropdown-color: rgba(255, 255, 255, 0.7);
    --bs-dropdown-bg: #2A3650;
    --bs-dropdown-border-color: rgba(255, 255, 255, 0.125);
    --bs-dropdown-border-radius: var(--bs-border-radius);
    --bs-dropdown-border-width: var(--bs-border-width);
    --bs-dropdown-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
    --bs-dropdown-divider-bg: rgba(255, 255, 255, 0.125);
    --bs-dropdown-divider-margin-y: 0.5rem;
    --bs-dropdown-box-shadow: var(--bs-box-shadow);
    --bs-dropdown-link-color: rgba(255, 255, 255, 0.7);
    --bs-dropdown-link-hover-color: rgba(255, 255, 255, 0.9);
    --bs-dropdown-link-hover-bg: #374462;
    --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-link-active-bg: var(--bs-primary);
    --bs-dropdown-link-disabled-color: rgba(255, 255, 255, 0.5);
    --bs-dropdown-item-padding-x: 1rem;
    --bs-dropdown-item-padding-y: 0.25rem;
    --bs-dropdown-header-color: rgba(255, 255, 255, 0.6);
    --bs-dropdown-header-padding-x: 1rem;
    --bs-dropdown-header-padding-y: 0.5rem;

    /* Bootstrap 5 Pagination - Dark Mode */
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-padding-x-sm: 0.5rem;
    --bs-pagination-padding-y-sm: 0.25rem;
    --bs-pagination-padding-x-lg: 1.5rem;
    --bs-pagination-padding-y-lg: 0.75rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: var(--bs-link-color);
    --bs-pagination-bg: #2A3650;
    --bs-pagination-border-width: var(--bs-border-width);
    --bs-pagination-border-color: rgba(255, 255, 255, 0.125);
    --bs-pagination-border-radius: var(--bs-border-radius);
    --bs-pagination-hover-color: var(--bs-link-hover-color);
    --bs-pagination-hover-bg: #374462;
    --bs-pagination-hover-border-color: rgba(255, 255, 255, 0.125);
    --bs-pagination-focus-color: var(--bs-link-hover-color);
    --bs-pagination-focus-bg: #374462;
    --bs-pagination-focus-box-shadow: var(--bs-focus-ring-color);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
    --bs-pagination-disabled-color: rgba(255, 255, 255, 0.6);
    --bs-pagination-disabled-bg: #2A3650;
    --bs-pagination-disabled-border-color: rgba(255, 255, 255, 0.125);

    /* Bootstrap 5 Card - Dark Mode */
    --bs-card-spacer-y: 1rem;
    --bs-card-spacer-x: 1rem;
    --bs-card-title-spacer-y: 0.5rem;
    --bs-card-title-color: inherit;
    --bs-card-subtitle-color: inherit;
    --bs-card-border-width: var(--bs-border-width);
    --bs-card-border-color: rgba(255, 255, 255, 0.125);
    --bs-card-border-radius: var(--bs-border-radius);
    --bs-card-box-shadow: ;
    --bs-card-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
    --bs-card-cap-padding-y: 0.5rem;
    --bs-card-cap-padding-x: 1rem;
    --bs-card-cap-bg: rgba(42, 54, 80, 0.5);
    --bs-card-cap-color: inherit;
    --bs-card-height: auto;
    --bs-card-color: inherit;
    --bs-card-bg: #2A3650;
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 0.75rem;

    /* Bootstrap 5 Accordion - Dark Mode */
    --bs-accordion-color: rgba(255, 255, 255, 0.7);
    --bs-accordion-bg: #2A3650;
    --bs-accordion-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
    --bs-accordion-border-color: rgba(255, 255, 255, 0.125);
    --bs-accordion-border-width: var(--bs-border-width);
    --bs-accordion-border-radius: var(--bs-border-radius);
    --bs-accordion-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
    --bs-accordion-btn-padding-x: 1.25rem;
    --bs-accordion-btn-padding-y: 1rem;
    --bs-accordion-btn-color: rgba(255, 255, 255, 0.7);
    --bs-accordion-btn-bg: var(--bs-accordion-bg);
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-icon-width: 1.25rem;
    --bs-accordion-btn-icon-transform: rotate(-180deg);
    --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f86c2b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-focus-border-color: rgba(248, 108, 43, 0.5);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(248, 108, 43, 0.25);
    --bs-accordion-body-padding-x: 1.25rem;
    --bs-accordion-body-padding-y: 1rem;
    --bs-accordion-active-color: var(--bs-primary-text-emphasis);
    --bs-accordion-active-bg: var(--bs-primary-bg-subtle);

    /* Bootstrap 5 Tooltip - Dark Mode */
    --bs-tooltip-zindex: 1080;
    --bs-tooltip-max-width: 200px;
    --bs-tooltip-padding-x: 0.5rem;
    --bs-tooltip-padding-y: 0.25rem;
    --bs-tooltip-margin: ;
    --bs-tooltip-font-size: 0.875rem;
    --bs-tooltip-color: #374462;
    --bs-tooltip-bg: rgba(255, 255, 255, 0.9);
    --bs-tooltip-border-radius: var(--bs-border-radius);
    --bs-tooltip-opacity: 0.9;
    --bs-tooltip-arrow-width: 0.8rem;
    --bs-tooltip-arrow-height: 0.4rem;

    /* Bootstrap 5 Popover - Dark Mode */
    --bs-popover-zindex: 1070;
    --bs-popover-max-width: 276px;
    --bs-popover-font-size: 0.875rem;
    --bs-popover-bg: #2A3650;
    --bs-popover-border-width: var(--bs-border-width);
    --bs-popover-border-color: rgba(255, 255, 255, 0.125);
    --bs-popover-border-radius: var(--bs-border-radius-lg);
    --bs-popover-inner-border-radius: calc(var(--bs-border-radius-lg) - var(--bs-border-width));
    --bs-popover-box-shadow: var(--bs-box-shadow);
    --bs-popover-header-padding-x: 1rem;
    --bs-popover-header-padding-y: 0.5rem;
    --bs-popover-header-font-size: 1rem;
    --bs-popover-header-color: inherit;
    --bs-popover-header-bg: #374462;
    --bs-popover-header-border-color: rgba(255, 255, 255, 0.125);
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: 1rem;
    --bs-popover-body-color: rgba(255, 255, 255, 0.7);
    --bs-popover-arrow-width: 1rem;
    --bs-popover-arrow-height: 0.5rem;
    --bs-popover-arrow-border: var(--bs-popover-border-color);

    /* Bootstrap 5 Toast - Dark Mode */
    --bs-toast-zindex: 1090;
    --bs-toast-padding-x: 0.75rem;
    --bs-toast-padding-y: 0.5rem;
    --bs-toast-spacing: 1.5rem;
    --bs-toast-max-width: 350px;
    --bs-toast-font-size: 0.875rem;
    --bs-toast-color: inherit;
    --bs-toast-bg: rgba(42, 54, 80, 0.95);
    --bs-toast-border-width: var(--bs-border-width);
    --bs-toast-border-color: rgba(255, 255, 255, 0.125);
    --bs-toast-border-radius: var(--bs-border-radius);
    --bs-toast-box-shadow: var(--bs-box-shadow);
    --bs-toast-header-color: rgba(255, 255, 255, 0.6);
    --bs-toast-header-bg: rgba(42, 54, 80, 0.95);
    --bs-toast-header-border-color: rgba(255, 255, 255, 0.125);

    /* Bootstrap 5 Badge - Dark Mode */
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-font-weight: 700;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: var(--bs-border-radius);

    /* Bootstrap 5 Modal - Dark Mode */
    --bs-modal-zindex: 1055;
    --bs-modal-width: 500px;
    --bs-modal-padding: 1rem;
    --bs-modal-margin: 0.5rem;
    --bs-modal-color: inherit;
    --bs-modal-bg: #2A3650;
    --bs-modal-border-color: rgba(255, 255, 255, 0.125);
    --bs-modal-border-width: var(--bs-border-width);
    --bs-modal-border-radius: var(--bs-border-radius-lg);
    --bs-modal-box-shadow: var(--bs-box-shadow-sm);
    --bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - var(--bs-border-width));
    --bs-modal-header-padding-x: 1rem;
    --bs-modal-header-padding-y: 1rem;
    --bs-modal-header-padding: 1rem 1rem;
    --bs-modal-header-border-color: rgba(255, 255, 255, 0.125);
    --bs-modal-header-border-width: var(--bs-border-width);
    --bs-modal-title-line-height: 1.5;
    --bs-modal-footer-gap: 0.5rem;
    --bs-modal-footer-bg: inherit;
    --bs-modal-footer-border-color: rgba(255, 255, 255, 0.125);
    --bs-modal-footer-border-width: var(--bs-border-width);

    /* Bootstrap 5 Alert - Dark Mode */
    --bs-alert-bg: transparent;
    --bs-alert-padding-x: 1rem;
    --bs-alert-padding-y: 1rem;
    --bs-alert-margin-bottom: 1rem;
    --bs-alert-color: inherit;
    --bs-alert-border-color: transparent;
    --bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);
    --bs-alert-border-radius: var(--bs-border-radius);
    --bs-alert-link-color: inherit;

    /* Bootstrap 5 Progress - Dark Mode */
    --bs-progress-height: 1rem;
    --bs-progress-font-size: 0.75rem;
    --bs-progress-bg: #374462;
    --bs-progress-border-radius: var(--bs-border-radius);
    --bs-progress-box-shadow: var(--bs-box-shadow-inset);
    --bs-progress-bar-color: #fff;
    --bs-progress-bar-bg: var(--bs-primary);
    --bs-progress-bar-transition: width 0.6s ease;

    /* Bootstrap 5 List Group - Dark Mode */
    --bs-list-group-color: rgba(255, 255, 255, 0.7);
    --bs-list-group-bg: #2A3650;
    --bs-list-group-border-color: rgba(255, 255, 255, 0.125);
    --bs-list-group-border-width: var(--bs-border-width);
    --bs-list-group-border-radius: var(--bs-border-radius);
    --bs-list-group-item-padding-x: 1rem;
    --bs-list-group-item-padding-y: 0.5rem;
    --bs-list-group-action-color: rgba(255, 255, 255, 0.6);
    --bs-list-group-action-hover-color: rgba(255, 255, 255, 0.9);
    --bs-list-group-action-hover-bg: #374462;
    --bs-list-group-action-active-color: rgba(255, 255, 255, 0.7);
    --bs-list-group-action-active-bg: #374462;
    --bs-list-group-disabled-color: rgba(255, 255, 255, 0.6);
    --bs-list-group-disabled-bg: #2A3650;
    --bs-list-group-active-color: #fff;
    --bs-list-group-active-bg: var(--bs-primary);
    --bs-list-group-active-border-color: var(--bs-primary);

    /* Bootstrap 5 Breadcrumb - Dark Mode */
    --bs-breadcrumb-padding-x: 0;
    --bs-breadcrumb-padding-y: 0;
    --bs-breadcrumb-margin-bottom: 1rem;
    --bs-breadcrumb-bg: ;
    --bs-breadcrumb-border-radius: ;
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.6);
    --bs-breadcrumb-item-padding-x: 0.5rem;
    --bs-breadcrumb-item-active-color: rgba(255, 255, 255, 0.6);

    /* Bootstrap 5 Spinner - Dark Mode */
    --bs-spinner-width: 2rem;
    --bs-spinner-height: 2rem;
    --bs-spinner-vertical-align: -0.125em;
    --bs-spinner-border-width: 0.25em;
    --bs-spinner-animation-speed: 0.75s;
    --bs-spinner-animation-name: spinner-border;

    /* Bootstrap 5 Offcanvas - Dark Mode */
    --bs-offcanvas-zindex: 1045;
    --bs-offcanvas-width: 400px;
    --bs-offcanvas-height: 30vh;
    --bs-offcanvas-padding-x: 1rem;
    --bs-offcanvas-padding-y: 1rem;
    --bs-offcanvas-color: rgba(255, 255, 255, 0.7);
    --bs-offcanvas-bg: #2A3650;
    --bs-offcanvas-border-width: var(--bs-border-width);
    --bs-offcanvas-border-color: rgba(255, 255, 255, 0.125);
    --bs-offcanvas-box-shadow: var(--bs-box-shadow-sm);
    --bs-offcanvas-transition: transform 0.3s ease-in-out;
    --bs-offcanvas-header-padding-x: 1rem;
    --bs-offcanvas-header-padding-y: 1rem;
    --bs-offcanvas-title-line-height: 1.5;

    /* Bootstrap 5 Placeholder - Dark Mode */
    --bs-placeholder-opacity-max: 0.5;
    --bs-placeholder-opacity-min: 0.2;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content>li .sidebar-link::after {
    background-color: var(--theme-default);
}

.form-control:focus,
.form-select:focus {
    box-shadow: none !important;
    border-color: var(--theme-default);
}

.form-control::selection {
    background: var(--theme-default);
    color: #fff;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: var(--theme-default) !important;
}

.company-logo {
    width: 100%;
    height: 100px;
    object-fit: contain;
}

@media all {
    .page-break {
        display: none;
    }
}

@media print {
    .page-break {
        page-break-before: always;
        display: block
    }

    @page {
        margin: 0;
        padding: 0;
    }
}

.ellipsis-1-line {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.ellipsis-2-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.ellipsis-3-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.transaction-description {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
}

@media print {

    .no-print,
    .no-print * {
        display: none !important;
    }
}

.order-table-title {
    display: flex !important;
    min-width: 225px !important;
    align-items: center !important;
}

.order-table-image {
    width: 70px;
}

@media (max-width: 600px) {
    .order-table-image {
        width: 80px;
    }

    .order-table-title:first-child {
        display: inline-flex;
    }
}

.store-img {
    height: 100%;
    width: 115px;
    object-fit: contain
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper .sidebar-main .sidebar-list i.fa-thumb-tack {
    top: 14px
}

/* ========================================
   Enhanced Language Selector Styling
======================================== */

/* Language toggle button styling */
.page-wrapper .page-header .header-wrapper .nav-right .onhover-dropdown .language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.page-wrapper .page-header .header-wrapper .nav-right .onhover-dropdown .language-toggle:hover {
    background: var(--bs-light);
}

.page-wrapper .page-header .header-wrapper .nav-right .onhover-dropdown .language-toggle .current-lang {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-primary);
    letter-spacing: 0.5px;
}

/* Enhanced language dropdown list */
.page-wrapper .page-header .header-wrapper .nav-right .lang-list {
    width: 200px !important;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
}

/* Language list items */
.page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-item {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-item:last-child {
    border-bottom: none;
}

.page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-item.active {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-primary-rgb), 0.05));
}

/* Language links */
.page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--bs-dark);
    transition: all 0.3s ease;
    position: relative;
    gap: 0.75rem;
}

.page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-link:hover {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-primary-rgb), 0.05));
    color: var(--bs-primary);
    transform: translateX(2px);
}

.page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-item.active .lang-link {
    color: var(--bs-primary);
    font-weight: 500;
}

/* Flag icon styling */
.page-wrapper .page-header .header-wrapper .nav-right .lang-list .flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Language name and code */
.page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
}

.page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-code {
    font-size: 0.75rem;
    color: var(--bs-secondary);
    font-weight: 600;
    background: rgba(var(--bs-secondary-rgb), 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Active check icon */
.page-wrapper .page-header .header-wrapper .nav-right .lang-list .active-check {
    color: var(--bs-success);
    font-size: 0.875rem;
    position: absolute;
    right: 0.75rem;
    animation: checkPulse 2s infinite;
}

@keyframes checkPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Hover effects for language items */
.page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-item:hover .flag-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-item:hover .lang-code {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-wrapper .page-header .header-wrapper .nav-right .lang-list {
        width: 180px !important;
        left: 70px;
    }

    .page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-link {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }

    .page-wrapper .page-header .header-wrapper .nav-right .lang-list .flag-icon {
        width: 20px;
        height: 15px;
    }
}

/* Dark mode support */
.dark .page-wrapper .page-header .header-wrapper .nav-right .lang-list {
    background: var(--bs-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-link {
    color: var(--bs-light);
}

.dark .page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-item {
    border-color: rgba(255, 255, 255, 0.05);
}

.dark .page-wrapper .page-header .header-wrapper .nav-right .lang-list .lang-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.2);
    color: var(--bs-primary);
}

.dark .page-wrapper .page-header .header-wrapper .nav-right .onhover-dropdown .language-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Legacy lang-list styling (keep for compatibility) */
.page-wrapper .page-header .header-wrapper .nav-right .lang-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.page-wrapper .page-header .header-wrapper .nav-right>ul>li:first-child {
    display: inherit;
}

.h-73px {
    height: 73px !important;
}

.h-40px {
    height: 40px !important;
}

.btn svg {
    vertical-align: middle
}

table.dataTable input,
table.dataTable select {
    height: 1em;
}

.simplebar-content-wrapper {
    padding-bottom: 60px !important;
}

.select2-container--default {
    height: 37.6px !important;
}

.select2-container .select2-selection--single {
    height: 37.6px !important;
    padding: 0.55rem 0.25rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    left: 25% !important;
    top: 60% !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 17px;
}

n-active {
    background-color: var(--primary) !important;
    color: white !important;
}

.status-scroll {
    max-width: 100vw;
    overflow-x: scroll;
    overflow-y: hidden;
}

.status-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.status-scroll::-webkit-scrollbar-thumb {
    background: #e56f38;
    border-radius: 10px;
}

.status-list {
    display: flex;
    flex-wrap: wrap;
    width: max-content;
}

.inline-flex {
    display: inline-flex;
}

.vertical-align-bottom {
    vertical-align: bottom;
}

.btn-group>.btn-group:not(:last-child)>.btn,
.btn-group>.btn.dropdown-toggle-split:first-child,
.btn-group>.btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);
}

.btn-group>.btn-group:not(:last-child)>.btn,
.btn-group>.btn.dropdown-toggle-split:first-child,
.btn-group>.btn:not(:last-child):not(.dropdown-toggle):not(:has(+ ul)) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

td .avatar {
    width: 70px;
    height: 70px;
    overflow: hidden;
}

td .avatar-sm {
    width: 50px;
    height: 50px;
}

td .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Social Accounts Styling
======================================== */
.social-accounts-wrapper {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.social-accounts-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-account-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--social-color, #6c757d);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-account-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-account-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.social-account-link:hover::before {
    opacity: 1;
}

.social-account-link:active {
    transform: translateY(0) scale(0.95);
}

.social-account-link i {
    font-size: 0.95rem;
    z-index: 1;
    position: relative;
}

/* Specific social media colors with gradients */
.social-account-link[href*="facebook.com"],
.social-account-link[href*="fb.com"] {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.social-account-link[href*="twitter.com"],
.social-account-link[href*="x.com"] {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-account-link[href*="instagram.com"] {
    background: linear-gradient(135deg, #e4405f, #f77737, #fcaf45, #ffdc80);
}

.social-account-link[href*="linkedin.com"] {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.social-account-link[href*="youtube.com"] {
    background: linear-gradient(135deg, #ff0000, #ff4444);
}

.social-account-link[href*="tiktok.com"] {
    background: linear-gradient(135deg, #000000, #333333);
}

.social-account-link[href*="snapchat.com"] {
    background: linear-gradient(135deg, #fffc00, #fff700);
    color: #000;
}

.social-account-link[href*="pinterest.com"] {
    background: linear-gradient(135deg, #bd081c, #e60023);
}

.social-account-link[href*="telegram"] {
    background: linear-gradient(135deg, #0088cc, #0099dd);
}

.social-account-link[href*="whatsapp"] {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Dark mode adjustments */
.dark .social-accounts-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .social-account-link {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark .social-account-link:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-accounts-container {
        gap: 0.25rem;
        padding: 0.15rem;
    }

    .social-account-link {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .social-account-link i {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .social-accounts-wrapper {
        margin-right: 0.5rem;
    }

    .social-accounts-container {
        gap: 0.1rem;
        padding: 0.1rem;
    }

    .social-account-link {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .social-account-link i {
        font-size: 0.75rem;
    }
}

/* Animation for when social accounts load */
@keyframes socialFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-account-link {
    animation: socialFadeIn 0.5s ease-out;
}

.social-account-link:nth-child(1) {
    animation-delay: 0.1s;
}

.social-account-link:nth-child(2) {
    animation-delay: 0.2s;
}

.social-account-link:nth-child(3) {
    animation-delay: 0.3s;
}

.social-account-link:nth-child(4) {
    animation-delay: 0.4s;
}

.social-account-link:nth-child(5) {
    animation-delay: 0.5s;
}

/* Mobile social media dropdown toggle button */
.social-accounts-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    color: var(--bs-dark);
}

.social-accounts-toggle:hover {
    background: var(--bs-light);
    color: var(--bs-primary);
}

.social-accounts-toggle i {
    font-size: 1rem;
}

/* Mobile social media dropdown */
.social-accounts-dropdown {
    width: 250px !important;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    right: 0;
    left: auto;
}

.social-dropdown-item {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.social-dropdown-item:last-child {
    border-bottom: none;
}

.social-dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--bs-dark);
    transition: all 0.3s ease;
    position: relative;
    gap: 0.75rem;
}

.social-dropdown-link:hover {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-primary-rgb), 0.05));
    color: var(--bs-primary);
    transform: translateX(2px);
}

.social-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--social-color, #6c757d);
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.social-dropdown-link:hover .social-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.social-name {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}

.social-handle {
    font-size: 0.75rem;
    color: var(--bs-secondary);
    font-weight: 400;
}

.social-external {
    color: var(--bs-secondary);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.social-dropdown-link:hover .social-external {
    color: var(--bs-primary);
    transform: translateX(2px);
}

/* Dark mode support for mobile dropdown */
.dark .social-accounts-dropdown {
    background: var(--bs-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .social-dropdown-link {
    color: var(--bs-light);
}

.dark .social-dropdown-item {
    border-color: rgba(255, 255, 255, 0.05);
}

.dark .social-dropdown-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.2);
    color: var(--bs-primary);
}

.dark .social-accounts-toggle {
    color: var(--bs-light);
}

.dark .social-accounts-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bs-primary);
}

/* Responsive adjustments for mobile dropdown */
@media (max-width: 768px) {
    .social-accounts-dropdown {
        width: 220px !important;
        right: -10px;
    }

    .social-dropdown-link {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }

    .social-icon-wrapper {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .social-name {
        font-size: 0.8rem;
    }

    .social-handle {
        font-size: 0.7rem;
    }

    .social-accounts-toggle {
        width: 36px;
        height: 36px;
        padding: 0.4rem;
    }

    .social-accounts-toggle i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .social-accounts-dropdown {
        width: 200px !important;
        right: -20px;
    }

    .social-dropdown-link {
        padding: 0.5rem;
        gap: 0.4rem;
    }

    .social-icon-wrapper {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .social-accounts-toggle {
        width: 32px;
        height: 32px;
        padding: 0.3rem;
    }

    .social-accounts-toggle i {
        font-size: 0.8rem;
    }
}

@media (max-width: 1199px) {
    .page-wrapper .page-header .header-wrapper .nav-right>ul>li:nth-child(2) {
        display: block !important;
    }
}

/* ========================================
   Color Palette Overrides - Pastel & Soft Theme
======================================== */

/* Background Colors */
.bg-primary {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

.bg-primary:hover {
    background-color: #e55d24 !important;
    color: #fff !important;
}

.bg-secondary {
    background-color: var(--bs-secondary) !important;
    color: #fff !important;
}

.bg-secondary:hover {
    background-color: #95b89b !important;
    color: #fff !important;
}

.bg-success {
    background-color: var(--bs-success) !important;
    color: var(--bs-dark) !important;
}

.bg-success:hover {
    background-color: #a0dfa1 !important;
    color: var(--bs-dark) !important;
}

.bg-danger {
    background-color: var(--bs-danger) !important;
    color: var(--bs-dark) !important;
}

.bg-danger:hover {
    background-color: #f49999 !important;
    color: var(--bs-dark) !important;
}

.bg-info {
    background-color: var(--bs-info) !important;
    color: var(--bs-dark) !important;
}

.bg-info:hover {
    background-color: #92bbe4 !important;
    color: var(--bs-dark) !important;
}

.bg-warning {
    background-color: var(--bs-warning) !important;
    color: var(--bs-dark) !important;
}

.bg-warning:hover {
    background-color: #f9c872 !important;
    color: var(--bs-dark) !important;
}

.bg-light {
    background-color: var(--bs-light) !important;
    color: var(--bs-dark) !important;
}

.bg-light:hover {
    background-color: #fcf6f2 !important;
    color: var(--bs-dark) !important;
}

.bg-dark {
    background-color: var(--bs-dark) !important;
    color: var(--bs-light) !important;
}

.bg-dark:hover {
    background-color: #2e2e2e !important;
    color: var(--bs-light) !important;
}

.bg-tertiary {
    background-color: #d4b8c7 !important;
    color: var(--bs-dark) !important;
}

.bg-tertiary:hover {
    background-color: #caa9bd !important;
    color: var(--bs-dark) !important;
}

/* Light Background Variants */
.bg-light-primary {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: #fff !important;
}

.bg-light-secondary {
    background-color: var(--bs-secondary-bg-subtle) !important;
    color: #fff !important;
}

.bg-light-success {
    background-color: var(--bs-success-bg-subtle) !important;
    color: var(--bs-dark) !important;
}

.bg-light-danger {
    background-color: var(--bs-danger-bg-subtle) !important;
    color: var(--bs-dark) !important;
}

.bg-light-info {
    background-color: var(--bs-info-bg-subtle) !important;
    color: var(--bs-dark) !important;
}

.bg-light-warning {
    background-color: var(--bs-warning-bg-subtle) !important;
    color: var(--bs-dark) !important;
}

.bg-light-light {
    background-color: var(--bs-light-bg-subtle) !important;
    color: var(--bs-dark) !important;
}

.bg-light-dark {
    background-color: var(--bs-dark-bg-subtle) !important;
    color: var(--bs-light) !important;
}

.bg-light-tertiary {
    background-color: rgba(212, 184, 199, 0.1) !important;
    color: var(--bs-dark) !important;
}

/* Text Colors */
.txt-primary {
    color: var(--bs-primary) !important;
}

.txt-primary:hover {
    color: #e55d24 !important;
}

.txt-secondary {
    color: var(--bs-secondary) !important;
}

.txt-secondary:hover {
    color: #95b89b !important;
}

.txt-success {
    color: var(--bs-success) !important;
}

.txt-success:hover {
    color: #a0dfa1 !important;
}

.txt-danger {
    color: var(--bs-danger) !important;
}

.txt-danger:hover {
    color: #f49999 !important;
}

.txt-info {
    color: var(--bs-info) !important;
}

.txt-info:hover {
    color: #92bbe4 !important;
}

.txt-warning {
    color: var(--bs-warning) !important;
}

.txt-warning:hover {
    color: #f9c872 !important;
}

.txt-tertiary {
    color: #d4b8c7 !important;
}

.txt-tertiary:hover {
    color: #caa9bd !important;
}

.txt-light {
    color: var(--bs-light) !important;
}

.txt-light:hover {
    color: #fcf6f2 !important;
}

.txt-dark {
    color: var(--bs-dark) !important;
}

.txt-dark:hover {
    color: #2e2e2e !important;
}

/* Button Colors */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
    background-color: #e55d24 !important;
    border-color: #e55d24 !important;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color) !important;
    background-color: #e55d24 !important;
    border-color: #e55d24 !important;
}

.btn-primary:active {
    background-color: #d34f1d !important;
    border-color: #d34f1d !important;
}

.btn-secondary {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
}

.btn-secondary:hover {
    background-color: #95b89b !important;
    border-color: #95b89b !important;
}

.btn-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-secondary-rgb), 0.25) !important;
    background-color: #95b89b !important;
    border-color: #95b89b !important;
}

.btn-secondary:active {
    background-color: #85a88c !important;
    border-color: #85a88c !important;
}

.btn-success {
    background-color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
    color: var(--bs-dark) !important;
}

.btn-success:hover {
    background-color: #a0dfa1 !important;
    border-color: #a0dfa1 !important;
    color: var(--bs-dark) !important;
}

.btn-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-success-rgb), 0.25) !important;
    background-color: #a0dfa1 !important;
    border-color: #a0dfa1 !important;
    color: var(--bs-dark) !important;
}

.btn-success:active {
    background-color: #8ed890 !important;
    border-color: #8ed890 !important;
    color: var(--bs-dark) !important;
}

.btn-danger {
    background-color: var(--bs-danger) !important;
    border-color: var(--bs-danger) !important;
    color: var(--bs-dark) !important;
}

.btn-danger:hover {
    background-color: #f49999 !important;
    border-color: #f49999 !important;
    color: var(--bs-dark) !important;
}

.btn-danger:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-danger-rgb), 0.25) !important;
    background-color: #f49999 !important;
    border-color: #f49999 !important;
    color: var(--bs-dark) !important;
}

.btn-danger:active {
    background-color: #f28080 !important;
    border-color: #f28080 !important;
    color: var(--bs-dark) !important;
}

.btn-info {
    background-color: var(--bs-info) !important;
    border-color: var(--bs-info) !important;
    color: var(--bs-dark) !important;
}

.btn-info:hover {
    background-color: #92bbe4 !important;
    border-color: #92bbe4 !important;
    color: var(--bs-dark) !important;
}

.btn-info:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-info-rgb), 0.25) !important;
    background-color: #92bbe4 !important;
    border-color: #92bbe4 !important;
    color: var(--bs-dark) !important;
}

.btn-info:active {
    background-color: #80adde !important;
    border-color: #80adde !important;
    color: var(--bs-dark) !important;
}

.btn-warning {
    background-color: var(--bs-warning) !important;
    border-color: var(--bs-warning) !important;
    color: var(--bs-dark) !important;
}

.btn-warning:hover {
    background-color: #f9c872 !important;
    border-color: #f9c872 !important;
    color: var(--bs-dark) !important;
}

.btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-warning-rgb), 0.25) !important;
    background-color: #f9c872 !important;
    border-color: #f9c872 !important;
    color: var(--bs-dark) !important;
}

.btn-warning:active {
    background-color: #f7bb49 !important;
    border-color: #f7bb49 !important;
    color: var(--bs-dark) !important;
}

.btn-tertiary {
    background-color: #d4b8c7 !important;
    border-color: #d4b8c7 !important;
    color: var(--bs-dark) !important;
}

.btn-tertiary:hover {
    background-color: #caa9bd !important;
    border-color: #caa9bd !important;
    color: var(--bs-dark) !important;
}

.btn-tertiary:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 184, 199, 0.25) !important;
    background-color: #caa9bd !important;
    border-color: #caa9bd !important;
    color: var(--bs-dark) !important;
}

.btn-tertiary:active {
    background-color: #c09ab3 !important;
    border-color: #c09ab3 !important;
    color: var(--bs-dark) !important;
}

.btn-light {
    background-color: var(--bs-light) !important;
    border-color: var(--bs-light) !important;
    color: var(--bs-dark) !important;
}

.btn-light:hover {
    background-color: #fcf6f2 !important;
    border-color: #fcf6f2 !important;
    color: var(--bs-dark) !important;
}

.btn-light:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-light-rgb), 0.25) !important;
    background-color: #fcf6f2 !important;
    border-color: #fcf6f2 !important;
    color: var(--bs-dark) !important;
}

.btn-light:active {
    background-color: #fbf3ee !important;
    border-color: #fbf3ee !important;
    color: var(--bs-dark) !important;
}

.btn-dark {
    background-color: var(--bs-dark) !important;
    border-color: var(--bs-dark) !important;
    color: var(--bs-light) !important;
}

.btn-dark:hover {
    background-color: #2e2e2e !important;
    border-color: #2e2e2e !important;
    color: var(--bs-light) !important;
}

.btn-dark:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-dark-rgb), 0.25) !important;
    background-color: #2e2e2e !important;
    border-color: #2e2e2e !important;
    color: var(--bs-light) !important;
}

.btn-dark:active {
    background-color: #242424 !important;
    border-color: #242424 !important;
    color: var(--bs-light) !important;
}

/* Badge Colors */
.badge-primary {
    background-color: var(--bs-primary) !important;
}

.badge-primary:hover {
    background-color: #e55d24 !important;
}

.badge-secondary {
    background-color: var(--bs-secondary) !important;
}

.badge-secondary:hover {
    background-color: #95b89b !important;
}

.badge-success {
    background-color: var(--bs-success) !important;
}

.badge-success:hover {
    background-color: #a0dfa1 !important;
}

.badge-danger {
    background-color: var(--bs-danger) !important;
}

.badge-danger:hover {
    background-color: #f49999 !important;
}

.badge-info {
    background-color: var(--bs-info) !important;
}

.badge-info:hover {
    background-color: #92bbe4 !important;
}

.badge-warning {
    background-color: var(--bs-warning) !important;
}

.badge-warning:hover {
    background-color: #f9c872 !important;
}

.badge-tertiary {
    background-color: #d4b8c7 !important;
}

.badge-tertiary:hover {
    background-color: #caa9bd !important;
}

.badge-light {
    background-color: var(--bs-light) !important;
}

.badge-light:hover {
    background-color: #fcf6f2 !important;
}

.badge-dark {
    background-color: var(--bs-dark) !important;
}

.badge-dark:hover {
    background-color: #2e2e2e !important;
}

/* Badge Light Variants */
.badge-light-primary {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-primary) !important;
}

.badge-light-secondary {
    background-color: var(--bs-secondary-bg-subtle) !important;
    color: var(--bs-secondary) !important;
}

.badge-light-success {
    background-color: var(--bs-success-bg-subtle) !important;
    color: var(--bs-success) !important;
}

.badge-light-danger {
    background-color: var(--bs-danger-bg-subtle) !important;
    color: var(--bs-danger) !important;
}

.badge-light-info {
    background-color: var(--bs-info-bg-subtle) !important;
    color: var(--bs-info) !important;
}

.badge-light-tertiary {
    background-color: rgba(212, 184, 199, 0.1) !important;
    color: #d4b8c7 !important;
}

.badge-light-light {
    background-color: var(--bs-light-bg-subtle) !important;
    color: var(--bs-light) !important;
}

.badge-light-dark {
    background-color: var(--bs-dark-bg-subtle) !important;
    color: var(--bs-dark) !important;
}

.badge-light-warning {
    background-color: var(--bs-warning-bg-subtle) !important;
    color: var(--bs-warning) !important;
}

/* Outline Button Colors */
.btn-outline-primary {
    border: 1px solid var(--bs-primary) !important;
    color: var(--bs-primary) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.btn-outline-secondary {
    border: 1px solid var(--bs-secondary) !important;
    color: var(--bs-secondary) !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-dark) !important;
}

.btn-outline-success {
    border: 1px solid var(--bs-success) !important;
    color: var(--bs-success) !important;
    background-color: transparent !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    background-color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
    color: var(--bs-dark) !important;
}

.btn-outline-danger {
    border: 1px solid var(--bs-danger) !important;
    color: var(--bs-danger) !important;
    background-color: transparent !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active {
    background-color: var(--bs-danger) !important;
    border-color: var(--bs-danger) !important;
    color: var(--bs-dark) !important;
}

.btn-outline-info {
    border: 1px solid var(--bs-info) !important;
    color: var(--bs-info) !important;
    background-color: transparent !important;
}

.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active {
    background-color: var(--bs-info) !important;
    border-color: var(--bs-info) !important;
    color: var(--bs-dark) !important;
}

.btn-outline-warning {
    border: 1px solid var(--bs-warning) !important;
    color: var(--bs-warning) !important;
    background-color: transparent !important;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active {
    background-color: var(--bs-warning) !important;
    border-color: var(--bs-warning) !important;
    color: var(--bs-dark) !important;
}

/* Border Colors */
.border-primary {
    border-color: var(--bs-primary) !important;
}

.border-secondary {
    border-color: var(--bs-secondary) !important;
}

.border-success {
    border-color: var(--bs-success) !important;
}

.border-danger {
    border-color: var(--bs-danger) !important;
}

.border-info {
    border-color: var(--bs-info) !important;
}

.border-warning {
    border-color: var(--bs-warning) !important;
}

.border-light {
    border-color: var(--bs-light) !important;
}

.border-dark {
    border-color: var(--bs-dark) !important;
}

/* Fill Colors for SVGs */
.fill-primary {
    fill: var(--bs-primary) !important;
}

.fill-secondary {
    fill: var(--bs-secondary) !important;
}

.fill-success {
    fill: var(--bs-success) !important;
}

.fill-danger {
    fill: var(--bs-danger) !important;
}

.fill-info {
    fill: var(--bs-info) !important;
}

.fill-warning {
    fill: var(--bs-warning) !important;
}

.fill-light {
    fill: var(--bs-light) !important;
}

.fill-dark {
    fill: var(--bs-dark) !important;
}

/* Link Colors */
.link-primary {
    color: var(--bs-link-color) !important;
    text-decoration-color: var(--bs-link-color) !important;
}

.link-secondary {
    color: var(--bs-secondary) !important;
    text-decoration-color: var(--bs-secondary) !important;
}

.link-success {
    color: var(--bs-success) !important;
    text-decoration-color: var(--bs-success) !important;
}

.link-danger {
    color: var(--bs-danger) !important;
    text-decoration-color: var(--bs-danger) !important;
}

.link-info {
    color: var(--bs-info) !important;
    text-decoration-color: var(--bs-info) !important;
}

.link-warning {
    color: var(--bs-warning) !important;
    text-decoration-color: var(--bs-warning) !important;
}

/* Dashed Border Colors */
.border-dashed-primary {
    border: 1px dashed var(--bs-primary) !important;
    color: var(--bs-primary) !important;
}

.border-dashed-secondary {
    border: 1px dashed var(--bs-secondary) !important;
    color: var(--bs-secondary) !important;
}

.border-dashed-success {
    border: 1px dashed var(--bs-success) !important;
    color: var(--bs-success) !important;
}

.border-dashed-danger {
    border: 1px dashed var(--bs-danger) !important;
    color: var(--bs-danger) !important;
}

.border-dashed-info {
    border: 1px dashed var(--bs-info) !important;
    color: var(--bs-info) !important;
}

.border-dashed-warning {
    border: 1px dashed var(--bs-warning) !important;
    color: var(--bs-warning) !important;
}

/* Left Border Colors */
.border-left-primary {
    border-left: 4px solid var(--bs-primary) !important;
}

.border-left-secondary {
    border-left: 4px solid var(--bs-secondary) !important;
}

.border-left-success {
    border-left: 4px solid var(--bs-success) !important;
}

.border-left-danger {
    border-left: 4px solid var(--bs-danger) !important;
}

.border-left-info {
    border-left: 4px solid var(--bs-info) !important;
}

.border-left-warning {
    border-left: 4px solid var(--bs-warning) !important;
}

/* Update scrollbar color to match new theme */
.status-scroll::-webkit-scrollbar-thumb {
    background: var(--bs-primary) !important;
}

/* Update form focus colors */
.form-control:focus,
.form-select:focus {
    box-shadow: none !important;
    border-color: var(--bs-primary) !important;
}

.form-control::selection {
    background: var(--bs-primary) !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: var(--bs-primary) !important;
}

/* ========================================
   Bootstrap 5 CSS Variables Override
======================================== */

:root {
    /* Primary Color System */
    --bs-primary: #f86c2b;
    --bs-primary-rgb: 248, 108, 43;
    --bs-secondary: #a5c7aa;
    --bs-secondary-rgb: 165, 199, 170;
    --bs-success: #b2e6b3;
    --bs-success-rgb: 178, 230, 179;
    --bs-info: #a4c9ea;
    --bs-info-rgb: 164, 201, 234;
    --bs-warning: #fbd59b;
    --bs-warning-rgb: 251, 213, 155;
    --bs-danger: #f6b1b1;
    --bs-danger-rgb: 246, 177, 177;
    --bs-light: #fdf9f6;
    --bs-light-rgb: 253, 249, 246;
    --bs-dark: #3a3a3a;
    --bs-dark-rgb: 58, 58, 58;

    /* Background Colors */
    --bs-primary-bg-subtle: rgba(248, 108, 43, 0.125);
    --bs-secondary-bg-subtle: rgba(165, 199, 170, 0.125);
    --bs-success-bg-subtle: rgba(178, 230, 179, 0.125);
    --bs-info-bg-subtle: rgba(164, 201, 234, 0.125);
    --bs-warning-bg-subtle: rgba(251, 213, 155, 0.125);
    --bs-danger-bg-subtle: rgba(246, 177, 177, 0.125);
    --bs-light-bg-subtle: rgba(253, 249, 246, 0.125);
    --bs-dark-bg-subtle: rgba(58, 58, 58, 0.125);

    /* Border Colors */
    --bs-primary-border-subtle: rgba(248, 108, 43, 0.5);
    --bs-secondary-border-subtle: rgba(165, 199, 170, 0.5);
    --bs-success-border-subtle: rgba(178, 230, 179, 0.5);
    --bs-info-border-subtle: rgba(164, 201, 234, 0.5);
    --bs-warning-border-subtle: rgba(251, 213, 155, 0.5);
    --bs-danger-border-subtle: rgba(246, 177, 177, 0.5);
    --bs-light-border-subtle: rgba(253, 249, 246, 0.5);
    --bs-dark-border-subtle: rgba(58, 58, 58, 0.5);

    /* Text Colors */
    --bs-primary-text-emphasis: #f86c2b;
    --bs-secondary-text-emphasis: #a5c7aa;
    --bs-success-text-emphasis: #b2e6b3;
    --bs-info-text-emphasis: #a4c9ea;
    --bs-warning-text-emphasis: #fbd59b;
    --bs-danger-text-emphasis: #f6b1b1;
    --bs-light-text-emphasis: #fdf9f6;
    --bs-dark-text-emphasis: #3a3a3a;

    /* Body and General Colors */
    --bs-body-color: #3a3a3a;
    --bs-body-bg: #ffffff;
    --bs-emphasis-color: #3a3a3a;
    --bs-secondary-color: rgba(58, 58, 58, 0.75);
    --bs-tertiary-color: rgba(58, 58, 58, 0.5);

    /* Link Colors */
    --bs-link-color: #f86c2b;
    --bs-link-hover-color: rgba(248, 108, 43, 0.8);
    --bs-link-color-rgb: 248, 108, 43;
    --bs-link-hover-color-rgb: 198, 86, 34;

    /* Border and Divider Colors */
    --bs-border-color: rgba(58, 58, 58, 0.175);
    --bs-border-color-translucent: rgba(58, 58, 58, 0.175);

    /* Component Colors */
    --bs-component-active-color: #fff;
    --bs-component-active-bg: #f86c2b;

    /* Focus Colors */
    --bs-focus-ring-color: rgba(248, 108, 43, 0.25);
    --bs-focus-ring-width: 0.25rem;
    --bs-focus-ring-opacity: 0.25;
    --bs-focus-ring-box-shadow: 0 0 0 var(--bs-focus-ring-width) var(--bs-focus-ring-color);

    /* Form Colors */
    --bs-form-valid-color: #b2e6b3;
    --bs-form-valid-border-color: #b2e6b3;
    --bs-form-invalid-color: #f6b1b1;
    --bs-form-invalid-border-color: #f6b1b1;

    /* Button Colors */
    --bs-btn-close-color: #3a3a3a;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23" + str-slice(inspect(#3a3a3a), 2) + "'%3e%3cpath d='m.235.757 14.014 14.009-1.414 1.414L.757 2.172z'/%3e%3cpath d='M14.5.757 .485 14.772l1.414 1.414L15.914 2.171z'/%3e%3c/svg%3e");

    /* Navbar Colors */
    --bs-navbar-color: rgba(58, 58, 58, 0.65);
    --bs-navbar-hover-color: rgba(58, 58, 58, 0.8);
    --bs-navbar-disabled-color: rgba(58, 58, 58, 0.3);
    --bs-navbar-active-color: #f86c2b;
    --bs-navbar-brand-color: #f86c2b;
    --bs-navbar-brand-hover-color: rgba(248, 108, 43, 0.8);
    --bs-navbar-toggler-border-color: rgba(58, 58, 58, 0.1);
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2858, 58, 58, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");

    /* Dropdown Colors */
    --bs-dropdown-color: #3a3a3a;
    --bs-dropdown-bg: #fdf9f6;
    --bs-dropdown-border-color: rgba(58, 58, 58, 0.175);
    --bs-dropdown-divider-bg: rgba(58, 58, 58, 0.175);
    --bs-dropdown-link-color: #3a3a3a;
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: #f86c2b;
    --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-link-active-bg: #f86c2b;
    --bs-dropdown-link-disabled-color: rgba(58, 58, 58, 0.5);

    /* Pagination Colors */
    --bs-pagination-color: #f86c2b;
    --bs-pagination-bg: #fdf9f6;
    --bs-pagination-border-color: rgba(58, 58, 58, 0.175);
    --bs-pagination-focus-color: rgba(248, 108, 43, 0.8);
    --bs-pagination-focus-bg: rgba(248, 108, 43, 0.125);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(248, 108, 43, 0.25);
    --bs-pagination-hover-color: rgba(248, 108, 43, 0.8);
    --bs-pagination-hover-bg: rgba(248, 108, 43, 0.125);
    --bs-pagination-hover-border-color: rgba(248, 108, 43, 0.5);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #f86c2b;
    --bs-pagination-active-border-color: #f86c2b;
    --bs-pagination-disabled-color: rgba(58, 58, 58, 0.5);
    --bs-pagination-disabled-bg: rgba(253, 249, 246, 0.5);
    --bs-pagination-disabled-border-color: rgba(58, 58, 58, 0.175);

    /* Card Colors */
    --bs-card-border-color: rgba(58, 58, 58, 0.175);
    --bs-card-inner-border-radius: calc(0.375rem - 1px);
    --bs-card-cap-padding-y: 0.5rem;
    --bs-card-cap-padding-x: 1rem;
    --bs-card-cap-bg: rgba(58, 58, 58, 0.03);
    --bs-card-cap-color: inherit;
    --bs-card-height: auto;
    --bs-card-color: inherit;
    --bs-card-bg: #fdf9f6;
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 0.75rem;

    /* Accordion Colors */
    --bs-accordion-color: #3a3a3a;
    --bs-accordion-bg: #fdf9f6;
    --bs-accordion-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
    --bs-accordion-border-color: rgba(58, 58, 58, 0.175);
    --bs-accordion-border-width: 1px;
    --bs-accordion-border-radius: 0.375rem;
    --bs-accordion-inner-border-radius: calc(0.375rem - 1px);
    --bs-accordion-btn-padding-x: 1.25rem;
    --bs-accordion-btn-padding-y: 1rem;
    --bs-accordion-btn-color: #3a3a3a;
    --bs-accordion-btn-bg: #fdf9f6;
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23" + str-slice(inspect(#3a3a3a), 2) + "'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-icon-width: 1.25rem;
    --bs-accordion-btn-icon-transform: rotate(-180deg);
    --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f86c2b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-focus-border-color: rgba(248, 108, 43, 0.5);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(248, 108, 43, 0.25);
    --bs-accordion-body-padding-x: 1.25rem;
    --bs-accordion-body-padding-y: 1rem;
    --bs-accordion-active-color: #f86c2b;
    --bs-accordion-active-bg: rgba(248, 108, 43, 0.125);

    /* Tooltip Colors */
    --bs-tooltip-color: #fff;
    --bs-tooltip-bg: #3a3a3a;
    --bs-tooltip-border-radius: 0.375rem;
    --bs-tooltip-opacity: 0.9;
    --bs-tooltip-padding-x: 0.5rem;
    --bs-tooltip-padding-y: 0.25rem;
    --bs-tooltip-margin: 0;
    --bs-tooltip-font-size: 0.875rem;
    --bs-tooltip-max-width: 200px;

    /* Popover Colors */
    --bs-popover-max-width: 276px;
    --bs-popover-font-size: 0.875rem;
    --bs-popover-bg: #fdf9f6;
    --bs-popover-border-width: 1px;
    --bs-popover-border-color: rgba(58, 58, 58, 0.2);
    --bs-popover-border-radius: 0.5rem;
    --bs-popover-inner-border-radius: calc(0.5rem - 1px);
    --bs-popover-box-shadow: 0 0.5rem 1rem rgba(58, 58, 58, 0.15);
    --bs-popover-header-padding-x: 1rem;
    --bs-popover-header-padding-y: 0.5rem;
    --bs-popover-header-font-size: 1rem;
    --bs-popover-header-color: inherit;
    --bs-popover-header-bg: rgba(248, 108, 43, 0.125);
    --bs-popover-header-border-color: rgba(58, 58, 58, 0.2);
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: 1rem;
    --bs-popover-body-color: #3a3a3a;
    --bs-popover-arrow-width: 1rem;
    --bs-popover-arrow-height: 0.5rem;

    /* Modal Colors */
    --bs-modal-color: inherit;
    --bs-modal-bg: #fdf9f6;
    --bs-modal-border-color: rgba(58, 58, 58, 0.175);
    --bs-modal-border-width: 1px;
    --bs-modal-border-radius: 0.5rem;
    --bs-modal-box-shadow: 0 0.125rem 0.25rem rgba(58, 58, 58, 0.075);
    --bs-modal-inner-border-radius: calc(0.5rem - 1px);
    --bs-modal-header-padding-x: 1rem;
    --bs-modal-header-padding-y: 1rem;
    --bs-modal-header-padding: 1rem 1rem;
    --bs-modal-header-border-color: rgba(58, 58, 58, 0.175);
    --bs-modal-header-border-width: 1px;
    --bs-modal-title-line-height: 1.5;
    --bs-modal-footer-gap: 0.5rem;
    --bs-modal-footer-bg: transparent;
    --bs-modal-footer-border-color: rgba(58, 58, 58, 0.175);
    --bs-modal-footer-border-width: 1px;

    /* Progress Colors */
    --bs-progress-height: 1rem;
    --bs-progress-font-size: 0.75rem;
    --bs-progress-bg: rgba(58, 58, 58, 0.1);
    --bs-progress-border-radius: 0.375rem;
    --bs-progress-box-shadow: inset 0 1px 2px rgba(58, 58, 58, 0.075);
    --bs-progress-bar-color: #fff;
    --bs-progress-bar-bg: #f86c2b;
    --bs-progress-bar-transition: width 0.6s ease;

    /* List Group Colors */
    --bs-list-group-color: #3a3a3a;
    --bs-list-group-bg: #fdf9f6;
    --bs-list-group-border-color: rgba(58, 58, 58, 0.175);
    --bs-list-group-border-width: 1px;
    --bs-list-group-border-radius: 0.375rem;
    --bs-list-group-item-padding-x: 1rem;
    --bs-list-group-item-padding-y: 0.5rem;
    --bs-list-group-action-color: rgba(58, 58, 58, 0.75);
    --bs-list-group-action-hover-color: #3a3a3a;
    --bs-list-group-action-hover-bg: rgba(248, 108, 43, 0.125);
    --bs-list-group-action-active-color: #3a3a3a;
    --bs-list-group-action-active-bg: rgba(248, 108, 43, 0.125);
    --bs-list-group-disabled-color: rgba(58, 58, 58, 0.5);
    --bs-list-group-disabled-bg: #fdf9f6;
    --bs-list-group-active-color: #fff;
    --bs-list-group-active-bg: #f86c2b;
    --bs-list-group-active-border-color: #f86c2b;

    /* Breadcrumb Colors */
    --bs-breadcrumb-padding-x: 0;
    --bs-breadcrumb-padding-y: 0;
    --bs-breadcrumb-margin-bottom: 1rem;
    --bs-breadcrumb-bg: transparent;
    --bs-breadcrumb-border-radius: 0;
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.6);
    --bs-breadcrumb-item-padding-x: 0.5rem;
    --bs-breadcrumb-item-active-color: rgba(255, 255, 255, 0.6);

    /* Alert Colors */
    --bs-alert-padding-x: 1rem;
    --bs-alert-padding-y: 1rem;
    --bs-alert-margin-bottom: 1rem;
    --bs-alert-color: inherit;
    --bs-alert-bg: transparent;
    --bs-alert-border: 1px solid transparent;
    --bs-alert-border-radius: 0.375rem;
}

/* ========================================
   Enhanced Action Button Styling
======================================== */

/* Remove default dropdown caret */
.dropdown-toggle-no-caret::after {
    display: none !important;
}

/* Enhanced dropdown menu styling */
.dropdown-menu {
    border: 1px solid var(--bs-border-color-translucent) !important;
    border-radius: var(--bs-border-radius-lg) !important;
    box-shadow: 0 0.5rem 1rem rgba(var(--bs-dark-rgb), 0.15) !important;
    padding: 0 !important;
    min-width: 10rem !important;
}

.dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    border-radius: 0 !important;
    transition: all 0.15s ease-in-out !important;
    color: var(--bs-body-color) !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus-visible {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-primary) !important;
}

.dropdown-menu .dropdown-item:focus-visible {
    outline: 2px solid var(--bs-primary) !important;
    outline-offset: -2px !important;
}

.dropdown-menu .dropdown-item:focus:not(:focus-visible) {
    outline: none !important;
}

.dropdown-menu .dropdown-item:active {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

.dropdown-menu .dropdown-item i {
    width: 1.25rem !important;
    text-align: center !important;
    font-size: 0.875rem !important;
}

.btn {
    text-wrap: nowrap !important;
    line-height: normal !important;
    padding: 0.45rem 0.7rem !important;
}

/* Enhanced button group styling */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
    border-radius: 1.5rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease-in-out !important;
}

.btn-group-sm .btn i {
    font-size: 0.75rem !important;
}

/* Hover and focus-visible effects for action buttons */
/* Note: Moved to after button icon styles for proper specificity */

/* Active state for action buttons */
.btn-outline-success:active,
.btn-outline-danger:active,
.btn-outline-info:active,
.btn-outline-secondary:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

/* Focus states for better accessibility */
.btn-outline-success:focus,
.btn-outline-danger:focus,
.btn-outline-info:focus,
.btn-outline-secondary:focus {
    box-shadow: var(--bs-focus-ring-box-shadow) !important;
}

/* Remove default focus outline for non-keyboard users */
.btn-outline-success:focus:not(:focus-visible),
.btn-outline-danger:focus:not(:focus-visible),
.btn-outline-info:focus:not(:focus-visible),
.btn-outline-secondary:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* Tooltip styling for action buttons */
.tooltip {
    font-size: 0.75rem !important;
}

.tooltip-inner {
    background-color: var(--bs-dark) !important;
    color: var(--bs-light) !important;
    border-radius: var(--bs-border-radius) !important;
    padding: 0.25rem 0.5rem !important;
}

/* User Detail Section Enhancements */
#user-detail .card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#user-detail .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

#user-detail .avatar-container img {
    transition: all 0.3s ease;
}

#user-detail .avatar-container:hover img {
    transform: scale(1.05);
}

#user-detail .info-item {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    margin: 0 -0.5rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

#user-detail .info-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(3px);
}

#user-detail .icon-wrapper {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#user-detail .icon-wrapper i {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
}

#user-detail .info-item:hover .icon-wrapper {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

#user-detail .info-item:hover .icon-wrapper i {
    color: white !important;
}

#user-detail .hover-text-primary:hover {
    color: var(--bs-primary) !important;
    transition: color 0.2s ease;
}

#user-detail .hover-lift {
    transition: all 0.3s ease;
}

#user-detail .hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced button styling for better visibility */
#user-detail .btn-light {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #2f3c4d !important;
    font-weight: 500;
}

#user-detail .btn-light:hover {
    background-color: white !important;
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#user-detail .btn-light i {
    color: inherit !important;
}

/* Enhanced accessibility for user detail links */
#user-detail a:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Responsive adjustments for user detail */
@media (max-width: 768px) {
    #user-detail .card {
        max-width: 100% !important;
    }

    #user-detail .d-flex.align-items-start {
        flex-direction: column;
        text-align: center;
    }

    #user-detail .avatar-container {
        margin: 0 auto 1rem;
    }

    #user-detail .info-item {
        padding: 1rem 0.5rem !important;
    }
}

/* Animation for verification badge */
#user-detail .position-absolute.bottom-0.end-0 {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Order Detail Card Enhancements */
.order-detail-card {
    transition: all 0.3s ease;
}

.order-detail-card:hover {
    transform: translateY(-2px);
}

.order-detail-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.order-detail-card .hover-text-primary:hover {
    color: var(--bs-primary) !important;
    text-decoration: none !important;
}

.order-detail-card .alert {
    transition: all 0.2s ease;
}

.order-detail-card .bg-light {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.order-detail-card .bg-light:hover {
    background-color: rgba(248, 249, 250, 0.8) !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-detail-card .rounded-circle {
    transition: all 0.3s ease;
}

.order-detail-card .bg-light:hover .rounded-circle {
    transform: scale(1.1);
}

/* Combined card layout improvements */
.order-detail-card .ratio-container {
    transition: all 0.3s ease;
}

.order-detail-card .ratio-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.order-detail-card .bg-light.border {
    transition: all 0.3s ease;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.order-detail-card .bg-light.border:hover {
    background-color: rgba(248, 249, 250, 0.9) !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Order total styling in header */
.order-detail-card .card-header .h4 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive improvements for combined layout */
@media (max-width: 768px) {
    .order-detail-card .row.g-4 {
        margin: 0;
    }

    .order-detail-card .col-xl-3 {
        margin-bottom: 1rem;
    }

    .order-detail-card .ratio-container {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Enhanced outline button visibility and interaction */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-info,
.btn-outline-warning {
    border-width: 2px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease-in-out !important;
}

/* Note: Hover states moved to after button icon styles for proper specificity */

/* Ensure outline buttons work in order detail card */
.order-detail-card .btn-outline-primary,
.order-detail-card .btn-outline-secondary,
.order-detail-card .btn-outline-success,
.order-detail-card .btn-outline-danger,
.order-detail-card .btn-outline-info,
.order-detail-card .btn-outline-warning {
    border-width: 2px !important;
    border-style: solid !important;
}

/* Square button icons by default - consistent with custom.css */
.btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem !important;
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    position: relative !important;
    border-radius: var(--bs-border-radius) !important;
    /* Square with rounded corners */
}

.btn-icon.btn-sm {
    padding: 0.375rem !important;
    min-width: 2rem !important;
    min-height: 2rem !important;
    font-size: 0.8rem !important;
}

.btn-icon.btn-lg {
    padding: 0.75rem !important;
    min-width: 3rem !important;
    min-height: 3rem !important;
    font-size: 1.1rem !important;
}

/* Circular button icons only when .rounded-pill is used */
.btn-icon.rounded-pill {
    border-radius: 50% !important;
}

/* Perfect centering for icons in all button types */
.btn-icon>i,
.btn-icon>.fa,
.btn-icon>.fas,
.btn-icon>.far,
.btn-icon>.fab,
.btn-icon>.fa-solid,
.btn-icon>.svg-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Outline button styling - square by default */
.btn-icon.btn-outline-primary,
.btn-icon.btn-outline-secondary,
.btn-icon.btn-outline-success,
.btn-icon.btn-outline-danger,
.btn-icon.btn-outline-info,
.btn-icon.btn-outline-warning {
    border-radius: var(--bs-border-radius) !important;
    border-width: 2px !important;
    background-color: transparent !important;
}

/* Outline button styling - circular only with .rounded-pill */
.btn-icon.rounded-pill.btn-outline-primary,
.btn-icon.rounded-pill.btn-outline-secondary,
.btn-icon.rounded-pill.btn-outline-success,
.btn-icon.rounded-pill.btn-outline-danger,
.btn-icon.rounded-pill.btn-outline-info,
.btn-icon.rounded-pill.btn-outline-warning {
    border-radius: 50% !important;
}

/* Table action button group spacing and effects */
.btn-group .btn-icon {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-group .btn-icon:first-child {
    margin-left: 0 !important;
}

.btn-group .btn-icon:last-child {
    margin-right: 0 !important;
}

.btn-group .btn-icon:hover,
table .btn-icon:hover,
.table .btn-icon:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   Comprehensive Outline Button Hover States
   (Placed after button icon styles for proper specificity)
======================================== */

/* Primary Outline Button States */
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(var(--bs-primary-rgb), 0.3) !important;
}

.btn-outline-primary:focus-visible {
    outline: 2px solid var(--bs-primary) !important;
    outline-offset: 2px !important;
}

.btn-outline-primary:active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
    transform: translateY(0) !important;
    box-shadow: none !important;
}

/* Secondary Outline Button States */
.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(var(--bs-secondary-rgb), 0.3) !important;
}

.btn-outline-secondary:focus-visible {
    outline: 2px solid var(--bs-secondary) !important;
    outline-offset: 2px !important;
}

.btn-outline-secondary:active {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-dark) !important;
    transform: translateY(0) !important;
    box-shadow: none !important;
}

/* Success Outline Button States */
.btn-outline-success:hover,
.btn-outline-success:focus-visible {
    background-color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
    color: var(--bs-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(var(--bs-success-rgb), 0.3) !important;
}

.btn-outline-success:focus-visible {
    outline: 2px solid var(--bs-success) !important;
    outline-offset: 2px !important;
}

.btn-outline-success:active {
    background-color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
    color: var(--bs-dark) !important;
    transform: translateY(0) !important;
    box-shadow: none !important;
}

/* Danger Outline Button States */
.btn-outline-danger:hover,
.btn-outline-danger:focus-visible {
    background-color: var(--bs-danger) !important;
    border-color: var(--bs-danger) !important;
    color: var(--bs-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(var(--bs-danger-rgb), 0.3) !important;
}

.btn-outline-danger:focus-visible {
    outline: 2px solid var(--bs-danger) !important;
    outline-offset: 2px !important;
}

.btn-outline-danger:active {
    background-color: var(--bs-danger) !important;
    border-color: var(--bs-danger) !important;
    color: var(--bs-dark) !important;
    transform: translateY(0) !important;
    box-shadow: none !important;
}

/* Info Outline Button States */
.btn-outline-info:hover,
.btn-outline-info:focus-visible {
    background-color: var(--bs-info) !important;
    border-color: var(--bs-info) !important;
    color: var(--bs-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(var(--bs-info-rgb), 0.3) !important;
}

.btn-outline-info:focus-visible {
    outline: 2px solid var(--bs-info) !important;
    outline-offset: 2px !important;
}

.btn-outline-info:active {
    background-color: var(--bs-info) !important;
    border-color: var(--bs-info) !important;
    color: var(--bs-dark) !important;
    transform: translateY(0) !important;
    box-shadow: none !important;
}

/* Warning Outline Button States */
.btn-outline-warning:hover,
.btn-outline-warning:focus-visible {
    background-color: var(--bs-warning) !important;
    border-color: var(--bs-warning) !important;
    color: var(--bs-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(var(--bs-warning-rgb), 0.3) !important;
}

.btn-outline-warning:focus-visible {
    outline: 2px solid var(--bs-warning) !important;
    outline-offset: 2px !important;
}

.btn-outline-warning:active {
    background-color: var(--bs-warning) !important;
    border-color: var(--bs-warning) !important;
    color: var(--bs-dark) !important;
    transform: translateY(0) !important;
    box-shadow: none !important;
}

/* General Outline Button Focus and Active States */
.btn-outline-success:focus,
.btn-outline-danger:focus,
.btn-outline-info:focus,
.btn-outline-secondary:focus,
.btn-outline-primary:focus,
.btn-outline-warning:focus {
    box-shadow: var(--bs-focus-ring-box-shadow) !important;
}

/* Remove default focus outline for non-keyboard users */
.btn-outline-success:focus:not(:focus-visible),
.btn-outline-danger:focus:not(:focus-visible),
.btn-outline-info:focus:not(:focus-visible),
.btn-outline-secondary:focus:not(:focus-visible),
.btn-outline-primary:focus:not(:focus-visible),
.btn-outline-warning:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* ========================================
   Select2 Theme Form Consistency
======================================== */

/* Select2 in theme-form should match form-control styling */
.theme-form .select2-container {
    width: 100% !important;
}

.theme-form .select2-container--default .select2-selection--single {
    border-color: rgba(106, 113, 133, 0.3) !important;
    border-style: dashed !important;
    background-color: #fff !important;
    color: #898989 !important;
    padding: 12px 10px !important;
    height: auto !important;
    min-height: 45px !important;
    box-shadow: none !important;
    border-radius: 0.375rem !important;
    transition: all 0.15s ease-in-out !important;
}

.theme-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #898989 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
}

.theme-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #898989 !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    font-weight: 400 !important;
}

.theme-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
    top: 0 !important;
}

.theme-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #898989 transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 5px 4px 0 4px !important;
    height: 0 !important;
    left: 50% !important;
    margin-left: -4px !important;
    margin-top: -2px !important;
    position: absolute !important;
    top: 50% !important;
    width: 0 !important;
}

/* Focus state for Select2 in theme-form */
.theme-form .select2-container--default.select2-container--focus .select2-selection--single,
.theme-form .select2-container--default.select2-container--open .select2-selection--single,
.theme-form .select2-container--default.select2-container--focus .select2-selection--multiple,
.theme-form .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--bs-primary) !important;
    /* box-shadow: 0 0 0 0.2rem rgba(248, 108, 43, 0.25) !important;
    outline: 0 !important; */
}

.theme-form .select2-container--default.select2-container--focus .select2-selection--single .select2-selection__arrow b,
.theme-form .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b,
.theme-form .select2-container--default.select2-container--focus .select2-selection--multiple .select2-selection__arrow b,
.theme-form .select2-container--default.select2-container--open .select2-selection--multiple .select2-selection__arrow b {
    border-color: var(--bs-primary) transparent transparent transparent !important;
}

/* Multiple select styling for theme-form */
.theme-form .select2-container--default .select2-selection--multiple {
    border-color: rgba(106, 113, 133, 0.3) !important;
    border-style: dashed !important;
    background-color: #fff !important;
    padding: 6px 10px !important;
    min-height: 45px !important;
    box-shadow: none !important;
    border-radius: 0.375rem !important;
}

.theme-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--bs-primary) !important;
    border: 1px solid var(--bs-primary) !important;
    color: #fff !important;
    border-radius: 0.25rem !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 13px !important;
}

.theme-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px !important;
    font-weight: bold !important;
    margin-right: 5px !important;
}

.theme-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
}

/* Dropdown styling for theme-form */
.theme-form .select2-dropdown {
    border: 1px solid rgba(106, 113, 133, 0.3) !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.theme-form .select2-container--default .select2-results__option {
    padding: 10px 12px !important;
    font-size: 14px !important;
    color: #898989 !important;
}

.theme-form .select2-container--default .select2-results__option--highlighted {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

.theme-form .select2-container--default .select2-results__option--selected {
    background-color: rgba(248, 108, 43, 0.1) !important;
    color: var(--bs-primary) !important;
}

.theme-form .select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px dashed rgba(106, 113, 133, 0.3) !important;
    border-radius: 0.375rem !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #898989 !important;
}

.theme-form .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(248, 108, 43, 0.25) !important;
    outline: 0 !important;
}

/* RTL support for Select2 in theme-form */
.theme-form[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 10px !important;
    right: auto !important;
}

/* Disabled state for Select2 in theme-form */
.theme-form .select2-container--default.select2-container--disabled .select2-selection--single,
.theme-form .select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    opacity: 0.65 !important;
}

/* Validation states for Select2 in theme-form */
.theme-form .is-invalid~.select2-container .select2-selection--single,
.theme-form .is-invalid~.select2-container .select2-selection--multiple {
    border-color: #dc3545 !important;
}

.theme-form .is-valid~.select2-container .select2-selection--single,
.theme-form .is-valid~.select2-container .select2-selection--multiple {
    border-color: #28a745 !important;
}

/* Enhanced dropdown animation */
.theme-form .select2-dropdown {
    animation: select2FadeIn 0.2s ease-in-out !important;
}

@keyframes select2FadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for Select2 in theme-form */
@media (max-width: 576px) {
    .theme-form .select2-container--default .select2-selection--single {
        padding: 10px 8px !important;
        min-height: 42px !important;
    }

    .theme-form .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 13px !important;
    }

    .theme-form .select2-container--default .select2-results__option {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
}

th {
    text-wrap: nowrap;
}

/* ========================================
   Enhanced Checkbox and Radio Styling
======================================== */

/* Custom checkbox styling to match theme */
.checkbox {
    position: relative;
}

.checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    left: -9999px;
}

.checkbox label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    line-height: 20px;
    display: inline-block;
    color: var(--bs-body-color);
    font-weight: 400;
    font-size: 14px;
}

.checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}

.checkbox label::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 3px;
    top: 1px;
    font-size: 12px;
    color: #fff;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.checkbox input[type="checkbox"]:checked+label::before {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.checkbox input[type="checkbox"]:checked+label::after {
    opacity: 1;
}

.checkbox input[type="checkbox"]:focus+label::before {
    box-shadow: 0 0 0 0.2rem rgba(248, 108, 43, 0.25);
    border-color: var(--bs-primary);
}

.checkbox input[type="checkbox"]:disabled+label {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox input[type="checkbox"]:disabled+label::before {
    background-color: var(--bs-secondary-bg);
    border-color: var(--bs-border-color);
}

/* Dark checkbox variant */
.checkbox-dark label::before {
    border-color: var(--bs-dark);
    background-color: transparent;
}

.checkbox-dark input[type="checkbox"]:checked+label::before {
    background-color: var(--bs-dark);
    border-color: var(--bs-dark);
}

.checkbox-dark input[type="checkbox"]:focus+label::before {
    box-shadow: 0 0 0 0.2rem rgba(58, 58, 58, 0.25);
    border-color: var(--bs-dark);
}

/* Bootstrap form-check integration */
.form-check-input.checkbox-dark {
    background-color: transparent !important;
    border-color: var(--bs-dark) !important;
}

.form-check-input.checkbox-dark:checked {
    background-color: var(--bs-dark) !important;
    border-color: var(--bs-dark) !important;
}

.form-check-input.checkbox-dark:focus {
    box-shadow: 0 0 0 0.25rem rgba(58, 58, 58, 0.25) !important;
    border-color: var(--bs-dark) !important;
}

/* ========================================
   Enhanced Form Validation Styling
======================================== */

/* General form validation */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--bs-danger) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4m0-1.4-1.4 1.4'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--bs-success) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73 1.4-1.4L7.4 1.64l.7.7-5.4 5.39Z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: var(--bs-danger) !important;
    box-shadow: none !important;
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
    border-color: var(--bs-success) !important;
    box-shadow: none !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-danger);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-success);
}

/* Theme form validation */
.theme-form .form-control.is-invalid,
.theme-form .form-select.is-invalid {
    border-style: dashed !important;
    border-color: var(--bs-danger) !important;
}

.theme-form .form-control.is-valid,
.theme-form .form-select.is-valid {
    border-style: dashed !important;
    border-color: var(--bs-success) !important;
}

/* ========================================
   Enhanced Form Group Styling
======================================== */

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 500;
    color: var(--bs-body-color);
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.form-group .required {
    color: var(--bs-danger);
}

/* Input group enhancements */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    border-radius: var(--bs-border-radius);
    transition: all 0.15s ease-in-out;
}

.input-group .form-control:focus {
    z-index: 5;
}

/* ========================================
   Enhanced Switch Styling
======================================== */

.form-switch .form-check-input {
    width: 2em;
    margin-left: -2.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%2858, 58, 58, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-position 0.15s ease-in-out;
}

.form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%2858, 58, 58, 0.25%29'/%3e%3c/svg%3e");
    box-shadow: none !important;
    border-color: var(--bs-primary);
}

/* ========================================
   Enhanced Radio Button Styling
======================================== */

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-input[type="radio"]:focus {
    box-shadow: none !important;
    border-color: var(--bs-primary);
}

/* ========================================
   Enhanced File Input Styling
======================================== */

.form-control[type="file"] {
    overflow: hidden;
}

.form-control[type="file"]:not(:disabled):not([readonly]) {
    cursor: pointer;
}

.form-control[type="file"]:focus {
    border-color: var(--bs-primary);
}

/* ========================================
   Form Layout Improvements
======================================== */

/* Floating labels */
.form-floating {
    position: relative;
}

.form-floating>.form-control,
.form-floating>.form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    padding: 1rem 0.75rem;
}

.form-floating>label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* ========================================
   Responsive Form Improvements
======================================== */

@media (max-width: 576px) {
    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-control,
    .form-select {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .checkbox label {
        font-size: 13px;
        padding-left: 24px;
    }

    .checkbox label::before {
        width: 16px;
        height: 16px;
    }

    .checkbox label::after {
        left: 2px;
        top: 0px;
        font-size: 10px;
    }
}

/* ========================================
   Accessibility Improvements
======================================== */

/* Focus-visible for better keyboard navigation */
/* .form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
} */

/* High contrast mode support */
@media (prefers-contrast: high) {

    .form-control,
    .form-select {
        border-width: 2px;
    }

    .checkbox label::before {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .form-control,
    .form-select,
    .form-check-input,
    .checkbox label::before,
    .checkbox label::after {
        transition: none;
    }
}

/* ========================================
   Enhanced Profile Dropdown Styling
======================================== */

/* Profile toggle button styling */
.page-wrapper .page-header .header-wrapper .nav-right .profile-nav .profile-toggle {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-nav .profile-toggle:hover {
    background: rgba(var(--bs-primary-rgb), 0.05);
}

/* Avatar wrapper with online indicator */
.page-wrapper .page-header .header-wrapper .nav-right .profile-nav .avatar-wrapper {
    position: relative;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-nav .avatar-wrapper img {
    border: 2px solid var(--bs-light);
    transition: all 0.3s ease;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-nav .profile-toggle:hover .avatar-wrapper img {
    border-color: var(--bs-primary);
    transform: scale(1.05);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-nav .online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--bs-success);
    border: 2px solid #fff;
    border-radius: 50%;
    animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* User info styling */
.page-wrapper .page-header .header-wrapper .nav-right .profile-nav .user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-dark);
    line-height: 1.2;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-nav .user-role {
    font-size: 0.75rem;
    color: var(--bs-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.125rem;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-nav .dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.625rem;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-nav.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* Enhanced profile dropdown */
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown {
    width: 280px !important;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    left: -200px !important;
    top: 55px !important;
}

/* Profile dropdown items */
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-item {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-item:last-child {
    border-bottom: none;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-item.logout-item {
    margin-top: 0.25rem;
    padding-top: 0.25rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: none;
}

/* Profile dropdown links */
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--bs-dark);
    transition: all 0.3s ease;
    position: relative;
    gap: 1rem;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-link:hover {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.08), rgba(var(--bs-primary-rgb), 0.03));
    color: var(--bs-primary);
    transform: translateX(3px);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .logout-link:hover {
    background: linear-gradient(135deg, rgba(var(--bs-danger-rgb), 0.08), rgba(var(--bs-danger-rgb), 0.03));
    color: var(--bs-danger);
}

/* Icon wrapper */
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: rgba(var(--bs-light-rgb), 0.5);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .icon-wrapper i {
    font-size: 1.125rem;
    color: var(--bs-secondary);
    transition: all 0.3s ease;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-link:hover .icon-wrapper {
    background: rgba(var(--bs-primary-rgb), 0.1);
    transform: scale(1.05);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-link:hover .icon-wrapper i {
    color: var(--bs-primary);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .logout-link:hover .icon-wrapper {
    background: rgba(var(--bs-danger-rgb), 0.1);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .logout-link:hover .icon-wrapper i {
    color: var(--bs-danger);
}

/* Link content */
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .link-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: inherit;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .link-subtitle {
    font-size: 0.75rem;
    color: var(--bs-secondary);
    font-weight: 500;
    line-height: 1.2;
}

/* Link arrows and badges */
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .link-arrow {
    font-size: 0.75rem;
    color: var(--bs-secondary);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Balance badge */
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .balance-badge {
    background: linear-gradient(135deg, var(--bs-success), #20c997);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(var(--bs-success-rgb), 0.3);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .balance-link:hover .balance-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(var(--bs-success-rgb), 0.4);
}

/* Special styling for balance item */
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .balance-link .icon-wrapper {
    background: linear-gradient(135deg, rgba(var(--bs-success-rgb), 0.1), rgba(var(--bs-success-rgb), 0.05));
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .balance-link .icon-wrapper i {
    color: var(--bs-success);
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .balance-link:hover {
    background: linear-gradient(135deg, rgba(var(--bs-success-rgb), 0.08), rgba(var(--bs-success-rgb), 0.03));
    color: var(--bs-success);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown {
        width: 260px !important;
        left: 45px !important;
    }

    .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-link {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .icon-wrapper {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown {
        width: 240px !important;
        left: 10px !important;
    }

    .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-link {
        padding: 0.75rem 0.875rem;
        gap: 0.625rem;
    }

    .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .icon-wrapper i {
        font-size: 1rem;
    }
}

/* Dark mode support */
.dark .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown {
    background: var(--bs-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-link {
    color: var(--bs-light);
}

.dark .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-item {
    border-color: rgba(255, 255, 255, 0.05);
}

.dark .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .profile-dropdown-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.15);
}

.dark .page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown .logout-link:hover {
    background: rgba(var(--bs-danger-rgb), 0.15);
}

.dark .page-wrapper .page-header .header-wrapper .nav-right .profile-nav .user-name {
    color: var(--bs-light);
}

.dark .page-wrapper .page-header .header-wrapper .nav-right .profile-nav .profile-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dark .page-wrapper .page-header .header-wrapper .nav-right .profile-nav .avatar-wrapper img {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Animation for dropdown appearance */
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown {
    animation: profileDropdownFadeIn 0.3s ease-out;
}

@keyframes profileDropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Legacy compatibility overrides */
.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown li {
    padding: 0 !important;
}

.page-wrapper .page-header .header-wrapper .nav-right .profile-dropdown li a {
    text-decoration: none !important;
}

.page-wrapper .page-header .header-wrapper .nav-right .notification-dropdown .notification-box .d-flex .flex-shrink-0 {
    width: 55px;
}

.page-wrapper .page-header .header-wrapper .nav-right .notification-dropdown {
    width: 400px !important;
    height: 500px !important;
    overflow: scroll;
}

.page-wrapper .page-header .header-wrapper .nav-right .notification-dropdown::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.page-wrapper .page-header .header-wrapper .nav-right .notification-dropdown::-webkit-scrollbar-thumb {
    background: #e56f38;
    border-radius: 10px;
}

.page-wrapper .page-header .header-wrapper .nav-right .notification-dropdown .notification-box .d-flex {
    gap: 10px;
}

@media (max-width: 576px) {
    .page-wrapper .page-header .header-wrapper .nav-right .notification-dropdown {
        width: 300px !important;
        height: 400px !important;
        overflow: scroll;
    }
}

@media screen and (max-width: 600px) {

    /* td .d-flex {
        display: contents !important;
    } */

    td.w-1,
    td.w-150px,
    td.w-50px {
        width: auto !important
    }


    td.text-center {
        text-align: end !important
    }

    table {
        border: 0;
    }

    table caption {
        font-size: 1.3em;
    }

    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }

    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
    }

    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    table td:last-child {
        border-bottom: 0;
    }

    td .form-check-size {
        place-self: end !important;
    }
}

/* Dark Mode Variables */
body.dark-only {
    --theme-default: #f86c2b;
    --theme-secondary: #a5c7aa;
    --light-background: rgba(55, 68, 98, 0.7);
    --body-font-color: rgba(255, 255, 255, 0.7);
    --chart-border: #2A3650;
    --recent-chart-bg: #2A3650;
    --light-bg: #374462;
    --white: #374462;
    --light2: #374462;

    /* Bootstrap 5 Color Variables - Dark Mode */
    --bs-primary: #f86c2b;
    --bs-primary-rgb: 248, 108, 43;
    --bs-secondary: #a5c7aa;
    --bs-secondary-rgb: 165, 199, 170;
    --bs-success: #b2e6b3;
    --bs-success-rgb: 178, 230, 179;
    --bs-info: #a4c9ea;
    --bs-info-rgb: 164, 201, 234;
    --bs-warning: #fbd59b;
    --bs-warning-rgb: 251, 213, 155;
    --bs-danger: #f6b1b1;
    --bs-danger-rgb: 246, 177, 177;
    --bs-light: #374462;
    --bs-light-rgb: 55, 68, 98;
    --bs-dark: #ffffff;
    --bs-dark-rgb: 255, 255, 255;

    /* Bootstrap 5 Text Colors - Dark Mode */
    --bs-primary-text-emphasis: #f86c2b;
    --bs-secondary-text-emphasis: #a5c7aa;
    --bs-success-text-emphasis: #b2e6b3;
    --bs-info-text-emphasis: #a4c9ea;
    --bs-warning-text-emphasis: #fbd59b;
    --bs-danger-text-emphasis: #f6b1b1;
    --bs-light-text-emphasis: rgba(255, 255, 255, 0.7);
    --bs-dark-text-emphasis: rgba(255, 255, 255, 0.9);

    /* Bootstrap 5 Background Colors - Dark Mode */
    --bs-primary-bg-subtle: rgba(248, 108, 43, 0.15);
    --bs-secondary-bg-subtle: rgba(165, 199, 170, 0.15);
    --bs-success-bg-subtle: rgba(178, 230, 179, 0.15);
    --bs-info-bg-subtle: rgba(164, 201, 234, 0.15);
    --bs-warning-bg-subtle: rgba(251, 213, 155, 0.15);
    --bs-danger-bg-subtle: rgba(246, 177, 177, 0.15);
    --bs-light-bg-subtle: #2A3650;
    --bs-dark-bg-subtle: rgba(255, 255, 255, 0.125);

    /* Bootstrap 5 Border Colors - Dark Mode */
    --bs-primary-border-subtle: rgba(248, 108, 43, 0.5);
    --bs-secondary-border-subtle: rgba(165, 199, 170, 0.5);
    --bs-success-border-subtle: rgba(178, 230, 179, 0.5);
    --bs-info-border-subtle: rgba(164, 201, 234, 0.5);
    --bs-warning-border-subtle: rgba(251, 213, 155, 0.5);
    --bs-danger-border-subtle: rgba(246, 177, 177, 0.5);
    --bs-light-border-subtle: #495057;
    --bs-dark-border-subtle: rgba(255, 255, 255, 0.375);

    /* Bootstrap 5 Body and Text - Dark Mode */
    --bs-body-color: rgba(255, 255, 255, 0.7);
    --bs-body-color-rgb: 255, 255, 255;
    --bs-body-bg: #374462;
    --bs-body-bg-rgb: 55, 68, 98;
    --bs-emphasis-color: rgba(255, 255, 255, 0.9);
    --bs-emphasis-color-rgb: 255, 255, 255;
    --bs-secondary-color: rgba(255, 255, 255, 0.6);
    --bs-secondary-color-rgb: 255, 255, 255;
    --bs-secondary-bg: #2A3650;
    --bs-secondary-bg-rgb: 42, 54, 80;
    --bs-tertiary-color: rgba(255, 255, 255, 0.5);
    --bs-tertiary-color-rgb: 255, 255, 255;
    --bs-tertiary-bg: #2A3650;
    --bs-tertiary-bg-rgb: 42, 54, 80;

    /* Bootstrap 5 Link Colors - Dark Mode */
    --bs-link-color: #f86c2b;
    --bs-link-color-rgb: 248, 108, 43;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #ff7a39;
    --bs-link-hover-color-rgb: 255, 122, 57;

    /* Bootstrap 5 Code Colors - Dark Mode */
    --bs-code-color: #f86c2b;

    /* Bootstrap 5 Highlight Colors - Dark Mode */
    --bs-highlight-color: #374462;
    --bs-highlight-bg: rgba(248, 108, 43, 0.25);

    /* Bootstrap 5 Border and Box Shadow - Dark Mode */
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: rgba(255, 255, 255, 0.125);
    --bs-border-color-translucent: rgba(255, 255, 255, 0.125);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 2rem;
    --bs-border-radius-2xl: var(--bs-border-radius-xxl);
    --bs-border-radius-pill: 50rem;
    --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
    --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.25);
    --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.15);

    /* Bootstrap 5 Focus Ring - Dark Mode */
    --bs-focus-ring-width: 0.25rem;
    --bs-focus-ring-opacity: 0.25;
    --bs-focus-ring-color: rgba(248, 108, 43, var(--bs-focus-ring-opacity));

    /* Bootstrap 5 Form Colors - Dark Mode */
    --bs-form-valid-color: #b2e6b3;
    --bs-form-valid-border-color: #b2e6b3;
    --bs-form-invalid-color: #f6b1b1;
    --bs-form-invalid-border-color: #f6b1b1;

    /* Bootstrap 5 Button Close - Dark Mode */
    --bs-btn-close-color: #fff;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='m.235 1.406l4.31 4.31 4.31-4.31a.5.5 0 0 1 .708.708L6.267 5.31l4.31 4.31a.5.5 0 0 1-.708.708L5.56 6.017l-4.31 4.31a.5.5 0 0 1-.708-.708L4.853 5.31.544 1.406a.5.5 0 0 1 .708-.708z'/%3e%3c/svg%3e");
    --bs-btn-close-opacity: 0.7;
    --bs-btn-close-hover-opacity: 0.9;
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(248, 108, 43, 0.25);
    --bs-btn-close-focus-opacity: 1;
    --bs-btn-close-disabled-opacity: 0.25;
    --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);

    /* Bootstrap 5 Navbar - Dark Mode */
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0.5rem;
    --bs-navbar-color: rgba(255, 255, 255, 0.65);
    --bs-navbar-hover-color: rgba(255, 255, 255, 0.8);
    --bs-navbar-disabled-color: rgba(255, 255, 255, 0.3);
    --bs-navbar-active-color: rgba(255, 255, 255, 1);
    --bs-navbar-brand-padding-y: 0.3125rem;
    --bs-navbar-brand-margin-end: 1rem;
    --bs-navbar-brand-font-size: 1.25rem;
    --bs-navbar-brand-color: rgba(255, 255, 255, 1);
    --bs-navbar-brand-hover-color: rgba(255, 255, 255, 1);
    --bs-navbar-nav-link-padding-x: 0.5rem;
    --bs-navbar-toggler-padding-y: 0.25rem;
    --bs-navbar-toggler-padding-x: 0.75rem;
    --bs-navbar-toggler-font-size: 1.25rem;
    --bs-navbar-toggler-icon-bg: 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.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.15);
    --bs-navbar-toggler-border-radius: var(--bs-border-radius);
    --bs-navbar-toggler-focus-width: var(--bs-focus-ring-width);
    --bs-navbar-toggler-transition: box-shadow 0.15s ease-in-out;

    /* Bootstrap 5 Dropdown - Dark Mode */
    --bs-dropdown-zindex: 1000;
    --bs-dropdown-min-width: 10rem;
    --bs-dropdown-padding-x: 0;
    --bs-dropdown-padding-y: 0.5rem;
    --bs-dropdown-spacer: 0.125rem;
    --bs-dropdown-font-size: 1rem;
    --bs-dropdown-color: rgba(255, 255, 255, 0.7);
    --bs-dropdown-bg: #2A3650;
    --bs-dropdown-border-color: rgba(255, 255, 255, 0.125);
    --bs-dropdown-border-radius: var(--bs-border-radius);
    --bs-dropdown-border-width: var(--bs-border-width);
    --bs-dropdown-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
    --bs-dropdown-divider-bg: rgba(255, 255, 255, 0.125);
    --bs-dropdown-divider-margin-y: 0.5rem;
    --bs-dropdown-box-shadow: var(--bs-box-shadow);
    --bs-dropdown-link-color: rgba(255, 255, 255, 0.7);
    --bs-dropdown-link-hover-color: rgba(255, 255, 255, 0.9);
    --bs-dropdown-link-hover-bg: #374462;
    --bs-dropdown-link-active-color: #fff;
    --bs-dropdown-link-active-bg: var(--bs-primary);
    --bs-dropdown-link-disabled-color: rgba(255, 255, 255, 0.5);
    --bs-dropdown-item-padding-x: 1rem;
    --bs-dropdown-item-padding-y: 0.25rem;
    --bs-dropdown-header-color: rgba(255, 255, 255, 0.6);
    --bs-dropdown-header-padding-x: 1rem;
    --bs-dropdown-header-padding-y: 0.5rem;

    /* Bootstrap 5 Pagination - Dark Mode */
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-padding-x-sm: 0.5rem;
    --bs-pagination-padding-y-sm: 0.25rem;
    --bs-pagination-padding-x-lg: 1.5rem;
    --bs-pagination-padding-y-lg: 0.75rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: var(--bs-link-color);
    --bs-pagination-bg: #2A3650;
    --bs-pagination-border-width: var(--bs-border-width);
    --bs-pagination-border-color: rgba(255, 255, 255, 0.125);
    --bs-pagination-border-radius: var(--bs-border-radius);
    --bs-pagination-hover-color: var(--bs-link-hover-color);
    --bs-pagination-hover-bg: #374462;
    --bs-pagination-hover-border-color: rgba(255, 255, 255, 0.125);
    --bs-pagination-focus-color: var(--bs-link-hover-color);
    --bs-pagination-focus-bg: #374462;
    --bs-pagination-focus-box-shadow: var(--bs-focus-ring-color);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
    --bs-pagination-disabled-color: rgba(255, 255, 255, 0.6);
    --bs-pagination-disabled-bg: #2A3650;
    --bs-pagination-disabled-border-color: rgba(255, 255, 255, 0.125);

    /* Bootstrap 5 Card - Dark Mode */
    --bs-card-spacer-y: 1rem;
    --bs-card-spacer-x: 1rem;
    --bs-card-title-spacer-y: 0.5rem;
    --bs-card-title-color: inherit;
    --bs-card-subtitle-color: inherit;
    --bs-card-border-width: var(--bs-border-width);
    --bs-card-border-color: rgba(255, 255, 255, 0.125);
    --bs-card-border-radius: var(--bs-border-radius);
    --bs-card-box-shadow: ;
    --bs-card-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
    --bs-card-cap-padding-y: 0.5rem;
    --bs-card-cap-padding-x: 1rem;
    --bs-card-cap-bg: rgba(42, 54, 80, 0.5);
    --bs-card-cap-color: inherit;
    --bs-card-height: auto;
    --bs-card-color: inherit;
    --bs-card-bg: #2A3650;
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 0.75rem;

    /* Bootstrap 5 Accordion - Dark Mode */
    --bs-accordion-color: rgba(255, 255, 255, 0.7);
    --bs-accordion-bg: #2A3650;
    --bs-accordion-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
    --bs-accordion-border-color: rgba(255, 255, 255, 0.125);
    --bs-accordion-border-width: var(--bs-border-width);
    --bs-accordion-border-radius: var(--bs-border-radius);
    --bs-accordion-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
    --bs-accordion-btn-padding-x: 1.25rem;
    --bs-accordion-btn-padding-y: 1rem;
    --bs-accordion-btn-color: rgba(255, 255, 255, 0.7);
    --bs-accordion-btn-bg: var(--bs-accordion-bg);
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-icon-width: 1.25rem;
    --bs-accordion-btn-icon-transform: rotate(-180deg);
    --bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f86c2b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-focus-border-color: rgba(248, 108, 43, 0.5);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(248, 108, 43, 0.25);
    --bs-accordion-body-padding-x: 1.25rem;
    --bs-accordion-body-padding-y: 1rem;
    --bs-accordion-active-color: var(--bs-primary-text-emphasis);
    --bs-accordion-active-bg: var(--bs-primary-bg-subtle);

    /* Bootstrap 5 Tooltip - Dark Mode */
    --bs-tooltip-zindex: 1080;
    --bs-tooltip-max-width: 200px;
    --bs-tooltip-padding-x: 0.5rem;
    --bs-tooltip-padding-y: 0.25rem;
    --bs-tooltip-margin: ;
    --bs-tooltip-font-size: 0.875rem;
    --bs-tooltip-color: #374462;
    --bs-tooltip-bg: rgba(255, 255, 255, 0.9);
    --bs-tooltip-border-radius: var(--bs-border-radius);
    --bs-tooltip-opacity: 0.9;
    --bs-tooltip-arrow-width: 0.8rem;
    --bs-tooltip-arrow-height: 0.4rem;

    /* Bootstrap 5 Popover - Dark Mode */
    --bs-popover-zindex: 1070;
    --bs-popover-max-width: 276px;
    --bs-popover-font-size: 0.875rem;
    --bs-popover-bg: #2A3650;
    --bs-popover-border-width: var(--bs-border-width);
    --bs-popover-border-color: rgba(255, 255, 255, 0.125);
    --bs-popover-border-radius: var(--bs-border-radius-lg);
    --bs-popover-inner-border-radius: calc(var(--bs-border-radius-lg) - var(--bs-border-width));
    --bs-popover-box-shadow: var(--bs-box-shadow);
    --bs-popover-header-padding-x: 1rem;
    --bs-popover-header-padding-y: 0.5rem;
    --bs-popover-header-font-size: 1rem;
    --bs-popover-header-color: inherit;
    --bs-popover-header-bg: #374462;
    --bs-popover-header-border-color: rgba(255, 255, 255, 0.125);
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: 1rem;
    --bs-popover-body-color: rgba(255, 255, 255, 0.7);
    --bs-popover-arrow-width: 1rem;
    --bs-popover-arrow-height: 0.5rem;
    --bs-popover-arrow-border: var(--bs-popover-border-color);

    /* Bootstrap 5 Toast - Dark Mode */
    --bs-toast-zindex: 1090;
    --bs-toast-padding-x: 0.75rem;
    --bs-toast-padding-y: 0.5rem;
    --bs-toast-spacing: 1.5rem;
    --bs-toast-max-width: 350px;
    --bs-toast-font-size: 0.875rem;
    --bs-toast-color: inherit;
    --bs-toast-bg: rgba(42, 54, 80, 0.95);
    --bs-toast-border-width: var(--bs-border-width);
    --bs-toast-border-color: rgba(255, 255, 255, 0.125);
    --bs-toast-border-radius: var(--bs-border-radius);
    --bs-toast-box-shadow: var(--bs-box-shadow);
    --bs-toast-header-color: rgba(255, 255, 255, 0.6);
    --bs-toast-header-bg: rgba(42, 54, 80, 0.95);
    --bs-toast-header-border-color: rgba(255, 255, 255, 0.125);

    /* Bootstrap 5 Badge - Dark Mode */
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-font-weight: 700;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: var(--bs-border-radius);

    /* Bootstrap 5 Modal - Dark Mode */
    --bs-modal-zindex: 1055;
    --bs-modal-width: 500px;
    --bs-modal-padding: 1rem;
    --bs-modal-margin: 0.5rem;
    --bs-modal-color: inherit;
    --bs-modal-bg: #2A3650;
    --bs-modal-border-color: rgba(255, 255, 255, 0.125);
    --bs-modal-border-width: var(--bs-border-width);
    --bs-modal-border-radius: var(--bs-border-radius-lg);
    --bs-modal-box-shadow: var(--bs-box-shadow-sm);
    --bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - var(--bs-border-width));
    --bs-modal-header-padding-x: 1rem;
    --bs-modal-header-padding-y: 1rem;
    --bs-modal-header-padding: 1rem 1rem;
    --bs-modal-header-border-color: rgba(255, 255, 255, 0.125);
    --bs-modal-header-border-width: var(--bs-border-width);
    --bs-modal-title-line-height: 1.5;
    --bs-modal-footer-gap: 0.5rem;
    --bs-modal-footer-bg: inherit;
    --bs-modal-footer-border-color: rgba(255, 255, 255, 0.125);
    --bs-modal-footer-border-width: var(--bs-border-width);

    /* Bootstrap 5 Alert - Dark Mode */
    --bs-alert-bg: transparent;
    --bs-alert-padding-x: 1rem;
    --bs-alert-padding-y: 1rem;
    --bs-alert-margin-bottom: 1rem;
    --bs-alert-color: inherit;
    --bs-alert-border-color: transparent;
    --bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);
    --bs-alert-border-radius: var(--bs-border-radius);
    --bs-alert-link-color: inherit;

    /* Bootstrap 5 Progress - Dark Mode */
    --bs-progress-height: 1rem;
    --bs-progress-font-size: 0.75rem;
    --bs-progress-bg: #374462;
    --bs-progress-border-radius: var(--bs-border-radius);
    --bs-progress-box-shadow: var(--bs-box-shadow-inset);
    --bs-progress-bar-color: #fff;
    --bs-progress-bar-bg: var(--bs-primary);
    --bs-progress-bar-transition: width 0.6s ease;

    /* Bootstrap 5 List Group - Dark Mode */
    --bs-list-group-color: rgba(255, 255, 255, 0.7);
    --bs-list-group-bg: #2A3650;
    --bs-list-group-border-color: rgba(255, 255, 255, 0.125);
    --bs-list-group-border-width: var(--bs-border-width);
    --bs-list-group-border-radius: var(--bs-border-radius);
    --bs-list-group-item-padding-x: 1rem;
    --bs-list-group-item-padding-y: 0.5rem;
    --bs-list-group-action-color: rgba(255, 255, 255, 0.6);
    --bs-list-group-action-hover-color: rgba(255, 255, 255, 0.9);
    --bs-list-group-action-hover-bg: #374462;
    --bs-list-group-action-active-color: rgba(255, 255, 255, 0.7);
    --bs-list-group-action-active-bg: #374462;
    --bs-list-group-disabled-color: rgba(255, 255, 255, 0.6);
    --bs-list-group-disabled-bg: #2A3650;
    --bs-list-group-active-color: #fff;
    --bs-list-group-active-bg: var(--bs-primary);
    --bs-list-group-active-border-color: var(--bs-primary);

    /* Bootstrap 5 Breadcrumb - Dark Mode */
    --bs-breadcrumb-padding-x: 0;
    --bs-breadcrumb-padding-y: 0;
    --bs-breadcrumb-margin-bottom: 1rem;
    --bs-breadcrumb-bg: ;
    --bs-breadcrumb-border-radius: ;
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.6);
    --bs-breadcrumb-item-padding-x: 0.5rem;
    --bs-breadcrumb-item-active-color: rgba(255, 255, 255, 0.6);

    /* Bootstrap 5 Spinner - Dark Mode */
    --bs-spinner-width: 2rem;
    --bs-spinner-height: 2rem;
    --bs-spinner-vertical-align: -0.125em;
    --bs-spinner-border-width: 0.25em;
    --bs-spinner-animation-speed: 0.75s;
    --bs-spinner-animation-name: spinner-border;

    /* Bootstrap 5 Offcanvas - Dark Mode */
    --bs-offcanvas-zindex: 1045;
    --bs-offcanvas-width: 400px;
    --bs-offcanvas-height: 30vh;
    --bs-offcanvas-padding-x: 1rem;
    --bs-offcanvas-padding-y: 1rem;
    --bs-offcanvas-color: rgba(255, 255, 255, 0.7);
    --bs-offcanvas-bg: #2A3650;
    --bs-offcanvas-border-width: var(--bs-border-width);
    --bs-offcanvas-border-color: rgba(255, 255, 255, 0.125);
    --bs-offcanvas-box-shadow: var(--bs-box-shadow-sm);
    --bs-offcanvas-transition: transform 0.3s ease-in-out;
    --bs-offcanvas-header-padding-x: 1rem;
    --bs-offcanvas-header-padding-y: 1rem;
    --bs-offcanvas-title-line-height: 1.5;

    /* Bootstrap 5 Placeholder - Dark Mode */
    --bs-placeholder-opacity-max: 0.5;
    --bs-placeholder-opacity-min: 0.2;
}

/* ========================================
   Enhanced Notification Dropdown Styling
======================================== */

/* Modern notification dropdown container */
.notification-dropdown-enhanced {
    position: absolute;
    right: 0;
    top: 100%;
    width: 380px;
    max-height: 500px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.onhover-dropdown:hover .notification-dropdown-enhanced {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Enhanced notification header */
.notification-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    margin: 0;
}

.notification-count {
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #667eea 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Enhanced notification list container */
.notification-list-container {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.notification-list-container::-webkit-scrollbar {
    width: 4px;
}

.notification-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.notification-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Modern notification item styling */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 24px;
    margin: 0 8px 2px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.notification-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(159, 122, 234, 0.05) 100%);
    border-color: rgba(102, 126, 234, 0.1);
    transform: translateX(2px);
}

.notification-item:active {
    transform: translateX(1px) scale(0.99);
}

/* Enhanced avatar styling */
.notification-avatar {
    position: relative;
    margin-right: 14px;
    flex-shrink: 0;
}

.avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.notification-indicator.unread {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    box-shadow: 0 2px 8px rgba(238, 90, 82, 0.4);
    animation: pulseUnread 2s infinite;
}

.notification-indicator.read {
    background: #e2e8f0;
}

@keyframes pulseUnread {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Enhanced notification content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-user {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-message {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.notification-time i {
    margin-right: 4px;
    opacity: 0.7;
}

/* Enhanced notification actions */
.notification-actions {
    margin-left: 12px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.notification-item:hover .notification-actions {
    opacity: 0.5;
}

.notification-actions i {
    font-size: 12px;
    color: #94a3b8;
}

/* Enhanced empty state */
.notification-empty {
    text-align: center;
    padding: 40px 24px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(159, 122, 234, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 28px;
    color: var(--bs-primary);
    opacity: 0.6;
}

.empty-text {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.empty-subtext {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Enhanced load more section */
.notification-load-more {
    padding: 16px 24px 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(248, 250, 252, 0.5);
}

.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 13px;
}

.loading-text {
    font-weight: 500;
}

.load-more-btn {
    width: 100%;
    padding: 10px 16px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    color: var(--bs-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced notification footer */
.notification-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bs-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.view-all-link:hover {
    background: #5a67d8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.view-all-link:active {
    transform: translateY(0);
}

/* Dark mode support */
.dark .notification-dropdown-enhanced {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.dark .notification-header {
    background: linear-gradient(135deg, #1f1f1f 0%, #1a1a1a 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .notification-title {
    color: #ffffff;
}

.dark .notification-item {
    border-color: transparent;
}

.dark .notification-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(159, 122, 234, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.2);
}

.dark .notification-user {
    color: #ffffff;
}

.dark .notification-message {
    color: #a0a0a0;
}

.dark .notification-time {
    color: #737373;
}

.dark .notification-actions i {
    color: #737373;
}

.dark .empty-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(159, 122, 234, 0.15) 100%);
}

.dark .empty-text {
    color: #ffffff;
}

.dark .empty-subtext {
    color: #a0a0a0;
}

.dark .notification-load-more {
    background: rgba(31, 31, 31, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .loading-state {
    color: #a0a0a0;
}

.dark .load-more-btn {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    color: var(--bs-primary);
}

.dark .load-more-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.dark .notification-footer {
    background: linear-gradient(135deg, #1f1f1f 0%, #1a1a1a 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-dropdown-enhanced {
        width: 350px;
        right: -50px;
        max-height: 420px;
    }

    .notification-item {
        padding: 14px 20px;
    }

    .avatar-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .notification-dropdown-enhanced {
        width: 320px;
        right: -80px;
    }

    .notification-header,
    .notification-footer {
        padding: 16px 20px;
    }

    .notification-item {
        padding: 12px 20px;
        margin: 0 4px 2px;
    }

    .avatar-img {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .notification-user {
        font-size: 13px;
    }

    .notification-message {
        font-size: 12px;
    }
}

/* ========================================
   Enhanced User Profile Component Styling
======================================== */

/* Avatar styling */
.user-profile .avatar-xl {
    width: 120px;
    height: 120px;
    border-radius: 50% !important;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.user-profile .avatar-xl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.user-profile .avatar-xl:hover img {
    transform: scale(1.05);
}

/* Header gradient styling */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info)) !important;
    position: relative;
    overflow: hidden;
}

.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><circle cx="20" cy="20" r="2" fill="white"/><circle cx="80" cy="40" r="1.5" fill="white"/><circle cx="40" cy="80" r="1" fill="white"/><circle cx="90" cy="70" r="0.8" fill="white"/><circle cx="10" cy="90" r="1.2" fill="white"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-10px) translateX(5px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--bs-success), var(--bs-info)) !important;
    position: relative;
    overflow: hidden;
}

/* Section title styling */
.user-profile .section-title {
    color: var(--bs-dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bs-primary);
    margin-bottom: 1rem !important;
}

/* Info card styling */
.user-profile .info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.user-profile .info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.user-profile .info-card:hover::before {
    left: 100%;
}

.user-profile .info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary) !important;
}

.user-profile .info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(248, 108, 43, 0.1);
    transition: all 0.3s ease;
}

.user-profile .info-card:hover .info-icon {
    transform: scale(1.1);
    background: rgba(248, 108, 43, 0.2);
}

/* Balance card styling */
.user-profile .balance-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.user-profile .balance-bg-icon {
    font-size: 4rem;
    opacity: 0.1;
    position: absolute;
    top: -10px;
    right: -10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.1;
    }
}

/* Statistics card styling */
.user-profile .stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.user-profile .stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: transparent !important;
}

.user-profile .stat-icon {
    transition: all 0.3s ease;
}

.user-profile .stat-card:hover .stat-icon {
    transform: scale(1.2);
}

.user-profile .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Action buttons styling */
.user-profile .hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-profile .hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.user-profile .btn {
    border-radius: 2rem !important;
    padding: 0.5rem 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-profile .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.user-profile .btn:hover::before {
    width: 300px;
    height: 300px;
}

.user-profile .btn i {
    position: relative;
    z-index: 1;
}

/* Badge styling */
.user-profile .badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem !important;
    position: relative;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-profile .avatar-xl {
        width: 100px;
        height: 100px;
    }

    .user-profile .stat-number {
        font-size: 1.25rem;
    }

    .user-profile .info-card {
        margin-bottom: 1rem;
    }

    .user-profile .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .user-profile .avatar-xl {
        width: 80px;
        height: 80px;
    }

    .user-profile .stat-number {
        font-size: 1rem;
    }

    .user-profile .section-title {
        font-size: 1rem;
    }

    .user-profile .btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
        margin: 0.2rem;
    }

    .user-profile .info-icon {
        width: 35px;
        height: 35px;
    }
}

/* Dark mode support */
.dark .user-profile .info-card {
    background: rgba(55, 68, 98, 0.8);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .user-profile .info-card:hover {
    border-color: var(--bs-primary) !important;
}

.dark .user-profile .stat-card {
    background: rgba(55, 68, 98, 0.9);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .user-profile .section-title {
    color: rgba(255, 255, 255, 0.9);
}

/* Animation for loading states */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-profile .info-card,
.user-profile .stat-card,
.user-profile .balance-card {
    animation: fadeInUp 0.6s ease-out;
}

.user-profile .info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.user-profile .info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.user-profile .stat-card:nth-child(1) {
    animation-delay: 0.3s;
}

.user-profile .stat-card:nth-child(2) {
    animation-delay: 0.4s;
}

.user-profile .stat-card:nth-child(3) {
    animation-delay: 0.5s;
}

.user-profile .stat-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* ========================================
   Compact User Profile Styles
======================================== */

/* Compact Avatar */
.user-profile .avatar-lg {
    width: 70px;
    height: 70px;
    border-radius: 50% !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.user-profile .avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Compact Info Cards */
.user-profile .info-card-compact {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    min-height: 55px;
}

.user-profile .info-card-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary) !important;
}

/* Compact Balance Card */
.user-profile .balance-card-compact {
    background: linear-gradient(135deg, var(--bs-success), var(--bs-info)) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-profile .balance-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Compact Statistics Cards */
.user-profile .stat-card-compact {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    min-height: 65px;
}

.user-profile .stat-card-compact:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: transparent !important;
}

/* Font Size Classes */
.fs-7 {
    font-size: 0.8rem !important;
}

.fs-8 {
    font-size: 0.7rem !important;
}

/* Compact Button Styles */
.user-profile .btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 1rem !important;
}

/* Responsive Adjustments for Compact Layout */
@media (max-width: 768px) {
    .user-profile .avatar-lg {
        width: 60px;
        height: 60px;
    }

    .user-profile .info-card-compact {
        min-height: 50px;
    }

    .user-profile .balance-card-compact {
        min-height: 75px;
    }

    .user-profile .stat-card-compact {
        min-height: 60px;
    }

    .fs-7 {
        font-size: 0.75rem !important;
    }

    .fs-8 {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 576px) {
    .user-profile .avatar-lg {
        width: 50px;
        height: 50px;
    }

    .user-profile .info-card-compact,
    .user-profile .stat-card-compact {
        min-height: 45px;
    }

    .user-profile .balance-card-compact {
        min-height: 65px;
    }

    .user-profile h4 {
        font-size: 1.1rem;
    }

    .fs-7 {
        font-size: 0.7rem !important;
    }

    .fs-8 {
        font-size: 0.6rem !important;
    }
}

/* Dark Mode Support for Compact Layout */
.dark .user-profile .info-card-compact,
.dark .user-profile .stat-card-compact {
    background: rgba(55, 68, 98, 0.9);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .user-profile .info-card-compact:hover,
.dark .user-profile .stat-card-compact:hover {
    border-color: var(--bs-primary) !important;
}

/* ========================================
   Side-by-Side User Profile Layout
======================================== */

/* Enhanced Avatar for Side Layout */
.user-profile .avatar-xl {
    width: 100px;
    height: 100px;
    border-radius: 50% !important;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.user-profile .avatar-xl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.user-profile .avatar-xl:hover img {
    transform: scale(1.05);
}

/* Section Title Compact */
.user-profile .section-title-compact {
    color: var(--bs-dark);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--bs-primary);
    margin-bottom: 0.75rem !important;
}

/* Enhanced Info Cards for Side Layout */
.user-profile .info-card-compact {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}

.user-profile .info-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.user-profile .info-card-compact:hover::before {
    left: 100%;
}

.user-profile .info-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--bs-primary) !important;
}

/* Enhanced Statistics Cards */
.user-profile .stat-card-compact {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    min-height: 90px;
    position: relative;
    overflow: hidden;
}

.user-profile .stat-card-compact:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: transparent !important;
}

.user-profile .stat-card-compact:hover i {
    transform: scale(1.1);
}

/* Balance Card for Side Layout */
.user-profile .balance-card-compact {
    background: linear-gradient(135deg, var(--bs-success), var(--bs-info)) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.user-profile .balance-card-compact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.user-profile .balance-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments for Side Layout */
@media (max-width: 992px) {
    .user-profile .avatar-xl {
        width: 80px;
        height: 80px;
    }

    .user-profile .balance-card-compact {
        min-height: 85px;
    }

    .user-profile .stat-card-compact {
        min-height: 80px;
    }
}

@media (max-width: 768px) {
    .user-profile .avatar-xl {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem !important;
    }

    .user-profile .info-card-compact {
        min-height: 60px;
    }

    .user-profile .balance-card-compact {
        min-height: 75px;
        margin-bottom: 1rem;
    }

    .user-profile .stat-card-compact {
        min-height: 70px;
    }

    .user-profile .section-title-compact {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {

    /* Stack vertically on mobile */
    .user-profile .row>.col-lg-3,
    .user-profile .row>.col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .user-profile .avatar-xl {
        width: 60px;
        height: 60px;
    }

    .user-profile .balance-card-compact {
        min-height: 65px;
    }

    .user-profile .stat-card-compact {
        min-height: 65px;
    }
}

/* Dark Mode Support for Side Layout */
.dark .user-profile .section-title-compact {
    color: rgba(255, 255, 255, 0.9);
    border-color: var(--bs-primary);
}

.dark .user-profile .info-card-compact,
.dark .user-profile .stat-card-compact {
    background: rgba(55, 68, 98, 0.95);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .user-profile .info-card-compact:hover,
.dark .user-profile .stat-card-compact:hover {
    border-color: var(--bs-primary) !important;
    background: rgba(55, 68, 98, 1);
}

/* User Details Tabs Enhancement */
.custom-tab-1 {
    margin-top: 1.5rem;
}

/* ========================================
   Enhanced Dark Mode Support for User Profile
======================================== */

/* Main card dark mode styling */
body.dark-only .user-profile .card {
    background: rgba(35, 45, 65, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

body.dark-only .user-profile .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

/* Card header and footer dark mode */
body.dark-only .user-profile .card-footer {
    background: rgba(25, 35, 55, 0.9) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Text colors for dark mode */
body.dark-only .user-profile h4,
body.dark-only .user-profile .h4,
body.dark-only .user-profile .h5,
body.dark-only .user-profile .h6,
body.dark-only .user-profile .fw-bold {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.dark-only .user-profile .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-only .user-profile small,
body.dark-only .user-profile .fs-7,
body.dark-only .user-profile .fs-8 {
    color: rgba(255, 255, 255, 0.75) !important;
}

body.dark-only .user-profile .fw-semibold {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Info cards dark mode - better contrast */
body.dark-only .user-profile .info-card-compact {
    background: rgba(45, 55, 75, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-only .user-profile .info-card-compact:hover {
    background: rgba(55, 65, 85, 0.98) !important;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

/* Statistics cards dark mode */
body.dark-only .user-profile .stat-card-compact {
    background: rgba(45, 55, 75, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-only .user-profile .stat-card-compact:hover {
    background: rgba(55, 65, 85, 0.98) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Balance card - keep gradient but adjust for dark mode */
body.dark-only .user-profile .balance-card-compact {
    background: linear-gradient(135deg,
            rgba(40, 167, 69, 0.9),
            rgba(23, 162, 184, 0.9)) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

body.dark-only .user-profile .balance-card-compact:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
}

/* Badge colors for dark mode */
body.dark-only .user-profile .badge {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.dark-only .user-profile .bg-light-primary {
    background: rgba(var(--bs-primary-rgb), 0.25) !important;
}

body.dark-only .user-profile .bg-light-success {
    background: rgba(40, 167, 69, 0.25) !important;
}

body.dark-only .user-profile .bg-light-danger {
    background: rgba(220, 53, 69, 0.25) !important;
}

body.dark-only .user-profile .bg-light-info {
    background: rgba(23, 162, 184, 0.25) !important;
}

body.dark-only .user-profile .bg-light-warning {
    background: rgba(255, 193, 7, 0.25) !important;
}

/* Text colors for badges */
body.dark-only .user-profile .txt-primary {
    color: #7c3aed !important;
}

body.dark-only .user-profile .txt-success {
    color: #10b981 !important;
}

body.dark-only .user-profile .txt-danger {
    color: #ef4444 !important;
}

body.dark-only .user-profile .txt-info {
    color: #06b6d4 !important;
}

body.dark-only .user-profile .txt-warning {
    color: #f59e0b !important;
}

/* Button styling for dark mode */
body.dark-only .user-profile .btn-outline-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

body.dark-only .user-profile .btn-outline-success:hover {
    background: #10b981 !important;
    color: white !important;
}

body.dark-only .user-profile .btn-outline-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

body.dark-only .user-profile .btn-outline-warning:hover {
    background: #f59e0b !important;
    color: #1f2937 !important;
}

body.dark-only .user-profile .btn-outline-info {
    border-color: #06b6d4 !important;
    color: #06b6d4 !important;
}

body.dark-only .user-profile .btn-outline-info:hover {
    background: #06b6d4 !important;
    color: white !important;
}

/* Icon colors for dark mode */
body.dark-only .user-profile i.fa,
body.dark-only .user-profile i.fas {
    color: inherit;
}

/* Specific icon color overrides */
body.dark-only .user-profile i.txt-primary {
    color: #7c3aed !important;
}

body.dark-only .user-profile i.txt-success {
    color: #10b981 !important;
}

body.dark-only .user-profile i.txt-info {
    color: #06b6d4 !important;
}

body.dark-only .user-profile i.txt-warning {
    color: #f59e0b !important;
}

/* Border adjustments for dark mode */
body.dark-only .user-profile .border,
body.dark-only .user-profile .border-light {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Verification badge styling */
body.dark-only .user-profile .position-absolute .badge {
    background: #10b981 !important;
    border: 2px solid rgba(35, 45, 65, 0.95) !important;
}

/* ========================================
   Light Mode Enhancements for Better Visibility
======================================== */

/* Enhanced light mode colors for better contrast */
body.light .user-profile .card {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

body.light .user-profile .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Better text contrast in light mode */
body.light .user-profile .text-muted {
    color: #6c757d !important;
}

body.light .user-profile h4,
body.light .user-profile .h4,
body.light .user-profile .h5,
body.light .user-profile .h6,
body.light .user-profile .fw-bold {
    color: #2c3e50 !important;
}

body.light .user-profile .fw-semibold {
    color: #34495e !important;
}

/* Enhanced info cards for light mode */
body.light .user-profile .info-card-compact {
    background: rgba(248, 249, 250, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body.light .user-profile .info-card-compact:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced statistics cards for light mode */
body.light .user-profile .stat-card-compact {
    background: rgba(248, 249, 250, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body.light .user-profile .stat-card-compact:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Balance card light mode enhancement */
body.light .user-profile .balance-card-compact {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

body.light .user-profile .balance-card-compact:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Better badge contrast in light mode */
body.light .user-profile .bg-light-primary {
    background: rgba(var(--bs-primary-rgb), 0.15) !important;
}

body.light .user-profile .bg-light-success {
    background: rgba(40, 167, 69, 0.15) !important;
}

body.light .user-profile .bg-light-danger {
    background: rgba(220, 53, 69, 0.15) !important;
}

body.light .user-profile .bg-light-info {
    background: rgba(23, 162, 184, 0.15) !important;
}

body.light .user-profile .bg-light-warning {
    background: rgba(255, 193, 7, 0.15) !important;
}

.custom-tab-1 .nav-pills {
    background: rgba(var(--bs-light-rgb), 0.1);
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-tab-1 .nav-pills .nav-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.custom-tab-1 .nav-pills .nav-link:not(.active) {
    background: transparent;
    color: var(--bs-body-color);
    border: 1px solid transparent;
}

.custom-tab-1 .nav-pills .nav-link:not(.active):hover {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border-color: rgba(var(--bs-primary-rgb), 0.2);
    transform: translateY(-2px);
}

.custom-tab-1 .nav-pills .nav-link.active {
    background: var(--bs-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.4);
    transform: translateY(-2px);
}

.custom-tab-1 .nav-pills .nav-link i {
    font-size: 1.1em;
}

/* Sub-tabs Enhancement */
.custom-tab-2 .nav-tabs {
    border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.1);
    margin-bottom: 1rem;
}

.custom-tab-2 .nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 0.75rem 1rem;
    margin-right: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--bs-body-color);
}

.custom-tab-2 .nav-tabs .nav-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border-color: transparent transparent rgba(var(--bs-primary-rgb), 0.3);
}

.custom-tab-2 .nav-tabs .nav-link.active {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
    position: relative;
}

.custom-tab-2 .nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bs-primary);
}

/* Tab Content Enhancement */
.tab-content {
    padding-top: 1rem;
}

.tab-pane {
    animation: fadeInUp 0.3s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Support */
.dark .custom-tab-1 .nav-pills {
    background: rgba(255, 255, 255, 0.05);
}

.dark .custom-tab-1 .nav-pills .nav-link:not(.active):hover {
    background: rgba(var(--bs-primary-rgb), 0.2);
}

.dark .custom-tab-2 .nav-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark .custom-tab-2 .nav-tabs .nav-link:hover {
    background: rgba(var(--bs-primary-rgb), 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-tab-1 .nav-pills .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin: 0 0.1rem;
    }

    .custom-tab-2 .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        margin-right: 0.25rem;
    }
}
