/* Estilos personalizados adicionales para Tailwind CSS */

/* Scrollbar personalizado */
.redu-chat-container::-webkit-scrollbar {
    width: 6px;
}

.redu-chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.redu-chat-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.dark .redu-chat-container::-webkit-scrollbar-thumb {
    background: #52525b;
}

/* Sidebar transition - Desktop */
.redu-sidebar {
    transition: width 0.3s ease-in-out;
}

/* Sidebar colapsado en desktop - muestra solo iconos */
.redu-sidebar.sidebar-collapsed {
    width: 80px !important;
}

.redu-sidebar.sidebar-collapsed .redu-sidebar-content {
    display: none;
}

.redu-sidebar.sidebar-collapsed .redu-sidebar-icons {
    display: flex !important;
    height: 100%;
}

/* Asegurar que sidebar-content use toda la altura */
.redu-sidebar-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Asegurar orden correcto en sidebar de iconos */
.redu-sidebar-icons > a[title="Ir al inicio"] {
    order: -10; /* Logo siempre primero */
}

.redu-sidebar-icons > div.w-full.h-px {
    order: -9; /* Línea divisoria después del logo */
}

.redu-sidebar-icons > .mt-auto {
    order: 100; /* Avatar y plan siempre al final */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .redu-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 50;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        width: 288px !important;
        transition: transform 0.3s ease-in-out;
    }
    
    /* En móvil usamos translate para ocultar completamente */
    .redu-sidebar.sidebar-collapsed {
        width: 288px !important;
    }
    
    .redu-sidebar.sidebar-collapsed .redu-sidebar-content {
        display: flex;
    }
    
    .redu-sidebar.sidebar-collapsed .redu-sidebar-icons {
        display: none !important;
    }
}


button.redu-sidebar-toggle {
    background-color: unset !important;
    color: #165873!important;
}



button.redu-search-toggle {

    background-color: unset!important;
    color: #165873!important;
}

button.redu-new-chat {


    background-color: unset!important;
    color: #165873 !important;
}

img.w-8.h-8.rounded-full.object-cover {
    border-radius: 360px;
}