/*******************************/
/******** Chatbot CSS **********/
/*******************************/
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: #fdbe33;
    color: #030f27;
    border: none !important;
    outline: none !important;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    background: #e6a71e;
}

.chatbot-window {
    width: 350px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    height: 450px;
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.chatbot-header {
    background: #030f27;
    color: #ffffff;
    padding: 15px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

.chatbot-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.chatbot-avatar i {
    font-size: 20px;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #28a745;
    border-radius: 50%;
    border: 2px solid #030f27;
}

.chatbot-info {
    display: flex;
    flex-direction: column;
}

.chatbot-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.chatbot-status {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
}

.chatbot-header .close-btn {
    cursor: pointer;
    font-size: 20px;
    opacity: 0.8;
}

.chatbot-header .close-btn:hover {
    opacity: 1;
}

.chatbot-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.bot {
    background: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-message.user {
    background: #fdbe33;
    color: #030f27;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chatbot-footer {
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-footer input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    font-size: 14px;
}

.chatbot-footer input:focus {
    border-color: #fdbe33;
}

.chatbot-footer button {
    background: #030f27;
    color: #fdbe33;
    border: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.chatbot-footer button:hover {
    background: #fdbe33;
    color: #030f27;
}

.chatbot-footer button.listening {
    background: #dc3545;
    color: #fff;
    animation: pulse 1.5s infinite;
}

/* Voice Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@media (max-width: 450px) {
    .chatbot-container {
        right: 15px;
        bottom: 15px;
        z-index: 10001;
    }

    .chatbot-window {
        position: fixed;
        bottom: 90px;
        right: 15px;
        left: 15px;
        width: calc(100% - 30px);
        max-width: none;
        height: 60vh;
        margin-bottom: 0;
    }
}