#chatgpt-bot {
    position: fixed;
    z-index: 9999;
}

.chat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #6B3C82;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(107, 60, 130, 0.3);
    transition: transform 0.2s;
}

.chat-icon:hover {
    transform: scale(1.1);
    background: #E84E89;
}

.chat-icon i {
    color: white;
    font-size: 30px;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatgpt-bot-header {
    padding: 15px 20px;
    background: #6B3C82;
    color: white;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.close-chat i {
    font-size: 20px;
}

.chatgpt-bot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #e5ddd5;
}

.chatgpt-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.chatgpt-message.user {
    background: #f8e6ff;
    margin-left: auto;
    border-top-right-radius: 5px;
}

.chatgpt-message.bot {
    background: #ffffff;
    margin-right: auto;
    border-top-left-radius: 5px;
}

.chatgpt-message-content {
    white-space: pre-wrap;
}

.chatgpt-message.bot .chatgpt-message-content {
    color: #303030;
}

.chatgpt-message.bot .chatgpt-message-content p {
    margin: 0 0 10px 0;
}

.chatgpt-message.bot .chatgpt-message-content strong {
    color: #E84E89;
}

.chatgpt-bot-input {
    padding: 15px;
    background: #f0f0f0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatgpt-bot-input input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chatgpt-bot-input button {
    background: #6B3C82;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.chatgpt-bot-input button:hover {
    background: #E84E89;
}

/* Estilos para el contenido markdown */
.chatgpt-message.bot .chatgpt-message-content ul,
.chatgpt-message.bot .chatgpt-message-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.chatgpt-message.bot .chatgpt-message-content a {
    color: #6B3C82;
    text-decoration: none;
}

.chatgpt-message.bot .chatgpt-message-content a:hover {
    color: #E84E89;
}

.chatgptbot-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chatgpt-bot {
    position: fixed;
    z-index: 9999;
    max-width: 350px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.chatbot-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 450px;
    margin-bottom: 15px;
}

.chatbot-header {
    background: #0c5460;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 5px;
}

.user-message {
    margin-left: auto;
    background: #e3f2fd;
}

.bot-message {
    margin-right: auto;
    background: #f5f5f5;
}

.chatgpt-message.system {
    text-align: center;
    margin: 10px 0;
    opacity: 0.7;
}

.chatgpt-message.system .chatgpt-message-content {
    display: inline-block;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 12px;
}

.chat-tip {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 10px;
    font-style: italic;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 15px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #6B3C82;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chatgpt-message.typing {
    opacity: 0.7;
} 