/* css/pro-chat.css */

/* Chat Widget Container */
.oz-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Floating Action Button (FAB) */
.oz-chat-fab {
    width: 60px;
    height: 60px;
    background-color: var(--dark-brown, #7F5539);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.oz-chat-fab:hover {
    transform: scale(1.1);
}

.oz-chat-fab svg {
    color: white;
    width: 32px;
    height: 32px;
}

/* Notification Badge */
.oz-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Chat Window */
.oz-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none; /* Prevent clicks when hidden */
}

.oz-chat-window.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Header */
.oz-chat-header {
    background-color: var(--dark-brown, #7F5539);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.oz-chat-avatar {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oz-chat-avatar svg {
    color: var(--dark-brown, #7F5539);
    width: 24px;
    height: 24px;
}

.oz-chat-header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.oz-chat-header-info p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
}

.oz-chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
}

.oz-chat-close:hover {
    opacity: 1;
}

/* Messages Area */
.oz-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.oz-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.oz-message.bot {
    background-color: white;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.oz-message.user {
    background-color: var(--dark-brown, #7F5539);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.oz-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background-color: white;
    width: fit-content;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
}

.oz-typing-dot {
    width: 6px;
    height: 6px;
    background-color: #ccc;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.oz-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.oz-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Input Area */
.oz-chat-input-area {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.oz-chat-input-area input {
    flex: 1;
    border: 1px solid #eee;
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

.oz-chat-input-area input:focus {
    border-color: var(--dark-brown, #7F5539);
}

.oz-chat-send {
    background-color: var(--dark-brown, #7F5539);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.oz-chat-send:hover {
    transform: scale(1.05);
}

.oz-chat-send:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
