/* Variables globales con tus colores */
:root {
    --bs-primary: #31c2a4 !important;
    --bs-primary-rgb: 49, 194, 164 !important;
    --bs-secondary: #040f2b !important;
    --bs-secondary-rgb: 4, 15, 43 !important;
    
    /* Colores del menú lateral */
    --bs-bg-menu: #ffffff !important;
    --bs-menu-item-active-bg: #31c2a4 !important;
    --bs-menu-item-hover-bg: rgba(49, 194, 164, 0.1) !important;
}

.bg-primary {
    background-color: #31c2a4 !important;
}    

.bg-secondary {
    background-color: #040f2b !important;
}

/* Menú lateral - items activos */
.menu .menu-item.active > .menu-link {
    background-color: #31c2a4 !important;
    color: #ffffff !important;
}

.menu .menu-item.active > .menu-link .menu-icon {
    color: #ffffff !important;
}

/* Menú lateral - hover */
.menu .menu-item .menu-link:hover {
    background-color: rgba(49, 194, 164, 0.1) !important;
    color: #31c2a4 !important;
}

/* Botones primarios */
.btn-primary {
    background-color: #31c2a4 !important;
    border-color: #31c2a4 !important;
    color: #ffffff !important;
}

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

/* Botones secundarios */
.btn-secondary {
    background-color: #040f2b !important;
    border-color: #040f2b !important;
    color: #ffffff !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #0a1840 !important;
    border-color: #0a1840 !important;
    color: #ffffff !important;
}

/* Botones outline secondary */
.btn-outline-secondary {
    color: #040f2b !important;
    border-color: #040f2b !important;
}

.btn-outline-secondary:hover {
    background-color: #040f2b !important;
    border-color: #040f2b !important;
    color: #ffffff !important;
}

/* Botones label secondary */
.btn-label-secondary {
    color: #040f2b !important;
    background-color: rgba(4, 15, 43, 0.12) !important;
    border: none !important;
}

.btn-label-secondary:hover {
    background-color: rgba(4, 15, 43, 0.2) !important;
    color: #040f2b !important;
}

/* Badges y elementos secundarios */
.badge.bg-primary {
    background-color: #31c2a4 !important;
}

.badge.bg-secondary {
    background-color: #040f2b !important;
}

/* Cards y elementos con fondo violeta - cambiar a secundario */
.bg-label-primary {
    background-color: rgba(49, 194, 164, 0.12) !important;
    color: #31c2a4 !important;
}

.bg-label-secondary {
    background-color: rgba(4, 15, 43, 0.12) !important;
    color: #040f2b !important;
}

/* Reemplazar colores violeta/purple con tu secundario */
.bg-purple,
.bg-violet,
.btn-label-primary,
.bg-gradient-primary {
    background-color: #040f2b !important;
    color: #ffffff !important;
}

/* Dashboard cards */
.card-header,
.card-title {
    color: #040f2b !important;
}

/* Gráficos - colores */
.apexcharts-theme-light .apexcharts-series path {
    stroke: #31c2a4 !important;
    fill: #31c2a4 !important;
}

.bg-menu-theme.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) {
    background: linear-gradient(72.47deg, #1bc5a7 22.16%, rgb(49 194 164) 76.47%);
    box-shadow: 0px 2px 6px 0px rgb(40 167 69);
    color: #fff !important;
}

card .bg-gradient-primary {
    background-image: linear-gradient(45deg, #040f2b, #31c2a4) !important;
}    

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

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

.nav-tabs .nav-link:not(.active):hover, .nav-tabs .nav-link:not(.active):focus, .nav-pills .nav-link:not(.active):hover, .nav-pills .nav-link:not(.active):focus {
    color: #31c2a4 !important;
}

.nav-pills .nav-link.active, .nav-pills .nav-link.active:hover, .nav-pills .nav-link.active:focus {
    background-color:var(--bs-primary) !important;
    color: #fff;
}

/***************** NEW FOREX LIVE ************/
/* ========================================
   CURRENCY SELECTOR
   ======================================== */
.currency-selector-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.currency-btn {
    min-width: 70px;
    padding: 1rem 1.2rem !important;
    font-size: 1.05rem;
    font-weight: 600;
    border-width: 2px !important;
    transition: all 0.3s ease;
    position: relative;
}

.currency-btn .currency-symbol {
    font-size: 1.1rem;
    font-weight: 700;
    margin-right: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.currency-btn .currency-code {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.currency-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 194, 164, 0.3);
}

.currency-btn:hover .currency-symbol {
    transform: scale(1.15);
}

/* Estado ACTIVO (checked) */
.btn-check:checked + .currency-btn {
    background: linear-gradient(135deg, #31c2a4 0%, #28a085 100%) !important;
    border-color: #28a085 !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(49, 194, 164, 0.4);
    transform: scale(1.05);
}

.btn-check:checked + .currency-btn .currency-symbol {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========================================
   GROUP CARDS
   ======================================== */
.group-card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.card.border-primary {
    border-width: 2px !important;
    border-color: #31c2a4 !important;
}

.avatar-xl {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.75rem;
}

.avatar-xs {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
}

.badge-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.badge-lg {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.currency-badge {
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.currency-badge i {
    font-size: 1rem;
}

.currency-badge strong {
    font-weight: 700;
}

/* ========================================
   DEPOSIT INPUT VALIDATION
   ======================================== */
.deposit-amount-input.is-valid {
    border-color: #28c76f !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328c76f' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.deposit-amount-input.is-invalid {
    border-color: #dc3545 !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 stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.form-text {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
}

.form-text.text-danger {
    color: #dc3545 !important;
}

.form-text.text-success {
    color: #28c76f !important;
}

/* ========================================
   PAYMENT METHOD CARDS
   ======================================== */
.payment-method-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.payment-method-card:hover {
    border-color: #31c2a4;
}

.payment-method-card.border-primary {
    border-color: #31c2a4 !important;
    background-color: rgba(49, 194, 164, 0.05);
}

/* ========================================
   WIZARD STEP INDICATOR (Sistema Simple)
   ======================================== */
.step-indicator {
    gap: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 120px;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #e7eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: #a8aaae;
    background: white;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-item.active .step-number,
.step-item.completed .step-number {
    background: #31c2a4;
    border-color: #31c2a4;
    color: white;
    box-shadow: 0 0 0 4px rgba(49, 194, 164, 0.1);
}

.step-item.completed .step-number {
    background: #28a085;
    border-color: #28a085;
}

.step-label {
    font-size: 0.875rem;
    color: #a8aaae;
    font-weight: 500;
    text-align: center;
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: #31c2a4;
    font-weight: 600;
}

.step-divider {
    width: 80px;
    height: 2px;
    background: #e7eaed;
    margin: 0 -10px;
    margin-top: -28px;
    z-index: -1;
    transition: all 0.3s ease;
}

.step-item.completed + .step-divider {
    background: #28a085;
}

/* ========================================
   WIZARD STEPS CONTENT
   ======================================== */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SIDEBAR
   ======================================== */
.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    z-index: 1020;
}

/* ========================================
   MISC
   ======================================== */
.cursor-pointer {
    cursor: pointer;
}

.ti-check {
    font-size: 0.875rem;
}

.input-group-text {
    min-width: 3rem;
    justify-content: center;
}