/* NaijaBOT Chat Widget Styles */
/* Upload as: /assets/css/naijabot-chat.css */

.naijabot-container {
    position: fixed;
    bottom: 20px;
    right: 40px;
    width: 400px;
    height: 500px;
    max-height: calc(100vh - 40px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
}

.naijabot-header {
    background: linear-gradient(135deg, #108A00 0%, #005F2B 100%);
    color: white;
    padding: 20px;
    position: relative;
}

.naijabot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.naijabot-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.naijabot-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.naijabot-close:hover {
    background: rgba(255,255,255,0.3);
}

.naijabot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #F9FAFB;
}

.naijabot-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #108A00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.naijabot-message.user .message-avatar {
    background: #242424;
}

.message-content {
    flex: 1;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.naijabot-message.user .message-content {
    background: #108A00;
    color: white;
}

.loading-dots {
    display: flex;
    gap: 4px;
    padding: 5px 0;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #108A00;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.naijabot-suggestions {
    padding: 15px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: white;
    border-top: 1px solid #E5E7EB;
}

.suggestion-btn {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    padding: 8px 14px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    white-space: nowrap;
}

.suggestion-btn:hover {
    background: #108A00;
    color: white;
    border-color: #108A00;
}

.naijabot-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 10px;
}

.naijabot-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.naijabot-input-area input:focus {
    outline: none;
    border-color: #108A00;
}

.naijabot-input-area button {
    background: #F05D21;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.naijabot-input-area button:hover {
    background: #d94f1a;
}

.naijabot-input-area button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.clear-chat-btn {
    background: transparent;
    color: #6C6C6C;
    border: none;
    border-top: 1px solid #E5E7EB;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.clear-chat-btn:hover {
    background: #F9FAFB;
    color: #108A00;
}

/* Floating Bot Button */
.floating-bot {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-bot:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(16, 138, 0, 0.3);
}

.floating-bot span {
    font-size: 12px;
    color: #108A00;
    font-weight: 600;
    margin-top: 4px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .naijabot-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .floating-bot {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-bot span {
        font-size: 10px;
    }
}