/* Ajustes generales de la página */
        body {
            min-width: 100%;
            min-height: 400px;
            padding: 10px;
        }

        /* Cabecera del chat */
        .chat-header {
            padding: 10px 0;
            border-bottom: 1px solid #e0e0e0;
            margin-bottom: 10px;
        }

        .gpt-info h4 {
            font-size: 1.1rem;
            color: #333;
            margin-left: 10px;
        }

        /* Icono del menú desplegable */
        .menu-icon {
            font-size: 1.5rem;
            color: #666;
            cursor: pointer;
        }

        .dropdown-menu {
            min-width: 150px;
        }

        /* Contenedor del chat */
        .chat-container {
            height: 65vh;
            overflow-y: auto;
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 10px;
            border: 1px solid #ddd;
            display: flex;
            flex-direction: column-reverse;
        }

        /* Estilos de mensajes */
        .message {
            display: flex;
            align-items: flex-end;
            margin-bottom: 15px;
        }

        .message.user-message {
            justify-content: flex-end;
        }

        .message.bot-message {
            justify-content: flex-start;
        }

        /* Contenido del mensaje */
        .message-content {
            max-width: 70%;
            padding: 10px 15px;
            border-radius: 15px;
            font-size: 15px;
            line-height: 1.5;
            position: relative;
        }

        .user-message .message-content {
            background-color: #4a90e2;
            color: #fff;
            border-top-right-radius: 0;
        }

        .bot-message .message-content {
            background-color: #f1f1f1;
            color: #333;
            border-top-left-radius: 0;
        }

        /* Timestamp de los mensajes */
        .timestamp {
            font-size: 11px;
            color: #999;
            margin-top: 5px;
        }

        /* Avatar */
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin: 0 10px;
        }

        /* Pantalla de carga */
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.8);
            z-index: 999;
        }

        /* Alerta de error */
        .alert-danger {
            color: #721c24;
            background-color: #f8d7da;
            border-color: #f5c6cb;
            padding: 10px;
            margin-top: 10px;
            border-radius: 5px;
        }

        /* Contenedor del campo de mensaje estilo burbuja */
        .message-input-container {
            display: flex;
            align-items: center;
            background-color: #f1f1f1;
            border-radius: 20px;
            padding: 10px;
            position: relative;
            margin-top: 10px;
        }

        /* Estilo del textarea */
        #messageInput {
            width: 100%;
            border: none;
            resize: none; /* Evita el redimensionamiento manual del textarea */
            outline: none !important;
            box-shadow: none !important;
            background-color: transparent;
            font-size: 15px;
            line-height: 1.5;
            padding: 5px;
            color: #333;
            height: 1.5em; /* Altura inicial fija */
            overflow-y: hidden; /* Oculta el scroll interno */
        }

        /* Botón de envío */
        .send-button {
            background-color: #333;
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 10px;
            cursor: pointer;
        }

        .send-button i {
            font-size: 1rem;
        }

        .send-button:focus {
           outline: none;
        }
        .loading-dots span {
            animation: blink 1.4s infinite both;
            display: inline-block;
            font-size: 24px;
        }
        
        .loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }
        
        .loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }
        
        @keyframes blink {
            0%, 100% {
                opacity: 0;
            }
            50% {
                opacity: 1;
            }
        }
        /* Control dropdown submenu */
        .dropdown-menu {
            min-width: 200px;
        }
        
        .dropdown-submenu {
            position: relative;
        }
        
        .dropdown-submenu .dropdown-menu {
            position: absolute;
            top: -3px;
            right: 100%;
            margin-right: 0;
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
            background-color: white;
            border: 1px solid rgba(0, 0, 0, 0.15);
        }
        
        .dropdown-submenu:hover > .dropdown-menu {
            display: block;
        }
        
        .dropdown-item {
            padding: 0.5rem 1rem;
            white-space: nowrap;
            display: flex;
            align-items: center;
            justify-content: space-between; /* Esto ayuda a separar el contenido */
            gap: 8px; /* Espacio entre elementos */
        }
        
        /* Estilo específico para el contenedor del icono y texto */
        .dropdown-item-content {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* Estilo para la flecha del submenu */
        .chat-footer {
            background-color: #fff; /* Color de fondo */
            padding: 5px; /* Espaciado interno */
            text-align: center; /* Centrar el texto */
            font-size: 14px; /* Tamaño de fuente */
            color: #333; /* Color del texto */
            border-top: 1px solid #ddd; /* Línea superior */
            margin-top: 15px; /* Espaciado superior */
            max-width: 100%; /* Asegurar que el ancho no exceda el contenedor */
            box-sizing: border-box; /* Considerar el padding en el ancho total */
        }
                
        .chat-footer .footer-content a:hover {
            text-decoration: underline; /* Subrayado al pasar el cursor */
        }
        
        .container_footer {
            width: 100%; /* Ocupa el 100% del ancho del contenedor padre */
            max-width: 1300px; /* Puedes ajustar esto según tu diseño */
            margin: 0 auto; /* Centrar el contenido */
        }
        .chat-footer .footer-content a {
            color: #333; /* Cambia este color al que prefieras */
            text-decoration: none; /* Quita el subrayado */
            margin: 0 5px; /* Espaciado entre enlaces */
        }

        
        .logo-container {
            display: flex;
            align-items: left;
            justify-content: left; /* Centrar el contenido horizontalmente */
        }
        
        .logo {
            height: 75px; /* Ajusta el tamaño del logotipo según sea necesario */
            margin-right: 10px; /* Espacio entre el logotipo y el texto */
        }
        
        .chat-header h1 {
            margin: 0; /* Quita el margen por defecto */
            font-size: 24px; /* Tamaño de fuente del título */
            color: #333; /* Color del texto */
        }
        
        /* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .message-content {
        font-size: 0.9rem; /* Reduce el tamaño de la fuente para móviles */
        line-height: 1.2; /* Ajusta la altura de línea */
    }

    #messageInput {
        font-size: 0.9rem; /* Reduce el tamaño de la fuente */
        line-height: 1.2; /* Ajusta la altura de línea */
    }
}