/* ===== ESTILOS GENERALES ===== */
html, body, #root, .dash-app-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: #0e0e10 !important;
}

/* NO sidebar para login */
.no-sidebar #page-content {
    margin-left: 0 !important;
}

/* ===== SPINNERS Y LOADERS ===== */
.initial-load-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.initial-load-spinner .dash-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 4px;
}

.initial-load-container .graph-container {
    display: none;
}

.initial-load-container .graph-loaded {
    display: block !important;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.spinner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5rem;
    height: 2.5rem;
    border: 4px solid rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.dash-spinner {
    margin-left: 8px;
}

/* ===== TARJETAS Y EFECTOS ===== */
.card-hover-effect {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.3) !important;
}

.card-glow {
    position: relative;
    overflow: hidden;
}

.card-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff9d, #0084ff, #00ff9d);
    background-size: 200% 200%;
    z-index: -1;
    filter: blur(5px);
    opacity: 0.3;
    border-radius: inherit;
}

.card-header button {
    transition: all 0.3s ease;
}

.card-header button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 2px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 36, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 157, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 157, 0.5);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 157, 0.3) rgba(30, 30, 36, 0.1);
}

/* ===== LAYOUT PRINCIPAL ===== */
.main-container {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.transactions-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* ===== SIDEBAR Y CONTENIDO ===== */
/* ===== ESTRUCTURA DEL SIDEBAR ===== */
.sidebar-column {
    width: 280px !important;
    min-width: 280px !important;
    height: 100vh;
    background: #1e1e24 !important;
    border-right: 1px solid rgba(0, 255, 157, 0.1);
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 1000;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.3s ease;
}

.sidebar-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
}

.sidebar-fixed-top {
    flex-shrink: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 157, 0.1);
}

.sidebar-scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
    padding-top: 15px;
}

/* Scroll personalizado para el contenido del sidebar */
.sidebar-scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scrollable-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 157, 0.3);
    border-radius: 3px;
}

/* ===== COMPONENTES DEL SIDEBAR ===== */
.sidebar-selector-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
    display: block;
}

.sidebar-platform-dropdown {
    color: #333 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #495057 !important;
    border-radius: 5px !important;
}

.sidebar-section-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    margin-bottom: 10px !important;
    display: block;
}

.dollar-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.sidebar-loading-text {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.8rem !important;
}

.sidebar-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 15px 0 !important;
}

.sidebar-version-text {
    color: rgba(255, 255, 255, 0.5) !important;
    display: block;
    text-align: center;
    font-size: 0.75rem !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .sidebar-column {
        transform: translateX(-100%);
    }
    
    .sidebar-column.show {
        transform: translateX(0);
    }
}

#page-content {
    margin-left: 0px;
    
    min-height: calc(100vh - 60px);
    background: #0e0e10;
}

/* ===== BOTÓN TOGGLE ===== */
#sidebar-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
    background: rgba(30, 30, 36, 0.95);
    color: #00ff9d;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ===== ESTILOS TEXTOS ===== */
.dollar-price {
    font-weight: 500;
    font-size: 0.9rem;
}

.dollar-price .buy {
    color: #00ff9d;
}

.dollar-price .sell {
    color: #ff6b6b;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .sidebar-col {
        transform: translateX(-100%);
    }
    .sidebar-col.show {
        transform: translateX(0);
    }
    #page-content {
        margin-left: 0 !important;
    }
    #sidebar-toggle {
        display: flex;
    }
}
/* Performance Card */
.performance-card {
    background: rgba(30, 30, 36, 0.95) !important;
    border: 1px solid rgba(0, 255, 157, 0.1) !important;
    border-radius: 12px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.performance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.15) !important;
}

.performance-card .card-header {
    background: rgba(0, 255, 157, 0.05) !important;
    border-bottom: 1px solid rgba(0, 255, 157, 0.1) !important;
}
/* Performance Card */

/* Agregar esto al final de tu archivo CSS */
/* ===== ESTILOS PARA BOTÓN DE MOVIMIENTOS ===== */
#open-movement-modal-btn {
    transition: all 0.3s ease !important;
}

#open-movement-modal-btn:hover {
    transform: scale(1.1) !important;
    color: #00f2ff !important;
    border-color: #00f2ff !important;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.5) !important;
}

#open-movement-modal-btn i {
    vertical-align: middle !important;
}

/* Asegurar que el modal esté sobre otros elementos */
.modal {
    z-index: 2000 !important;
}
.date-picker-container .DateInput {
    width: 100% !important;
}

.DateInput_input {
    background-color: #212529 !important;
    color: #dee2e6 !important;
    border: 1px solid #495057 !important;
    border-radius: 0.375rem !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
}

/* Asegurar que el calendario aparezca sobre el modal */
.modal-overflow-visible {
    overflow: visible !important;
}

.DatePicker__picker {
    z-index: 2000 !important;
    position: absolute !important;
}

/* Espaciado consistente para labels */
.form-label {
    margin-left: 0.8rem !important;
    padding-top: 0.2rem !important;
}
/* ===== ESTILOS PARA BOTÓN DE MOVIMIENTOS ===== */

/* Estilo Matrix */
.text-matrix {
    color: #00ff9d !important;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
}

.border-matrix {
    border: 1px solid rgba(0, 255, 157, 0.3) !important;
}

.border-top-matrix {
    border-top: 1px solid rgba(0, 255, 157, 0.3) !important;
}

.bg-dark-transparent {
    background-color: rgba(20, 20, 25, 0.95) !important;
}

.btn-matrix {
    background-color: transparent;
    color: #00ff9d;
    border: 1px solid #00ff9d;
    transition: all 0.3s;
}

.btn-matrix:hover {
    background-color: rgba(0, 255, 157, 0.1);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.7);
}

.matrix-checkbox input:checked ~ .form-check-label {
    color: #00ff9d !important;
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
}

/* Responsividad */
@media (max-width: 768px) {
    #crypto-performance-chart {
        height: 300px !important;
    }
}


/* Estilo para el dropdown */
.dash-dropdown {
    background-color: #1a1a1a; /* Fondo oscuro */
    color: #172219; /* Texto blanco */
    /*border: 1px solid #333333; /* Borde gris oscuro */
    /*border-radius: 4px; /* Bordes redondeados */
    padding: 5px; /* Espaciado interno */
}

/* Estilo para el menú desplegable */
.dash-dropdown .dropdown-menu {
    background-color: #1a1a1a; /* Fondo oscuro */
    color: #172219; /* Texto blanco */
}

/* BOT LOG */
/* Personalización del scroll */
#logs-text-area::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#logs-text-area::-webkit-scrollbar-track {
    background: rgba(0, 201, 255, 0.1);
    border-radius: 3px;
}

#logs-text-area::-webkit-scrollbar-thumb {
    background: rgba(0, 201, 255, 0.4);
    border-radius: 3px;
}

#logs-text-area::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 201, 255, 0.6);
}

/* Asegurar que el card no crezca */
.dash-card {
    flex-grow: 0 !important;
}

/* Mejora para los controles */
.custom-switch .custom-control-label::before {
    background-color: rgba(0, 201, 255, 0.3);
    border-color: rgba(0, 201, 255, 0.5);
    height: 1.1rem;
    width: 2.1rem;
}

.custom-switch .custom-control-label::after {
    height: calc(1.1rem - 4px);
    width: calc(1.1rem - 4px);
}

.custom-switch .custom-control-input:checked~.custom-control-label::before {
    background-color: #00c9ff;
}