/* Algoinsu AI Chatbot Styles */

.chatbot-container {
    position: fixed;
    z-index: 1000;
    bottom: 200px;
    right: 30px;
    font-family: 'Arial', sans-serif;
}

.chatbot-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #800020; /* Burgundy */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.chatbot-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.chatbot-icon img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.chatbot-window {
    position: absolute;
    bottom: 120px;
    right: 0;
    width: 400px;
    height: 600px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatbot-header {
    background: linear-gradient(135deg, #800020, #6b001b); /* Burgundy gradient */
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chatbot-title {
    display: flex;
    align-items: center;
}

.chatbot-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid #D4AF37; /* Gold */
}

.chatbot-close {
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s ease;
}

.chatbot-close:hover {
    transform: scale(1.1);
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}

.chatbot-message {
    max-width: 80%;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background-color: #f0f0f0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background-color: #800020; /* Burgundy */
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chatbot-input {
    display: flex;
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: border 0.3s ease;
}

.chatbot-input input:focus {
    border-color: #800020; /* Burgundy */
}

.chatbot-input button {
    background-color: #800020; /* Burgundy */
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    background-color: #6b001b; /* Darker burgundy */
    transform: scale(1.05);
}

.chatbot-suggested-prompts {
    padding: 10px 15px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.prompt-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.prompt-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prompt-item {
    background-color: #f0f0f0;
    color: #333;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-item:hover {
    background-color: #e0e0e0;
    transform: scale(1.02);
}

.chatbot-follow-up-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.follow-up-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.follow-up-button:hover {
    background-color: #e0e0e0;
    transform: scale(1.02);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .chatbot-window {
        width: 300px;
        height: 450px;
        bottom: 70px;
        right: 0;
    }
    
    .chatbot-message {
        max-width: 85%;
    }
}

/* Animation for chatbot icon pulse */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Futuristic elements */
.chatbot-window {
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header {
    position: relative;
    overflow: hidden;
}

.chatbot-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent); /* Gold */
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { left: -100%; }
    100% { left: 100%; }
}

.bot-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent); /* Gold with transparency */
    animation: typing 1s ease-out forwards;
}

@keyframes typing {
    0% { width: 0; }
    100% { width: 100%; }
}
