.chat-toggle-con {
    display: none !important;
}

/* ------------------------
   CHATBOT WIDGET - CLEAN LIGHT DESIGN
------------------------- */
#ppra-chatbot {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 410px;
    height: calc(100vh - 80px);
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
    animation: slideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header - Primary Color */
#ppra-chatbot-header {
    padding: 8px 16px;
    background: #2C5593;
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

#ppra-chatbot-header img {
    height: 40px;
}

#ppra-chatbot-header span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

#ppra-chatbot-header button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: bold;
}

#ppra-chatbot-header button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Messages Container - Scrollable */
#ppra-chatbot-messages {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fc;
    min-height: 0;
}

/* custom scrollbar */
#ppra-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#ppra-chatbot-messages::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

#ppra-chatbot-messages::-webkit-scrollbar-thumb {
    background: #84BB4D;
    border-radius: 10px;
}

#ppra-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #6a9e3a;
}

/* Message bubbles */
.ppra-message {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 85%;
    font-size: 15px;
    line-height: 1.45;
    animation: fadeInUp 0.25s ease-out;
    word-wrap: break-word;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User message - Secondary Color */
.ppra-user {
    background: #84BB4D;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(132, 187, 77, 0.2);
}

/* Assistant message - Light gray */
.ppra-assistant {
    background: #ffffff;
    color: #2d3748;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Disclaimer message */
.ppra-disclaimer {
    font-size: 13px;
    background: #fef9e6;
    color: #856404;
    max-width: 95%;
    padding: 10px 14px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-left: 3px solid #84BB4D;
    font-weight: 400;
}

/* .ppra-disclaimer::before {
    content: "⚖️";
    font-size: 14px;
    margin-right: 5px;
} */

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #ffffff;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid #e2e8f0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #84BB4D;
    border-radius: 50%;
    display: inline-block;
    animation: typingWave 1.2s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingWave {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Input Area */
#ppra-chatbot-input {
    display: flex;
    padding: 14px 18px;
    gap: 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    align-items: center;
    flex-shrink: 0;
}

#ppra-chatbot-text {
    flex: 1;
    padding: 12px 18px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    outline: none;
    color: #000;
    background: #f8f9fc;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

#ppra-chatbot-text:focus {
    border-color: #84BB4D;
    box-shadow: 0 0 0 3px rgba(132, 187, 77, 0.1);
    background: #ffffff;
}

#ppra-chatbot-text::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

#ppra-chatbot-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #84BB4D;
    color: white;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(132, 187, 77, 0.3);
    flex-shrink: 0;
}

#ppra-chatbot-send img {
    width: 20px;
}

#ppra-chatbot-send:hover {
    background: #6a9e3a;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(132, 187, 77, 0.4);
}

#ppra-chatbot-send:active {
    transform: scale(0.98);
}

/* Floating Toggle Button */
#ppra-chatbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #2C5593;
    color: white;
    border: none;
    border-radius: 60px;
    width: 70px;
    height: 70px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(44, 85, 147, 0.4);
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ppra-chatbot-toggle:hover {
    transform: scale(1.1);
    background: #1e3d6b;
    box-shadow: 0 15px 35px -5px rgba(44, 85, 147, 0.5);
}

#ppra-chatbot-toggle img {
    width: 30px;
}

/* Pulse animation for toggle button */
@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(44, 85, 147, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(44, 85, 147, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(44, 85, 147, 0);
    }
}

#ppra-chatbot-toggle {
    animation: pulseRing 2s infinite;
}

/* Ripple effect for buttons */
.ripple-effect {
    pointer-events: none;
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.4s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Welcome message emoji styling */
.welcome-msg {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ppra-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
}

.ppra-retry-btn {
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 11px;
    border: none;
    border-radius: 6px;
    background: #eee;
    cursor: pointer;
}

.ppra-retry-btn:hover {
    background: #ddd;
}

/* Responsive: mobile adjustments */
@media (max-width: 500px) {
    #ppra-chatbot {
        width: calc(100vw - 32px);
        height: calc(100vh - 180px);
        right: 16px;
        bottom: 80px;
    }

    .ppra-message {
        max-width: 90%;
    }

    #ppra-chatbot-header {
        padding: 14px 20px;
    }

    #ppra-chatbot-messages {
        padding: 16px 12px;
    }
}