:root {
    --primary-color: #ff9900;
    --secondary-color: #1e1e1e;
    --bs-secondary-rgb: 112, 112, 112;
    --background-dark: #0a0a0a;
    --surface-dark: #1e1e1e;
    --surface-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(0, 0, 0, 0.2);

    --bs-nav-link-font-size: 14px;
    --bs-navbar-brand-margin-end: 2.5rem;

    --bs-primary-rgb: 255, 153, 0;

    --bs-table-bg: #FFFFFF;

    --bg-product: rgba(255, 153, 0, 0.05);

    --bg-dark-medium: #2a2a2a;
    --bg-dark-light: #3a3a3a;
    --bg-dark-table: #212529;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--background-dark) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    position: relative;
    z-index: 10;
}

/* Logos */
.logodark {
    display: inline-block;
}

.logolight {
    display: none;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFF;
    font-weight: 700;
    transition: all 0.2s ease-in-out;
    font-size: 14px;
}

.btn-primary:hover {
    background-color: #eab308;
    border-color: #eab308;
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
}

.card {
    background-color: var(--surface-dark);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(8px);
}

/* Input aesthetics matching Tailwind */
.form-control,
.input-group-text {
    background-color: var(--input-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.875rem;
}

.form-control::placeholder {
    color: #6b7280 !important;
}

.form-control:focus {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
}

.input-group:focus-within .input-group-text {
    transition: all 0s;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

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

footer .small,
footer small {
    font-size: 0.75rem;
}

.cursor-pointer {
    cursor: pointer;
}

.container-1600 {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@keyframes loading-stripes {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 30px 0;
    }
}

.progress-bar {
    transition: width 0.5s linear, background-color 0.5s ease !important;
}

.yield_bar {
    height: 6px !important;
    border-radius: 0 !important;
}

.yield_bar .progress-bar {
    border-radius: 0 !important;
    box-shadow: 0 0 10px rgba(var(--bs-primary-rgb), 0.2);
}

.progress-bar-loading {
    background-image: linear-gradient(45deg,
            rgba(255, 153, 0, 1) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 153, 0, 1) 50%,
            rgba(255, 153, 0, 1) 75%,
            transparent 75%,
            transparent) !important;
    background-size: 30px 30px !important;
    animation: loading-stripes 2s linear infinite !important;
    background-color: transparent;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-overlay span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid;
    border-color: #FF9900 #0000;
    animation: spinner-sun 1s infinite;
}

@keyframes spinner-sun {
    to {
        transform: rotate(.5turn);
    }
}

.spinner2 {
    text-align: center;
    position: relative;
}

.spinner2 span:first-child {
    display: inline-block;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid;
    border-color: #FF9900 #0000;
    animation: spinner-sun 1s infinite;
}

.spinner2 span:last-child {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FF9900;
    font-weight: bold;
    font-size: 12px;
}

.bg-dark-medium {
    background-color: #2a2a2a;
}

.bg-dark-light {
    background-color: #3a3a3a;
}

.bg-dark-table {
    background-color: #212529;
}

.label-fixed {
    display: inline-block;
    width: 80px;
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

.text-xs-value {
    font-size: 12px;
    font-weight: 500;
    color: #e5e7eb;
}

.nav-tabs {
    background-color: #121212;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: white;
    background-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background-color: rgba(255, 153, 0, 0.1);
}

.bg-primary.bg-opacity-20 {
    background-color: rgba(255, 153, 0, 0.2) !important;
}

.btn-check:checked+.btn {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.2);
}

.smaller {
    font-size: 0.75rem;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.ls-wide {
    letter-spacing: 0.08em;
}

.shadow-success {
    box-shadow: 0 0 8px rgba(25, 135, 84, 0.6);
}

.shadow-danger {
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.6);
}

.shadow-warning {
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

.shadow-primary {
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.3);
}

.hover-bg-dark:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.border-dashed {
    border-style: dashed !important;
}

.custom-range::-webkit-slider-thumb {
    background: #FF9900;
}

.custom-range::-moz-range-thumb {
    background: #FF9900;
}

.group-hover-primary {
    transition: all 0.2s;
}

button.group:hover .group-hover-primary span {
    color: var(--primary-color) !important;
}

button.group:hover {
    border-color: rgba(255, 153, 0, 0.4) !important;
}

.leading-relaxed {
    line-height: 1.6;
}

.bg-product {
    background-color: rgba(255, 153, 0, 0.05);
}

.product-item button {
    background-color: var(--background-dark);
}

.product-item .product-check {
    display: none;
}

.product-item.selected button {
    background-color: var(--bg-product);
    border-width: 2px !important;
    border-color: var(--primary-color) !important;
}

.product-item.selected .product-check {
    display: block;
}

.product-item .product-icon {
    width: 48px;
    height: 48px;
}

.product-item.selected .product-icon {
    background-color: rgba(255, 153, 0, 0.2) !important;
}

.product-item.selected .product-icon span {
    color: var(--primary-color) !important;
}

/* Solve for options */
.solve-item label {
    cursor: pointer;
}

.solve-item .btn-check+label {
    border-width: 1px !important;
    border-color: var(--secondary-color) !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease;
}

.solve-item .btn-check:checked+label {
    border-color: var(--primary-color) !important;
    background-color: var(--background-dark) !important;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.1) !important;
}

