
.chatbot-container {
    font-family: 'emoji-mart', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.chatbot-trigger-container {
    position: fixed;      
    top: 80%;             
    right: 20px;         
    transform: translateY(-50%);
    z-index: 9999;     
}
.chatbot-trigger-container {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 9999;
}

.chatbot-trigger-btn {
    background: #ffffff;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #e6e6e6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-trigger-btn img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
}

/* Hover effect */
.chatbot-trigger-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}


.chatbot-trigger-btn:hover::before {
  left: 0;
}

.chatbot-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 234, 194, 0.4);
}

.chatbot-trigger-btn svg {
    width: 24px;
    height: 24px;
}

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 40px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}


.chatbot-header {
    background: linear-gradient(135deg, #142a3d 0%, #509f8f 100%);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-content {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}
.chatbot-header-content i{
    font-size: 20px;
}
.chatbot-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
    font-size: 14px;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
  
}

.chatbot-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.chatbot-close-svg {
    cursor: pointer;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.message-avatar i {
    font-size: 20px;
    color: #ffebf2;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #142a3d 0%, #509f8f 100%);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: #e0e0e0;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 70%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.5;
}

.user-message .message-content {
    background: linear-gradient(135deg, #142a3d 0%, #509f8f 100%);
    color: white;
}

.chatbot-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.chatbot-clear-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #142a3d 0%, #509f8f 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.chatbot-clear-btn i{
    font-size: 18px;
}
.chatbot-input {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: none;
    max-height: 120px;
    transition: border-color 0.2s;
}

.chatbot-input:focus {
    outline: none;
    border-color: #509f8f;
}

.chatbot-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #142a3d 0%, #509f8f 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chatbot-typing {
    padding: 10px 20px;
    background: #f5f5f5;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}


@media (max-width: 768px) {
    .chatbot-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .chatbot-header {
        border-radius: 0;
    }
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.chatbot-trigger-btn i {
    animation: bounce 2s infinite;
    font-size: 18px;
}

.chatbot-trigger-container{
    display: flex;
    justify-content: end;
}

.tab-content { display: none; }
.tab-content.active { display: block; }
.indexed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}
.indexed-item:hover {
    background: #f0f6fc;
}
.indexed-item-info {
    flex: 1;
}
.indexed-item-actions {
    display: flex;
    gap: 10px;
}
.item-meta {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
.indexed-view-item th {
    font-weight : bold;
}
.indexed-view-item table , .indexed-view-item td, .indexed-view-item th {  
    border: 1px solid #ddd;
    text-align: left;
}

#assistant-icon {
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    animation: spin 12s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
