/* STYLES CHATBOT PREMIUM - NOUR ELEC */
.chatbot-window {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100% - 40px);
    height: 600px;
    max-height: 80vh;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2500;
    flex-direction: column;
    overflow: hidden;
    font-size: 0.95rem;
    border: 2px solid #e30613;
}

.chat-header {
    background: linear-gradient(to right, #e30613, #9f050d);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f9fafb;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    background-color: #ffffff;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
    position: relative;
    animation: fadeInChat 0.3s ease;
}

@keyframes fadeInChat {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-msg {
    background-color: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.user-msg {
    background-color: #e30613;
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #e30613;
    border-radius: 50%;
    animation: typingChat 1.4s infinite ease-in-out both;
    margin: 0 1px;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingChat {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chat-option-btn {
    background: white;
    border: 2px solid #e30613;
    color: #e30613;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.chat-option-btn:hover {
    background: #e30613;
    color: white;
    transform: translateY(-2px);
}

/* Floating Buttons Styles */
.floating-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    pointer-events: auto;
}

.floating-btn:hover {
    transform: scale(1.1) !important;
    border-color: white;
}

.floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 120%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
}

.floating-btn:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}