.solve-item .custom-radio {
    width: 18px;
    height: 18px;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.solve-item .btn-check:checked+label .custom-radio {
    border-color: var(--primary-color) !important;
}

.solve-item .btn-check:checked+label .custom-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.solve-item .btn-check:checked+label .solve-label {
    color: white !important;
    font-weight: bold !important;
}

/* Ticker Search Results */
.ticker-results {
    background-color: var(--surface-dark) !important;
    border: 1px solid var(--surface-border) !important;
    backdrop-filter: blur(12px);
    z-index: 1100 !important;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

.asset-tag {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

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

.hover-bg-dark-light:hover .text-secondary {
    color: #FFF !important;
}

.ticker-item {
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.ticker-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-left-color: var(--primary-color) !important;
}

.ticker-item:last-child {
    border-bottom: none !important;
}

.ticker-results::-webkit-scrollbar {
    width: 4px;
}

.ticker-results::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.issuer-results tr:first-child .yield_solved,
.issuer-results .issuer-row:first-child .yield_solved {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.issuer-results tr:not(:first-child) .yield_solved,
.issuer-results .issuer-row:not(:first-child) .yield_solved {
    font-weight: normal;
    color: var(--secondary-color);
}

.issuer-item {
    cursor: pointer !important;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    border-bottom: 1px solid #495057;
}

.issuer-innactive {
    border-left: 4px solid transparent;
    border-bottom: 1px solid #495057;
    cursor: not-allowed;
}

.issuer-item img,
.issuer-innactive img {
    filter: brightness(0) invert(72%) sepia(8%) saturate(350%) hue-rotate(182deg) brightness(89%) contrast(88%);
}

.issuer-item:has(.issuer-checkbox:checked) img {
    filter: brightness(0) invert(1);
}

.issuer-item:has(.issuer-checkbox:checked) {
    border-left-color: var(--primary-color) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.issuer-checkbox {
    display: none;
}

/* Tabla y rows de resultados y animaciones */
.issuer-results tr,
.issuer-results .issuer-row {
    border-bottom: 1px solid #495057;
    transition: background-color 0.3s ease;
}

.issuer-results tr.is-moving,
.issuer-results .issuer-row.is-moving {
    z-index: 10;
    position: relative;
    pointer-events: none;
}

.issuer-results tr.is-elevated,
.issuer-results .issuer-row.is-elevated {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background-color: #2a2a2a !important;
    border-radius: 4px;
}

.issuer-results tr:last-child td,
.issuer-results .issuer-row:last-child {
    border-bottom: none !important;
}

#createquote aside {
    width: 300px;
}

/* Select2 Defaults */
.select2-container--default .select2-selection--single {
    background-color: var(--input-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(var(--bs-secondary-rgb), var(--bs-border-opacity)) !important;
    color: #fff !important;
    border-radius: 6px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    line-height: 40px !important;
    padding-left: 12px !important;
    font-size: 0.875rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9ca3af transparent transparent transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #9ca3af transparent !important;
}

.select2-dropdown {
    background-color: #1e1e1e !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0.375rem !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
}

.select2-container--default .select2-search--dropdown {
    padding: 6px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 0.25rem !important;
    padding: 6px 10px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(255, 153, 0, 0.2) !important;
    color: #fff !important;
}

.select2-results__option {
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
    color: #e5e7eb !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #9ca3af !important;
    font-size: 1.2rem !important;
    margin-right: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: var(--primary-color) !important;
}


/* =====================================================
   LIGHT THEME OVERRIDES (ONLY APPLIED WHEN .light)
   ===================================================== */

body.light,
[data-bs-theme="light"] body {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

.light .logodark,
[data-bs-theme="light"] .logodark,
body.light .logodark {
    display: none !important;
}

.light .logolight,
[data-bs-theme="light"] .logolight,
body.light .logolight {
    display: inline-block !important;
}

body.light .text-white,
[data-bs-theme="light"] .text-white,
body.light .text-light,
[data-bs-theme="light"] .text-light {
    color: #1e293b !important;
}

body.light h1,
body.light h2,
body.light h3,
body.light h4,
body.light h5,
body.light h6,
[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h5,
[data-bs-theme="light"] h6 {
    color: #0f172a;
}

body.light .bg-dark,
[data-bs-theme="light"] .bg-dark {
    background-color: #FFFFFF !important;
}

body.light .bg-special,
[data-bs-theme="light"] .bg-special {
    background-color: #f0f0f0 !important;
}

body.light .bg-special2,
[data-bs-theme="light"] .bg-special2 {
    background-color: #f0f0f0 !important;
}

body.light .card,
[data-bs-theme="light"] .card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light .bg-dark-medium,
[data-bs-theme="light"] .bg-dark-medium {
    background-color: #f8fafc !important;
}

body.light .bg-dark-light,
[data-bs-theme="light"] .bg-dark-light {
    background-color: rgb(240, 240, 240) !important;
}

body.light .bg-dark-table,
[data-bs-theme="light"] .bg-dark-table {
    background-color: #ffffff !important;
}

body.light .table-dark,
[data-bs-theme="light"] .table-dark {
    --bs-table-bg: #ffffff !important;
    --bs-table-color: #1e293b !important;
    --bs-table-border-color: #e2e8f0 !important;
    --bs-table-hover-bg: #f8fafc !important;
    --bs-table-hover-color: #0f172a !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
}

body.light .table-dark th,
body.light .table-dark td,
[data-bs-theme="light"] .table-dark th,
[data-bs-theme="light"] .table-dark td {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border-color: #e2e8f0 !important;
}

body.light .table-dark thead th,
[data-bs-theme="light"] .table-dark thead th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light .border-secondary,
[data-bs-theme="light"] .border-secondary {
    border-color: #e2e8f0 !important;
}

body.light .border-secondary-subtle,
[data-bs-theme="light"] .border-secondary-subtle {
    border-color: #f1f5f9 !important;
}

body.light .label-fixed,
[data-bs-theme="light"] .label-fixed {
    color: #64748b !important;
}

body.light .text-xs-value,
[data-bs-theme="light"] .text-xs-value {
    color: #334155 !important;
}

body.light .form-control,
body.light .input-group-text,
[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .input-group-text {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

body.light .form-control::placeholder,
[data-bs-theme="light"] .form-control::placeholder {
    color: #94a3b8 !important;
}

body.light .form-control:focus,
[data-bs-theme="light"] .form-control:focus {
    background-color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2) !important;
}

body.light .btn-outline-secondary,
[data-bs-theme="light"] .btn-outline-secondary {
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    background-color: transparent !important;
}

body.light .btn-outline-secondary:hover,
[data-bs-theme="light"] .btn-outline-secondary:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

body.light .btn-dark,
[data-bs-theme="light"] .btn-dark {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

body.light .btn-dark:hover,
[data-bs-theme="light"] .btn-dark:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

body.light .btn-check:checked+.btn.btn-dark,
[data-bs-theme="light"] .btn-check:checked+.btn.btn-dark {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

body.light .nav-tabs,
[data-bs-theme="light"] .nav-tabs {
    background-color: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light .nav-tabs .nav-link,
[data-bs-theme="light"] .nav-tabs .nav-link {
    color: #64748b !important;
}

body.light .nav-tabs .nav-link:hover,
[data-bs-theme="light"] .nav-tabs .nav-link:hover {
    color: #0f172a !important;
}

body.light .nav-tabs .nav-link.active,
[data-bs-theme="light"] .nav-tabs .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color) !important;
    background-color: rgba(255, 153, 0, 0.1) !important;
}

body.light .product-item button,
[data-bs-theme="light"] .product-item button {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

body.light .product-item.selected button,
[data-bs-theme="light"] .product-item.selected button {
    background-color: rgba(255, 153, 0, 0.08) !important;
    border-color: var(--primary-color) !important;
}

body.light .solve-item .btn-check+label,
[data-bs-theme="light"] .solve-item .btn-check+label {
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #334155 !important;
}

body.light .solve-item .btn-check:checked+label,
[data-bs-theme="light"] .solve-item .btn-check:checked+label {
    border-color: var(--primary-color) !important;
    background-color: #fff8ec !important;
}

body.light .solve-item .btn-check:checked+label .solve-label,
[data-bs-theme="light"] .solve-item .btn-check:checked+label .solve-label {
    color: #0f172a !important;
}

body.light .solve-item .custom-radio,
[data-bs-theme="light"] .solve-item .custom-radio {
    border-color: #cbd5e1 !important;
}

body.light .ticker-results,
[data-bs-theme="light"] .ticker-results {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

body.light .asset-tag,
[data-bs-theme="light"] .asset-tag {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

body.light .ticker-item:hover,
[data-bs-theme="light"] .ticker-item:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-left-color: var(--primary-color) !important;
}

body.light .hover-bg-dark:hover,
[data-bs-theme="light"] .hover-bg-dark:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

body.light .issuer-results,
[data-bs-theme="light"] .issuer-results {
    background-color: #ffffff !important;
}

body.light .issuer-results tr,
body.light .issuer-results .issuer-row,
[data-bs-theme="light"] .issuer-results tr,
[data-bs-theme="light"] .issuer-results .issuer-row {
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light .issuer-results tr.is-elevated,
body.light .issuer-results .issuer-row.is-elevated,
[data-bs-theme="light"] .issuer-results tr.is-elevated,
[data-bs-theme="light"] .issuer-results .issuer-row.is-elevated {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    background-color: #ffffff !important;
}

body.light .issuer-item,
[data-bs-theme="light"] .issuer-item {
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light .issuer-innactive,
[data-bs-theme="light"] .issuer-innactive {
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light .issuer-item img,
body.light .issuer-innactive img,
[data-bs-theme="light"] .issuer-item img,
[data-bs-theme="light"] .issuer-innactive img {
    filter: none !important;
}

body.light .issuer-item:has(.issuer-checkbox:checked),
[data-bs-theme="light"] .issuer-item:has(.issuer-checkbox:checked) {
    background-color: rgba(255, 153, 0, 0.08) !important;
}

body.light .select2-container--default .select2-selection--single,
[data-bs-theme="light"] .select2-container--default .select2-selection--single {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

body.light .select2-container--default .select2-selection--single .select2-selection__rendered,
[data-bs-theme="light"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
}

body.light .select2-container--default .select2-selection--single .select2-selection__arrow b,
[data-bs-theme="light"] .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #64748b transparent transparent transparent !important;
}

body.light .select2-dropdown,
[data-bs-theme="light"] .select2-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

body.light .select2-container--default .select2-search--dropdown .select2-search__field,
[data-bs-theme="light"] .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

body.light .select2-results__option,
[data-bs-theme="light"] .select2-results__option {
    color: #334155 !important;
}

body.light .select2-container--default .select2-results__option[aria-selected=true],
[data-bs-theme="light"] .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(255, 153, 0, 0.15) !important;
    color: #1e293b !important;
}

body.light ::-webkit-scrollbar-track,
[data-bs-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body.light ::-webkit-scrollbar-thumb,
[data-bs-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

body.light .navbar .nav-link.text-white {
    color: var(--primary-color) !important;
}

/* Navbar dropdown menu styles */
.navbar .dropdown-menu {
    background-color: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 190px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.navbar .dropdown-item {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.15s ease-in-out;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: rgba(255, 153, 0, 0.12);
    color: var(--primary-color);
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.navbar .dropdown-item.active .material-icons-round,
.navbar .dropdown-item:active .material-icons-round {
    color: #ffffff;
}

body.light .navbar .dropdown-menu,
[data-bs-theme="light"] .navbar .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body.light .navbar .dropdown-item,
[data-bs-theme="light"] .navbar .dropdown-item {
    color: #475569;
}

body.light .navbar .dropdown-item:hover,
[data-bs-theme="light"] .navbar .dropdown-item:focus {
    background-color: rgba(255, 153, 0, 0.1);
    color: var(--primary-color);
}

body.light .navbar .dropdown-item.active,
[data-bs-theme="light"] .navbar .dropdown-item:active {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Custom Switches & Issuer Config */
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.3em;
    cursor: pointer;
    background-color: #374151;
    border-color: #4b5563;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.form-switch .form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 0, 0.2);
}

body.light .form-switch .form-check-input,
[data-bs-theme="light"] .form-switch .form-check-input {
    background-color: #cbd5e1;
    border-color: #94a3b8;
}

.issuer-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    background-color: var(--surface-dark);
}

.issuer-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.issuer-card.is-offline {
    opacity: 0.65;
}

.issuer-card.is-offline:hover {
    opacity: 0.9;
}

.issuer-logo-box {
    width: 90px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
    padding: 4px 8px;
}

body.light .issuer-logo-box,
[data-bs-theme="light"] .issuer-logo-box {
    background: rgba(0, 0, 0, 0.03);
}

.issuer-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1) !important;
}

body.light .issuer-logo-box img,
[data-bs-theme="light"] .issuer-logo-box img {
    filter: none !important;
}

.product-toggle-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: background 0.15s ease;
}

.product-toggle-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.light .product-toggle-row,
[data-bs-theme="light"] .product-toggle-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

body.light .product-toggle-row:hover,
[data-bs-theme="light"] .product-toggle-row:hover {
    background: #f1f5f9;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin-animation {
    animation: spin 0.8s linear infinite;
}