#post-chatbot-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.chatbot-icon {
    width: 100px;
    height: 100px;
    background-color: #007cba;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    position: relative;
}
.chatbot-icon:hover {
    transform: scale(1.05);
}
.chatbot-icon span {
    font-size: 40px;
}
.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #ff4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    70% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(0.9); opacity: 1; }
}
.chatbot-toast {
    position: absolute;
    bottom: 102px;
    left: 0;
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
    z-index: 9998;
}
.chatbot-toast button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.chatbot-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 500px;
    height: 50vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.2s;
    font-size: 14px;
    display: none;
}
.chatbot-window.open {
    display: flex;
}
.chatbot-header {
    background: #007cba;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}
.chatbot-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9f9f9;
}
.message {
    max-width: 90%;
    padding: 10px 14px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
}
.user-message {
    background: #007cba;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.bot-message {
    background: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
/* Bot message inner formatting */
.bot-message p {
    margin: 0 0 0.5em 0;
}
.bot-message p:last-child {
    margin-bottom: 0;
}
.bot-message ul {
    margin: 0.5em 0;
    padding-left: 1.5em;
}
.bot-message li {
    margin: 0.2em 0;
}
.bot-message strong {
    font-weight: bold;
}
.bot-message em {
    font-style: italic;
}
.typing {
    font-style: italic;
    opacity: 0.7;
}
.chatbot-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
    gap: 8px;
}
.chatbot-input-area textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    resize: none;
    font-family: inherit;
    font-size: 13px;
}
.chatbot-input-area button {
    background: #007cba;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}
.chatbot-input-area button:hover {
    background: #005a8c;
}
/* Scrollbar */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}
.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}