/* Clonic Bot - Estilos Consolidados */

:root {
    --clonic-cyan: #2cfbcd;
}

#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chat-window {
    width: 320px;
    height: 400px;
    background-color: #1a1a1a;
    border: 2px solid var(--clonic-cyan);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-size: 14px;
}

#chat-header {
    background-color: rgba(44, 251, 205, 0.1);
    color: white;
    padding: 10px;
    border-bottom: 2px solid var(--clonic-cyan);
    font-weight: bold;
}

#chat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Scrollbar Personalizado */
#chat-messages::-webkit-scrollbar {
    width: 4px;
}
#chat-messages::-webkit-scrollbar-track {
    background: #0a0a0a;
}
#chat-messages::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 10px;
}
#chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--clonic-cyan);
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 85%;
    line-height: 1.4;
}

.user-message {
    background-color: rgba(44, 251, 205, 0.125);
    color: #e5e7eb;
    margin-left: auto;
}

.bot-message {
    background-color: #374151;
    color: white;
    margin-right: auto;
}

#chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #374151;
}

#chat-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #4b5563;
    border-radius: 6px;
    background-color: #0a0a0a;
    color: white;
    outline: none;
    margin-right: 8px;
}

#send-button {
    background-color: var(--clonic-cyan);
    color: #0a0a0a;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

#chat-toggle-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--clonic-cyan);
    color: #0a0a0a;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-dots {
    display: flex;
    padding: 10px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--clonic-cyan);
    border-radius: 50%;
    margin: 0 2px;
    animation: dot-flashing 1s infinite alternate;
}

@keyframes dot-flashing {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

.ai-result-card {
    background-color: #1f2937;
    border: 1px solid rgba(44, 251, 205, 0.3);
    padding: 10px;
    border-radius: 8px;
}

.hidden {
    display: none !important;
}

.bot-message a {
    color: var(--clonic-cyan);
    text-decoration: underline;
    font-weight: bold;
    transition: opacity 0.2s;
}

.bot-message a:hover {
    opacity: 0.8;
}
