:root {
    --primary-color: #ff9900;
    --secondary-color: #9ca3af;
    --bs-secondary-rgb: 156, 163, 175;
    --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: #2a2a2a;

    --bg-product: rgba(255, 153, 0, 0.05);


}

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;
}

.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 .progress-bar {
    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;
}

.shadow-primary {
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.15);
}

.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;
    /* Aproximadamente 4 items de altura */
    overflow-y: auto;
    overflow-x: hidden;
}

.animate__fadeOut {}

.hover-bg-dark-light:hover {
    background-color: var(--primary-color) !important;
}

.hover-bg-dark-light:hover .text-secondary {
    color: #FFF !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 {
    font-weight: 700;
    color: var(--primary-color);
}

.issuer-results tr:not(:first-child) .yield_solved {
    font-weight: normal;
    color: var(--secondary-color);
}

.issuer-item {
    cursor: pointer !important;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #9ca3af;
}

.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) {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.issuer-checkbox {
    display: none;
}

/* Tabla de resultados y animaciones */
.issuer-results tr {
    border-bottom: 1px solid #495057;
    transition: background-color 0.3s ease;
}

.issuer-results tr.is-moving {
    z-index: 10;
    position: relative;
    pointer-events: none;
}

.issuer-results tr.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 {
    border-bottom: none;
}

#createquote aside {
    width: 300px;
}