﻿
/*.chat-container {
    position: fixed;
    bottom: 90px;*/ /* Positioned above the chat icon 
    right: 20px;
    width: 350px;
    z-index: 1000;
    transition: all 0.3s ease;
    display: none;  Hidden until toggled 
}


.chat-header {
    background: linear-gradient(135deg, #6c5ce7, #a363d9, #ff6b6b, #6c5ce7);
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

 Chat body 
.chat-body {
    background: white;
    height: 400px;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

 Chat messages area 
.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

 Input area 
.chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

 Message bubbles 
.message {
    margin: 10px 0;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 20px;
    animation: fadeIn 0.3s ease;
}

.user-message {
    background: #007bff;
    color: white;
    margin-left: auto;
    border-radius: 20px 20px 0 20px;
}

.bot-message {
    background: white;
    color: #333;
    border: 1px solid #eee;
    margin-right: auto;
    border-radius: 20px 20px 20px 0;
}

 Floating chat toggle button 
.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #a363d9;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1001;
}

    .chat-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 8px rgba(0,0,0,0.3);
    }

 Animations 
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 Input styling 
.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .chat-input input:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
    }

.chat-input button {
    background: #a363d9;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .chat-input button:hover {
        background: #0056b3;
    }

 Typing indicator 
.typing-indicator {
    display: none;
    padding: 10px 15px;
    background: white;
    border-radius: 20px;
    margin: 10px 0;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    background: #ddd;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}*/

.chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    z-index: 1000;
    transition: all 0.3s ease;
    display: none;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    background: white;
}

    .chat-container.active {
        display: block;
        animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    }

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #6c5ce7, #a363d9);
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .chat-header img {
        width: 30px;
        filter: brightness(0) invert(1);
    }

/* Chat Body */
.chat-messages {
    height: calc(100% - 120px); /* Assuming you have an input area of 60px */
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Messages */
.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 20px;
    animation: fadeIn 0.3s ease;
    position: relative;
    word-break: break-word;
}

.bot-message {
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    align-self: flex-start;
    border-radius: 20px 20px 20px 4px;
    margin-right: auto;
}

.user-message {
    background: linear-gradient(135deg, #6c5ce7, #a363d9);
    color: white;
    align-self: flex-end;
    border-radius: 20px 20px 4px 20px;
    margin-left: auto;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
    width: 100%;
}

.option-btn {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 14px;
}

    .option-btn:hover {
        background: #f8f9fa;
        transform: translateX(5px);
    }

/* Chat Toggle */
.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #6c5ce7;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1001;
    /* --- NEW CODE TO HIGHLIGHT THE BUTTON --- */
    animation: pulse 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

    .chat-toggle:hover {
        transform: scale(1.1);
        background: #a363d9;
        animation: none; /* Pause the pulse on hover to keep the scaling smooth */
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- NEW ANIMATION FOR THE HIGHLIGHT --- */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(108, 92, 231, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f3f5;
}

::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 4px;
}