/*
ConversaPro Chat Widget - CSS Styles
Incluye estos estilos en tu CSS principal o como archivo separado
*/

/* =================== CHAT WIDGET =================== */
#chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#chatbot-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4ea8de;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(78, 168, 222, 0.3);
    transition: all 0.3s ease;
}

#chatbot-btn:hover {
    background: #3b8bb8;
    transform: scale(1.05);
}

#chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

#chatbot-window.open {
    display: flex;
    transform: scale(1);
    opacity: 1;
}

#chatbot-header {
    background: #4ea8de;
    color: white;
    padding: 16px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}

#chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}

.bot-msg, .user-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 14px;
}

.bot-msg {
    background: #e0f2fe;
    color: #22223b;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.user-msg {
    background: #4ea8de;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

#chatbot-form {
    display: flex;
    padding: 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

#chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    margin-right: 8px;
}

#chatbot-input:focus {
    border-color: #4ea8de;
}

#chatbot-form button {
    background: #4ea8de;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

#chatbot-form button:hover {
    background: #3b8bb8;
}

/* =================== USER FORM =================== */
#chatbot-user-form {
    padding: 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

#chatbot-user-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #22223b;
}

#chatbot-user-form input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
}

#chatbot-user-form input:focus {
    border-color: #4ea8de;
}

/* =================== BUTTON STYLES =================== */
.btn {
    background: #4ea8de;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: #3b8bb8;
    transform: translateY(-1px);
}

/* =================== RESPONSIVE =================== */
@media (max-width: 480px) {
    #chatbot-widget {
        bottom: 10px;
        right: 10px;
    }
    
    #chatbot-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        bottom: 70px;
        right: -10px;
    }
    
    #chatbot-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* =================== SCROLLBAR =================== */
#chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
} 