/* OZIZA Health Chatbot Styles */
#oziza-chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Floating Button */
#oziza-chatbot-toggle {
    min-width: 120px;
    height: 56px;
    background-color: #3b82f6;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    gap: 8px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

#oziza-chatbot-toggle:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

#oziza-chatbot-toggle.active {
    min-width: 56px;
    border-radius: 50%;
}

#oziza-chatbot-toggle.active #oziza-chatbot-text {
    display: none;
}

#oziza-chatbot-toggle.active #oziza-chat-icon {
    display: none;
}

#oziza-chatbot-toggle.active #oziza-close-icon {
    display: block !important;
}

/* Chat Window */
#oziza-chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 384px;
    height: 400px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
#oziza-chatbot-header {
    background-color: #3b82f6;
    color: white;
    padding: 16px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#oziza-chatbot-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
}

#oziza-chatbot-header p {
    font-size: 16px;
    color: white;
    margin: 0;
    font-weight: 500;
}

/* Messages Container */
#oziza-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background-color: #f9fafb;
}

/* Message Styles */
.oziza-message {
    display: flex;
    margin-bottom: 16px;
}

.oziza-user-message {
    justify-content: flex-end;
}

.oziza-bot-message {
    justify-content: flex-start;
}

.oziza-message-content {
    max-width: 75%;
    padding: 12px;
    border-radius: 8px;
}

.oziza-user-message .oziza-message-content {
    background-color: #3b82f6;
    color: white;
    border-bottom-right-radius: 4px;
}

.oziza-bot-message .oziza-message-content {
    background-color: white;
    color: #374151;
    border-bottom-left-radius: 4px;
}

.oziza-message-content p {
    font-size: 16px;
    margin: 0 0 4px 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Bot message text formatting */
.oziza-message-text {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.oziza-message-text p {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 500;
}

.oziza-message-text p:last-child {
    margin-bottom: 4px;
}

.oziza-message-text strong {
    font-weight: 700;
    color: inherit;
}

.oziza-message-text br {
    line-height: 1.2;
}

/* Style bullet points in bot messages */
.oziza-bot-message .oziza-message-text {
    white-space: pre-line;
}

.oziza-message-time {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}

/* Typing Indicator */
.oziza-typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.oziza-dot {
    width: 8px;
    height: 8px;
    background-color: #9ca3af;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.oziza-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.oziza-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Input Area */
#oziza-chatbot-input-area {
    padding: 16px;
    background-color: white;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top: 1px solid #e5e7eb;
}

#oziza-chatbot-input-container {
    display: flex;
    gap: 8px;
}

#oziza-chatbot-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    transition: border-color 0.2s;
}

#oziza-chatbot-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#oziza-chatbot-send {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    outline: none;
}

#oziza-chatbot-send:hover {
    background-color: #2563eb;
}

#oziza-chatbot-send:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    #oziza-chatbot-window {
        width: calc(100vw - 48px);
        right: 24px;
    }
    
    #oziza-chatbot-container {
        right: 16px;
        bottom: 16px;
    }
}

/* Scrollbar */
#oziza-chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

#oziza-chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#oziza-chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

#oziza-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}