/* chatbot_style.css - Complete Chatbot Styles */
.sepia-chatbot-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    background: #8B4513;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: all 0.3s ease;
    animation: sepia-pulse 2s infinite;
}

@keyframes sepia-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 69, 19, 0.7); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); box-shadow: 0 0 0 15px rgba(139, 69, 19, 0); }
}

.sepia-chatbot-bubble:hover {
    transform: scale(1.1);
    background: #6b3710;
    animation: none;
}

.sepia-chatbot-bubble i {
    font-size: 24px;
    color: white;
}

.sepia-chatbot-modal {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom right;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.sepia-chatbot-modal.sepia-active {
    transform: scale(1);
    opacity: 1;
}

.sepia-chat-header {
    background: #8B4513;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sepia-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.sepia-close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.sepia-close-chat-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sepia-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
}

.sepia-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
    animation: sepia-message-appear 0.3s ease;
}

@keyframes sepia-message-appear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sepia-user-message {
    align-self: flex-end;
    background: #8B4513;
    color: white;
    border-bottom-right-radius: 5px;
}

.sepia-bot-message {
    align-self: flex-start;
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sepia-typing-indicator {
    background: white !important;
    padding: 15px !important;
}

.sepia-typing-dots {
    display: flex;
    gap: 4px;
}

.sepia-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8B4513;
    animation: sepia-typing 1.4s ease-in-out infinite both;
}

.sepia-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.sepia-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes sepia-typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.sepia-chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: white;
    flex-shrink: 0;
    gap: 10px;
}

.sepia-chat-input-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border 0.3s;
}

.sepia-chat-input-field:focus {
    border-color: #8B4513;
}

.sepia-send-btn {
    background: #8B4513;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.sepia-send-btn:hover {
    background: #6b3710;
    transform: scale(1.05);
}

.sepia-send-btn:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .sepia-chatbot-modal {
        width: calc(100vw - 40px);
        height: 70vh;
        right: 20px;
        bottom: 90px;
    }
    
    .sepia-chatbot-bubble {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .sepia-chatbot-bubble i {
        font-size: 20px;
    }
}

/* Scrollbar styling */
.sepia-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.sepia-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sepia-chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sepia-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}