/*** NIC Modern AI Chatbot — Premium Design ***/

.nic-chatbot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
}

.nic-chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 36px;
    border-radius: 100px;
    background: #015FC9;
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(1, 95, 201, 0.3);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease;
    text-decoration: none;
    animation: nic-button-pulse 3s infinite;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    transform: translateZ(0);
}

@keyframes nic-button-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(1, 95, 201, 0.6), 0 10px 30px rgba(1, 95, 201, 0.3);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(13, 211, 241, 0.3), 0 10px 30px rgba(1, 95, 201, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(1, 95, 201, 0), 0 10px 30px rgba(1, 95, 201, 0.3);
    }
}



.nic-chatbot-toggle i {
    font-size: 1.4rem;
}

.nic-chatbot-toggle span {
    font-weight: 400;
    font-size: 1.15rem;
    white-space: nowrap;
}

.nic-chatbot-toggle:hover {
    transform: scale(1.05) translateY(-5px);
    background: #0DD3F1;
    box-shadow: 0 15px 35px rgba(13, 211, 241, 0.4);
    animation: none;
}




.nic-chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 380px;
    max-width: calc(100vw - 50px);
    height: 550px;
    max-height: calc(100vh - 150px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2001;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.nic-chatbot-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.nic-chat-header {
    background: linear-gradient(135deg, #015FC9 0%, #004a9e 100%);
    padding: 1.75rem 1.5rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nic-chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.nic-chat-header button#nicChatClear:hover {
    color: #fff !important;
    transform: scale(1.1);
}

.nic-chat-header button#nicChatClear:hover {
    color: #fff !important;
    transform: scale(1.1);
}

.nic-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    animation: nic-pulse 2s infinite;
}

@keyframes nic-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.nic-chat-avatar {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 15px;
    padding: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nic-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nic-chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #fcfdfe;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nic-msg {
    max-width: 85%;
    padding: 0.9rem 1.1rem;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
}

.nic-msg.bot {
    background: #fff;
    color: #15233C;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.nic-msg.user {
    background: #015FC9;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(1, 95, 201, 0.2);
}

.nic-chat-input-area {
    padding: 1.25rem;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.nic-chat-input-area input {
    flex: 1;
    border: 1px solid #eef0f5;
    padding: 0.85rem 1.25rem;
    border-radius: 100px;
    outline: none;
    font-size: 0.95rem;
    background: #f8fbff;
    transition: all 0.3s ease;
}

.nic-chat-input-area input:focus {
    background: #fff;
    border-color: #015FC9;
    box-shadow: 0 0 0 4px rgba(1, 95, 201, 0.05);
}

.nic-chat-send-btn {
    width: 45px;
    height: 45px;
    background: #015FC9;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nic-chat-send-btn:hover {
    background: #004a9e;
    transform: scale(1.05);
}

/* Custom Scrollbar */
.nic-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.nic-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.nic-chat-messages::-webkit-scrollbar-thumb {
    background: #e0e6ed;
    border-radius: 10px;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 5px;
    padding: 5px 0;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #015FC9;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}