/* ===== Dulaim Premium Middle-East Corporate Chatbot ===== */

:root {
    --navy-dark: #07121f;
    --navy-primary: #0b1d3a;
    --navy-soft: #0e2438;

    --gold-primary: #C6A75E;
    --gold-dark: #B8963D;
    --gold-light: #D4AF37;
}

/* ===============================
   Floating Chat Button
=================================*/
#chatbot-toggle {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--navy-dark);
    z-index: 99999;

    background: linear-gradient(
        135deg,
        var(--gold-dark),
        var(--gold-light),
        var(--gold-primary)
    );

    box-shadow: 0 8px 25px rgba(198,167,94,0.4);
    transition: all 0.3s ease;
}

#chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(198,167,94,0.6);
}

/* ===============================
   Chat Container (Flex Layout FIXED)
=================================*/
#chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    height: 420px;
    background: var(--navy-primary);
    border-radius: 14px;
    overflow: hidden;
    z-index: 99999;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);

    display: none;
    flex-direction: column;
}

#chatbot-container.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

/* ===============================
   Header
=================================*/
#chatbot-header {
    background: var(--navy-dark);
    color: var(--gold-primary);
    padding: 14px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===============================
   Messages Area (Scrollable + Flexible)
=================================*/
#chatbot-messages {
    flex: 1;                       /* KEY FIX */
    padding: 15px;
    overflow-y: auto;
    background: var(--navy-soft);
    font-size: 13px;
}

/* Scrollbar Styling */
#chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
}

/* ===============================
   Bot Message
=================================*/
.bot-message {
    background: #122f4a;
    color: #ffffff;
    padding: 10px 13px;
    border-radius: 10px;
    margin-bottom: 10px;
    max-width: 85%;
    line-height: 1.4;
}

/* ===============================
   User Message (Metallic Gold)
=================================*/
.user-message {
    background: linear-gradient(
        135deg,
        var(--gold-dark),
        var(--gold-primary)
    );
    color: var(--navy-dark);
    padding: 10px 13px;
    border-radius: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    max-width: 85%;
    font-weight: 500;
}

/* ===============================
   Options Area (Always Visible)
=================================*/
#chatbot-options {
    padding: 10px 12px;
    background: var(--navy-primary);
}

/* Option Buttons */
.chat-option {
    width: 100%;
    margin: 5px 0;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    border: 1px solid var(--gold-primary);
    background: transparent;
    color: var(--gold-primary);
    transition: all 0.3s ease;
}

.chat-option:hover {
    background: linear-gradient(
        135deg,
        var(--gold-dark),
        var(--gold-primary)
    );
    color: var(--navy-dark);
}

/* ===============================
   Animation
=================================*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}