.chatbot-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    width: 28%;
    max-width: calc(100vw - 40px);
    height: 70%;
    max-height: 100vh;
    background: var(--wp--preset--color--base, #ffffff);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    position: fixed;
    right: 0;
    bottom: 0;
    overflow: hidden;
    margin: 5px;
    overscroll-behavior: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.25);
    animation: openChatSmooth 0.5s ease-in forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.chatbot-container.minimized {
    width: 28% !important;
    height: 70% !important;
}

.chatbot-container.maximized {
    width: 35% !important;
    height: 80% !important;
}

#startNewChatModal.minimized {
    width: 28% !important;
    height: 70% !important;
}

#startNewChatModal.maximized {
    width: 35% !important;
    height: 80% !important;
    right: 0 !important; 
    left: auto !important;
    bottom: 0 !important;
}

@keyframes openChatSmooth {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.chatbot-header {
    background: linear-gradient(135deg, var(--wp--preset--color--base, #ffffff) 0%, var(--wp--preset--color--tertiary, #f8f9fa) 100%) !important;
    color: var(--wp--preset--color--contrast, #000000) !important;
    padding: 8px 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
}

.chatbot-trigger-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.chatbot-trigger-btn {
    --primary: var(--wp--preset--color--primary, #2563eb);
    --secondary: var(--wp--preset--color--secondary, #3b82f6);
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    border: none;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: relative;
    background: radial-gradient(circle at top left, var(--secondary), var(--primary));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35), inset 0 0 0 2px rgba(255,255,255,0.15);
    transition: transform .3s ease, box-shadow .3s ease;
}

.chatbot-trigger-btn::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from 0deg, transparent 60%, var(--secondary), var(--primary), transparent 90%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    animation: borderSpin 2.8s linear infinite;
    opacity: .9;
}

.chatbot-trigger-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
}

.chatbot-trigger-btn:hover {
    transform: translateY(-4px) scale(1.07);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.45), inset 0 0 0 2px rgba(255,255,255,0.25);
}

.chatbot-trigger-btn:hover::before {
    animation-duration: 1.5s;
}

.chatbot-trigger-btn:active {
    transform: scale(.96);
}

@keyframes borderSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .chatbot-trigger-btn::before {
        animation: none;
    }
}

.chatbot-header-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: center !important;
}

.chatbot-header-content img {
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
    transition: transform 0.3s ease !important;
}

.chatbot-header-content img:hover {
    transform: scale(1.05) !important;
}

.chatbot-avatar-img {
    width: 40px;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.message-avatar svg {
    width: 40px;
    height: 40px;
}

.chatbot-header-content i {
    font-size: 20px;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chatbot-messages {
    flex: 1 !important;
    overflow-y: auto;
    padding: 15px;
    background: linear-gradient(180deg, var(--wp--preset--color--background, rgb(242,242,242)) 0%, var(--wp--preset--color--tertiary, #f0f0f0) 100%) !important;
    font-size: 14px;
    overscroll-behavior: contain;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--wp--preset--color--primary, #2563eb), var(--wp--preset--color--secondary, #1d4ed8)) !important;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.chatbot-close-svg {
    cursor: pointer;
}

.chatbot-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.message-avatar {
    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;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--wp--preset--color--base, #e0e0e0), var(--wp--preset--color--contrast, #d0d0d0)) !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--wp--preset--color--contrast, #000) 15%, transparent) !important;
}

.chatbot-message, .user-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
    animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(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;
}

.typing-indicator {
    display: flex !important;
    gap: 4px !important;
    padding: 12px 16px !important;
    background: var(--wp--preset--color--tertiary, #f5f5f5) !important;
    border-radius: 18px !important;
    width: fit-content !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
}

.typing-indicator span {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: var(--wp--preset--color--primary, #66b5ea) !important;
    animation: typing 1.4s infinite !important;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s !important;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s !important;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.web-assist-header {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
}

.web-assist-header span {
    font-size: 19px;
    font-weight: 700 !important;
    background: linear-gradient(135deg, var(--wp--preset--color--primary, #2563eb), var(--wp--preset--color--secondary, #1d4ed8)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: -0.3px !important;
}

.web-assist-header i:hover {
    transform: translateY(-2px) !important;
}

.web-assist-header i {
    font-size: 14px;
    color: var(--wp--preset--color--secondary, #6c757d) !important;
    font-style: italic !important;
    font-weight: 400 !important;
}

.toast-container {
    z-index: 9999;
}

.toast-body {
    font-weight: 500;
    font-size: 14px;
}

#mindweb-chatbot-root input[type="text"], 
#mindweb-chatbot-root input[type="number"] {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.25s;
}

#mindweb-chatbot-root input[type="text"]:focus, 
#mindweb-chatbot-root input[type="number"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    outline: none;
}

.chatbot-plugin-settings h1 {
    color: #0073aa;
    margin-bottom: 25px;
    font-size: 28px;
}

.chatbot-input, .chatbot-input-readonly {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    transition: all 0.3s;
}

.chatbot-input-container {
    padding: 20px 20px 0px 10px;
    background: var(--wp--preset--color--base, #ffffff);
    border-top: 1px solid #ddd;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chatbot-input.chatbot-textarea {
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 20px;
    border: 2px solid var(--wp--preset--color--secondary, #cbd5e1);
    background: var(--wp--preset--color--base, #ffffff);
    color: var(--wp--preset--color--contrast, #000000);
    font-size: 14px;
    line-height: 1.4;
    min-height: 44px;
    max-height: 160px;
    box-sizing: border-box;
    overflow-y: hidden;
    resize: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        border-color: var(--wp--preset--color--primary, #2563eb);
    }
    50% {
        border-color: var(--wp--preset--color--secondary, #cbd5e1);
    }
}

.chatbot-send-btn,
.chatbot-clear-btn {
    flex-shrink: 0;
}

.chatbot-input-readonly {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

#chatbot-btn-wrapper {
    display: none;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

#chatbot-btn-wrapper.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.chatbot-btn-primary {
    background: #2563eb;
    color: #fff;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.chatbot-btn-primary:hover {
    transform: translateY(-2px);
}

.chatbot-btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.chatbot-btn-secondary:hover {
    background: #cbd5e1;
    color: #111827;
}

.chatbot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.chatbot-close {
    font-size: 24px !important;
}

.chatbot-close,
.clear-chat-history,
.chatbot-resize,
.chatbot-theme-toggle {
    background: rgba(0, 0, 0, 0.04) !important;
    border: none !important;
    color: var(--wp--preset--color--contrast, #000000) !important;
    cursor: pointer !important;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
}

.chatbot-close:hover,
.clear-chat-history:hover,
.chatbot-resize:hover {
    background: none !important;
    transform: translateY(-2px) !important;
    opacity: 1 !important;
    color: var(--wp--preset--color--contrast, #000000) !important;
}

.chatbot-close:focus,
.chatbot-resize:focus,
.chatbot-resize:active {
    color: var(--wp--preset--color--contrast, #000000) !important;
}

.chatbot-close:active,
.clear-chat-history:active,
.chatbot-resize:active {
    transform: translateY(0) scale(0.98) !important;
}

.chatbot-header-actions span {
    cursor: pointer !important;
    font-size: 18px !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s ease !important;
}

.chatbot-header-actions span:hover {
    opacity: 1 !important;
}

.chatbot-close:hover {
    color: var(--wp--preset--color--contrast, #000000) !important;
}

.chatbot-container.closing {
    animation: closeChatSmooth 0.5s ease-in forwards;
}

@keyframes closeChatSmooth {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

.message-content {
    background: var(--wp--preset--color--base, #ffffff);
    color: var(--wp--preset--color--contrast, #000000);
    padding: 10px 16px;
    border-radius: 16px;
    max-width: 80%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    transition: all 0.3s ease;
}

.message-content:hover {
    transform: translateY(-1px) !important;
}

.chatbot-send-btn {
    background: linear-gradient(135deg, var(--wp--preset--color--primary, #2563eb), var(--wp--preset--color--secondary, #1d4ed8)) !important;
    color: var(--wp--preset--color--base, #ffffff);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    animation: sendIdle 2.4s ease-in-out infinite;
}

@keyframes sendIdle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

.chatbot-send-btn:hover {
    transform: scale(1.1) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
    background: var(--wp--preset--color--primary, #c8cfe2) !important;
}

.chatbot-send-btn:active {
    transform: scale(1.05) translateY(-1px) !important;
}

.chatbot-send-btn svg path {
    fill: var(--wp--preset--color--base, #ffffff);
    stroke: var(--wp--preset--color--base, #ffffff);
}

.chatbot-clear-btn {
    background: var(--wp--preset--color--base, #ffffff);
    color: var(--wp--preset--color--contrast, #000000);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--wp--preset--color--secondary, #e0e0e0);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-clear-btn:hover {
    transform: scale(1.08);
    background: var(--wp--preset--color--tertiary, #f8f9fa) !important;
}

.chatbot-clear-btn svg path {
    fill: var(--wp--preset--color--contrast, #5f6368);
}

.chatbot-clear-btn svg line {
    stroke: #5f6368;
    stroke: var(--wp--preset--color--secondary);
}

/* .user-message .message-content {
    background: linear-gradient(135deg, var(--wp--preset--color--primary, #2563eb), var(--wp--preset--color--secondary, #1d4ed8)) !important;
    color: var(--wp--preset--color--base, #ffffff) !important;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3) !important;
} */

.user-message .message-content:hover {
    transform: translateY(-1px) !important;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chatbot-footer {
    background: var(--wp--preset--color--base, #ffffff);
    color: var(--wp--preset--color--secondary, #6c757d);
    padding: 5px 0;
    border-top: 1px solid var(--wp--preset--color--secondary, rgba(0,0,0,0.1));
    text-align: center !important;
    font-size: 13px;
    padding: 12px 18px;
    border: none;
    font-style: italic;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.chatbot-footer .powered-by {
    color: #6c757d;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.chatbot-footer .powered-link {
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(135deg, var(--wp--preset--color--primary, #2563eb), var(--wp--preset--color--secondary, #1d4ed8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.chatbot-footer .powered-link:hover {
    transform: translateX(3px);
    filter: brightness(1.2);
}

.chatbot-footer .powered-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: linear-gradient(135deg, var(--wp--preset--color--primary, #2563eb), var(--wp--preset--color--secondary, #1d4ed8)) !important;
    transition: width 0.3s ease !important;
}

.chatbot-footer .powered-link:hover::after {
    width: 100% !important;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

#startNewChatModal ~ .modal-backdrop,
.modal-backdrop {
    display: none !important;
}

#chatbot-container {
    z-index: 9999 !important;
}

#startNewChatModal {
    position: fixed;
    top: auto;
    left: auto;
    right: 0;
    bottom: 0;
    width: 28%;
    max-width: calc(100vw - 40px);
    height: 70%;
    max-height: 100vh;
    margin: 5px;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    pointer-events: auto;
    transition: all 0.3s ease;
}

#startNewChatModal .modal-dialog {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#startNewChatModal .modal-content {
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    border-radius: 12px !important;
    max-width: 380px !important;
    width: 70% !important;
    animation: openChatSmooth 0.5s ease-in forwards !important;
    padding: 0 !important;
}

#startNewChatModal .modal-header {
    padding: 10px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

#startNewChatModal .modal-title {
    font-size: 1.1rem;
    color: #1a1a1a !important;
    font-weight: 600 !important;
}

#startNewChatModal .modal-body p {
    font-size: 0.9rem;
    line-height: 1.5 !important;
    color: #666666 !important;
    margin-bottom: 0 !important;
}

#startNewChatModal .modal-footer {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
}

#startNewChatModal #confirmNewChatBtn {
    background-color: #4a90e2 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    min-width: 120px !important;
    transition: all 0.2s ease !important;
}

#startNewChatModal #confirmNewChatBtn:hover {
    background-color: #357abd !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25) !important;
}

#startNewChatModal #confirmNewChatBtn:active {
    transform: translateY(0) !important;
}

#startNewChatModal .btn-close {
    padding: 0.4rem !important;
    opacity: 0.5 !important;
    transition: opacity 0.2s ease !important;
    font-size: 0.9rem !important;
}

#startNewChatModal .btn-close:hover {
    opacity: 1 !important;
}

#startNewChatModal .btn-secondary {
    background-color: #f5f5f5 !important;
    color: #666666 !important;
    border: 1px solid #e0e0e0 !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    min-width: 80px !important;
    transition: all 0.2s ease !important;
}

#startNewChatModal .btn-secondary:hover {
    background-color: #ebebeb !important;
    border-color: #d0d0d0 !important;
}

.empty-state-wrapper h4 {
    animation: fadeIn 0.8s ease forwards;
}

.empty-state-wrapper p {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.chatbot-nav-tabs {
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    gap: 5px;
    background: white;
    border-radius: 12px 12px 0 0;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chatbot-nav-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin-right: 2px;
}

.chatbot-nav-tab:hover {
    color: #2563eb;
    background: #f1f5f9;
}

.chatbot-nav-tab.nav-tab-active, 
.chatbot-nav-tab-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: white;
}

.chatbot-typing {
    background: linear-gradient(180deg, var(--wp--preset--color--background, rgb(242,242,242)) 0%, var(--wp--preset--color--tertiary, #f0f0f0) 100%) !important;
}

.icon {
    stroke: #000000 !important;
    stroke-width: 1.5 !important;
}

.header-status {
    display: flex;
}

.chatbot-trigger-btn,
#chatbot-btn-wrapper {
    pointer-events: auto !important;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981 !important;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
}

.message-timestamp {
    font-size: 11px !important;
    color: rgba(0, 0, 0, 0.4) !important;
    margin-top: 4px !important;
    display: block !important;
    font-weight: 400 !important;
}

.user-message .message-timestamp {
    color: rgba(0, 0, 0, 0.4) !important;
    text-align: right !important;
}

.bot-message .message-timestamp {
    color: rgba(0, 0, 0, 0.4) !important;
    text-align: left !important;
}

.message-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    max-width: 80% !important;
}

.user-message .message-wrapper {
    align-items: flex-end !important;
}

.bot-message .message-wrapper {
    align-items: flex-start !important;
}
.bot-message .message-content {
    background: linear-gradient(135deg, var(--wp--preset--color--primary, #2563eb), var(--wp--preset--color--secondary, #1d4ed8)) !important;
    color: var(--wp--preset--color--base, #ffffff) !important;
}

.chatbot-message .message-wrapper {
    flex: 1;
    max-width: 100%;
}

.chatbot-message .message-content {
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    word-wrap: break-word;
}

.message-actions {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4) !important;
}

.message-timestamp {
    margin-right: 6px;
    white-space: nowrap;
}

.rating-icon {
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
}

.rating-icon:hover {
    color: #0d6efd;
    transform: scale(1.1);
}

.good-response, 
.bad-response {
    border: none !important;
    background: none !important;
}

.good-response.active svg {
    color: #28a745 !important;
}

.bad-response.active svg {
    color: #dc3545 !important;
}

.good-response, 
.bad-response, 
.copy-response ,
.pin-response{
    background: none !important;
    border: none !important;
    padding: 2px;
    cursor: pointer;
}

.chatbot-container[data-theme="dark"] {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.chatbot-container[data-theme="dark"] .chatbot-header {
    background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.chatbot-container[data-theme="dark"] .web-assist-header span {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.chatbot-container[data-theme="dark"] .web-assist-header i {
    color: #9ca3af !important;
}

.chatbot-container[data-theme="dark"] .web-assist-header .status-dot {
    background: #10b981 !important;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

.chatbot-container[data-theme="dark"] .chatbot-close,
.chatbot-container[data-theme="dark"] .clear-chat-history,
.chatbot-container[data-theme="dark"] .chatbot-resize {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.chatbot-container[data-theme="dark"] .chatbot-close:hover,
.chatbot-container[data-theme="dark"] .clear-chat-history:hover,
.chatbot-container[data-theme="dark"] .chatbot-resize:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.chatbot-container[data-theme="dark"] .chatbot-close svg,
.chatbot-container[data-theme="dark"] .clear-chat-history svg,
.chatbot-container[data-theme="dark"] .chatbot-resize svg {
    fill: #ffffff !important;
}

.chatbot-container[data-theme="dark"] .chatbot-close svg {
    stroke: #ffffff;
}

.chatbot-container[data-theme="dark"] .chatbot-messages {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%) !important;
}

.chatbot-container[data-theme="dark"] .chatbot-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

.chatbot-container[data-theme="dark"] .chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chatbot-container[data-theme="dark"] .bot-message .message-content {
    background: #423f3f!important;
    color: #e5e7eb !important;
}

.chatbot-container[data-theme="dark"] .bot-message .message-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.chatbot-container[data-theme="dark"] .user-message .message-content {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
}

.chatbot-container[data-theme="dark"] .user-message .message-content:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5) !important;
}

.chatbot-container[data-theme="dark"] .user-message .message-avatar {
    background: linear-gradient(135deg, #404040, #505050) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.chatbot-container[data-theme="dark"] .message-timestamp {
    color: rgba(255, 255, 255, 0.5) !important;
}

.chatbot-container[data-theme="dark"] .user-message .message-timestamp {
    color: rgba(255, 255, 255, 0.7) !important;
}

.chatbot-container[data-theme="dark"] .typing-indicator {
    background: #2a2a2a !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3) !important;
}

.chatbot-container[data-theme="dark"] .typing-indicator span {
    background: #60a5fa !important;
}

.chatbot-container[data-theme="dark"] .chatbot-input-container {
    background: #1f1f1f !important;
    border-top: none;
}

.chatbot-container[data-theme="dark"] .chatbot-input,
.chatbot-container[data-theme="dark"] .chatbot-input.chatbot-textarea {
    background: #2a2a2a !important;
    color: #e5e7eb !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.chatbot-container[data-theme="dark"] .chatbot-input:focus,
.chatbot-container[data-theme="dark"] .chatbot-input.chatbot-textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.chatbot-container[data-theme="dark"] .chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.chatbot-container[data-theme="dark"] .chatbot-send-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

.chatbot-container[data-theme="dark"] .chatbot-send-btn:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
}

.chatbot-container[data-theme="dark"] .chatbot-clear-btn {
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.chatbot-container[data-theme="dark"] .chatbot-clear-btn:hover {
    background: #363636 !important;
}

.chatbot-container[data-theme="dark"] .chatbot-clear-btn svg path,
.chatbot-container[data-theme="dark"] .chatbot-clear-btn svg line {
    stroke: #9ca3af !important;
    fill: #9ca3af !important;
}

.chatbot-container[data-theme="dark"] .chatbot-footer {
    background: #1f1f1f !important;
    color: #9ca3af !important;
    border-top: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2) !important;
}

.chatbot-container[data-theme="dark"] .chatbot-footer .powered-by {
    color: #9ca3af !important;
}

.chatbot-container[data-theme="dark"] .chatbot-footer .powered-link {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

#startNewChatModal[data-theme="dark"],
.chatbot-container[data-theme="dark"] ~ #startNewChatModal {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

#startNewChatModal[data-theme="dark"] .modal-content,
.chatbot-container[data-theme="dark"] ~ #startNewChatModal .modal-content {
    background-color: #514f4f !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

#startNewChatModal[data-theme="dark"] .modal-header,
.chatbot-container[data-theme="dark"] ~ #startNewChatModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#startNewChatModal[data-theme="dark"] .modal-title,
.chatbot-container[data-theme="dark"] ~ #startNewChatModal .modal-title {
    color: #ffffff !important;
}

#startNewChatModal[data-theme="dark"] .modal-body p,
.chatbot-container[data-theme="dark"] ~ #startNewChatModal .modal-body p {
    color: #9ca3af !important;
}

#startNewChatModal[data-theme="dark"] .btn-close,
.chatbot-container[data-theme="dark"] ~ #startNewChatModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#startNewChatModal[data-theme="dark"] .btn-secondary,
.chatbot-container[data-theme="dark"] ~ #startNewChatModal .btn-secondary {
    background-color: #2a2a2a !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#startNewChatModal[data-theme="dark"] .btn-secondary:hover,
.chatbot-container[data-theme="dark"] ~ #startNewChatModal .btn-secondary:hover {
    background-color: #363636 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.chatbot-container[data-theme="dark"] .chatbot-theme-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #6366f1 !important;
}

.chatbot-container[data-theme="dark"] .chatbot-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #6366f1 !important;
}

.chatbot-container[data-theme="light"] .chatbot-theme-toggle {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #fbbf24 !important;
}

.chatbot-container[data-theme="light"] .chatbot-theme-toggle:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #fbbf24 !important;
}

.chatbot-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 16px !important;
    padding: 0 !important;
}

.chatbot-theme-toggle:hover {
    transform: translateY(-2px) !important;
}

.chatbot-theme-toggle:active {
    transform: translateY(0) scale(0.98) !important;
}

@keyframes borderPulseDark {
    0%, 100% {
        border-color: #3b82f6;
    }
    50% {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.chatbot-container[data-theme="dark"] .chatbot-input:focus {
    animation: borderPulseDark 2s ease-in-out infinite !important;
}

.chatbot-container[data-theme="dark"] .chatbot-avatar-img {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
}

.chatbot-container[data-theme="dark"] .chatbot-header-content img {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.chatbot-header, .chatbot-footer, .chatbot-input-container, .user-message .message-content, .chatbot-input {
    --wp--preset--color--base: #ffffff !important;
    --wp--preset--color--contrast: #1a1a1a !important;
    --wp--preset--color--secondary: #6c757d !important;
}
.chatbot-container,
.chatbot-header,
.chatbot-messages,
.chatbot-input-container,
.chatbot-footer,
.message-content,
.chatbot-input,
.chatbot-send-btn,
.chatbot-clear-btn,
.chatbot-close,
.clear-chat-history,
.chatbot-resize,
.chatbot-theme-toggle {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.chatbot-container[data-theme="dark"] .chatbot-typing {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%) !important;
}

.chatbot-container[data-theme="light"] .good-response svg,
.chatbot-container[data-theme="light"] .bad-response svg,
.chatbot-container[data-theme="light"] .copy-response svg,
.chatbot-container[data-theme="light"] .pin-response {
    color: rgba(0, 0, 0, 0.4) !important;
}

.chatbot-container[data-theme="dark"] .good-response svg,
.chatbot-container[data-theme="dark"] .bad-response svg,
.chatbot-container[data-theme="dark"] .copy-response svg,
 .chatbot-container[data-theme="dark"] .pin-response svg{
    color: #fff;
}

.good-response:hover svg,
.bad-response:hover svg,
.copy-response:hover svg,
.pin-response svg {
    opacity: 0.7;
    cursor: pointer;
}

.chatbot-container.maximized .message-wrapper {
    max-width: 90% !important;
}

.chatbot-container.maximized .message-content {
    max-width: 100% !important;
}

.chatbot-container.minimized .message-content {
    max-width: 100% !important;
}

@media (min-width: 2560px) {
    .chatbot-container {
        width: 20% !important;
        height: 60% !important;
    }
    
    .chatbot-container.minimized {
        width: 20% !important;
        height: 60% !important;
    }
    
    .chatbot-container.maximized {
        width: 28% !important;
        height: 70% !important;
    }
    
    #startNewChatModal {
        width: 20% !important;
        height: 60% !important;
    }
    
    #startNewChatModal.minimized {
        width: 20% !important;
        height: 60% !important;
    }
    
    #startNewChatModal.maximized {
        width: 28% !important;
        height: 70% !important;
    }
}

@media (min-width: 1920px) and (max-width: 2559px) {
    .chatbot-container {
        width: 23% !important;
        height: 65% !important;
    }
    
    .chatbot-container.minimized {
        width: 23% !important;
        height: 65% !important;
    }
    
    .chatbot-container.maximized {
        width: 30% !important;
        height: 75% !important;
    }
    
    #startNewChatModal {
        width: 23% !important;
        height: 65% !important;
    }
    
    #startNewChatModal.minimized {
        width: 23% !important;
        height: 65% !important;
    }
    
    #startNewChatModal.maximized {
        width: 30% !important;
        height: 75% !important;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .chatbot-container {
        width: 30% !important;
        height: 70% !important;
    }
    
    .chatbot-container.minimized {
        width: 30% !important;
        height: 70% !important;
    }
    
    .chatbot-container.maximized {
        width: 32% !important;
        height: 80% !important;
    }
    
    #startNewChatModal {
        width: 30% !important;
        height: 70% !important;
    }
    
    #startNewChatModal.minimized {
        width: 30% !important;
        height: 70% !important;
    }
    
    #startNewChatModal.maximized {
        width: 32% !important;
        height: 80% !important;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .chatbot-container {
        width: 40% !important;
        height: 78% !important;
    }
    
    .chatbot-container.minimized {
        width: 40% !important;
        height: 78% !important;
    }
    
    .chatbot-container.maximized {
        width: 48% !important;
        height: 85% !important;
    }
    
    #startNewChatModal {
        width: 40% !important;
        height: 78% !important;
    }
    
    #startNewChatModal.minimized {
        width: 40% !important;
        height: 78% !important;
    }
    
    #startNewChatModal.maximized {
        width: 48% !important;
        height: 85% !important;
    }
    .web-assist-header{
        display: flex;
        flex-direction: column;
        gap:0px !important;
    }
    .status-indicator{
        margin-left:15px !important;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .chatbot-container {
        width: 45% !important;
        height: 75% !important;
    }
    
    .chatbot-container.minimized {
        width: 45% !important;
        height: 75% !important;
    }
    
    .chatbot-container.maximized {
        width: 55% !important;
        height: 85% !important;
    }
    
    #startNewChatModal {
        width: 45% !important;
        height: 75% !important;
    }
    
    #startNewChatModal.minimized {
        width: 45% !important;
        height: 75% !important;
    }
    
    #startNewChatModal.maximized {
        width: 55% !important;
        height: 85% !important;
    }
    
    .chatbot-header-content img {
        width: 42px !important;
        height: 42px !important;
    }
    
    .web-assist-header span {
        font-size: 17px !important;
    }
    
    .chatbot-close,
    .clear-chat-history,
    .chatbot-resize,
    .chatbot-theme-toggle {
        width: 32px !important;
        height: 32px !important;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    .chatbot-container {
        width: 60% !important;
        height: 78% !important;
    }
    
    .chatbot-container.minimized {
        width: 60% !important;
        height: 78% !important;
    }
    
    .chatbot-container.maximized {
        width: 70% !important;
        height: 88% !important;
    }
    
    #startNewChatModal {
        width: 60% !important;
        height: 78% !important;
    }
    
    #startNewChatModal.minimized {
        width: 60% !important;
        height: 78% !important;
    }
    
    #startNewChatModal.maximized {
        width: 70% !important;
        height: 88% !important;
    }
    
    .chatbot-header-content img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .web-assist-header span {
        font-size: 16px !important;
    }
    
    .chatbot-input.chatbot-textarea {
        font-size: 15px !important;
    }
}

@media (min-width: 481px) and (max-width: 600px) {
    .chatbot-container {
        width: 80% !important;
        height: 80% !important;
        margin: 5px !important;
    }
    
    .chatbot-container.minimized {
        width: 80% !important;
        height: 80% !important;
    }
    
    .chatbot-container.maximized {
        width: 95% !important;
        height: 90% !important;
    }
    
    #startNewChatModal {
        width: 80% !important;
        height: 80% !important;
    }
    
    #startNewChatModal.minimized {
        width: 80% !important;
        height: 80% !important;
    }
    
    #startNewChatModal.maximized {
        width: 95% !important;
        height: 90% !important;
    }
    
    .chatbot-header {
        padding: 10px 12px !important;
    }
    
    .chatbot-header-content {
        gap: 8px !important;
    }
    
    .chatbot-header-content img {
        width: 38px !important;
        height: 38px !important;
    }
    
    .web-assist-header {
        gap: 4px !important;
    }
    
    .web-assist-header span {
        font-size: 15px !important;
    }
    
    .web-assist-header i {
        font-size: 11px !important;
    }
    
    .chatbot-close,
    .clear-chat-history,
    .chatbot-resize,
    .chatbot-theme-toggle {
        width: 30px !important;
        height: 30px !important;
    }
    
    .chatbot-close svg,
    .chatbot-resize svg,
    .clear-chat-history svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .chatbot-input-container {
        padding: 12px 12px 0px 12px !important;
        gap: 8px !important;
    }
    
    .chatbot-input.chatbot-textarea {
        font-size: 16px !important;
        padding: 10px 12px !important;
        min-height: 42px !important;
    }
    
    .chatbot-send-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }
    
    .chatbot-clear-btn {
        width: 42px !important;
        height: 42px !important;
    }
    
    .chatbot-trigger-btn {
        width: 58px !important;
        height: 58px !important;
    }
}

/* ===== MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
    .chatbot-container {
        width: 90% !important;
        height: 85% !important;
        margin: 5px !important;
        border-radius: 16px !important;
    }
    
    .chatbot-container.minimized {
        width: 90% !important;
        height: 85% !important;
    }
    
    .chatbot-container.maximized {
        width: 98% !important;
        height: 88% !important;
    }
    
    #startNewChatModal {
        width: 90% !important;
        height: 85% !important;
        border-radius: 16px !important;
    }
    
    #startNewChatModal.minimized {
        width: 90% !important;
        height: 85% !important;
    }
    
    #startNewChatModal.maximized {
        width: 98% !important;
        height: 88% !important;
    }
    
    .chatbot-header {
        padding: 10px 12px !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
    
    .chatbot-header-content {
        flex: 1 !important;
        min-width: 0 !important;
        gap: 8px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .chatbot-header-content img,
    .chatbot-container[data-theme="dark"] .chatbot-header-content img,
    .chatbot-container[data-theme="light"] .chatbot-header-content img {
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }
    
    .web-assist-header,
    .chatbot-container[data-theme="dark"] .web-assist-header,
    .chatbot-container[data-theme="light"] .web-assist-header {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        line-height: 1.2 !important;
    }
    
    .web-assist-header span,
    .chatbot-container[data-theme="dark"] .web-assist-header span,
    .chatbot-container[data-theme="light"] .web-assist-header span {
        font-size: 15px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    .web-assist-header i,
    .chatbot-container[data-theme="dark"] .web-assist-header i,
    .chatbot-container[data-theme="light"] .web-assist-header i {
        font-size: 11px !important;
        font-weight: 400 !important;
        opacity: 0.8 !important;
    }
    
    .web-assist-header .status-indicator,
    .chatbot-container[data-theme="dark"] .web-assist-header .status-indicator,
    .chatbot-container[data-theme="light"] .web-assist-header .status-indicator {
        display: inline-flex !important;
        align-items: center !important;
        margin-left: 0 !important;
    }
    
    .web-assist-header .status-dot,
    .chatbot-container[data-theme="dark"] .web-assist-header .status-dot,
    .chatbot-container[data-theme="light"] .web-assist-header .status-dot {
        width: 6px !important;
        height: 6px !important;
    }
    
    .chatbot-header-actions,
    .chatbot-container[data-theme="dark"] .chatbot-header-actions,
    .chatbot-container[data-theme="light"] .chatbot-header-actions {
        display: flex !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
        align-items: center !important;
    }
    
    .chatbot-container[data-theme="light"] .chatbot-close,
    .chatbot-container[data-theme="light"] .clear-chat-history,
    .chatbot-container[data-theme="light"] .chatbot-resize,
    .chatbot-container[data-theme="light"] .chatbot-theme-toggle {
        width: 28px ;
        height: 28px ;
        font-size: 12px !important;
        border-radius: 8px !important;
        background: rgba(0, 0, 0, 0.04) !important;
        padding: 0 !important;
    }
    
    .chatbot-container[data-theme="light"] .chatbot-close:hover,
    .chatbot-container[data-theme="light"] .clear-chat-history:hover,
    .chatbot-container[data-theme="light"] .chatbot-resize:hover,
    .chatbot-container[data-theme="light"] .chatbot-theme-toggle:hover {
        background: rgba(0, 0, 0, 0.08) !important;
    }
    
    .chatbot-container[data-theme="light"] .chatbot-close svg,
    .chatbot-container[data-theme="light"] .chatbot-resize svg,
    .chatbot-container[data-theme="light"] .clear-chat-history svg,
    .chatbot-container[data-theme="light"] .chatbot-theme-toggle svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .chatbot-container[data-theme="dark"] .chatbot-close,
    .chatbot-container[data-theme="dark"] .clear-chat-history,
    .chatbot-container[data-theme="dark"] .chatbot-resize,
    .chatbot-container[data-theme="dark"] .chatbot-theme-toggle {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 0 !important;
    }
    
    .chatbot-container[data-theme="dark"] .chatbot-close:hover,
    .chatbot-container[data-theme="dark"] .clear-chat-history:hover,
    .chatbot-container[data-theme="dark"] .chatbot-resize:hover,
    .chatbot-container[data-theme="dark"] .chatbot-theme-toggle:hover {
        background: rgba(255, 255, 255, 0.15) !important;
    }
    
    .chatbot-container[data-theme="dark"] .chatbot-close svg,
    .chatbot-container[data-theme="dark"] .chatbot-resize svg,
    .chatbot-container[data-theme="dark"] .clear-chat-history svg,
    .chatbot-container[data-theme="dark"] .chatbot-theme-toggle svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .chatbot-close,
    .clear-chat-history,
    .chatbot-resize,
    .chatbot-theme-toggle {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        background: rgba(0, 0, 0, 0.04) !important;
        padding: 0 !important;
    }
    
    .chatbot-close svg,
    .chatbot-resize svg,
    .clear-chat-history svg,
    .chatbot-theme-toggle svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .chatbot-theme-toggle i,
    .clear-chat-history i,
    .chatbot-container[data-theme="dark"] .chatbot-theme-toggle i,
    .chatbot-container[data-theme="dark"] .clear-chat-history i,
    .chatbot-container[data-theme="light"] .chatbot-theme-toggle i,
    .chatbot-container[data-theme="light"] .clear-chat-history i {
        font-size: 12px !important;
    }
    
    .chatbot-close:active,
    .clear-chat-history:active,
    .chatbot-resize:active,
    .chatbot-container[data-theme="dark"] .chatbot-close:active,
    .chatbot-container[data-theme="dark"] .clear-chat-history:active,
    .chatbot-container[data-theme="dark"] .chatbot-resize:active,
    .chatbot-container[data-theme="light"] .chatbot-close:active,
    .chatbot-container[data-theme="light"] .clear-chat-history:active,
    .chatbot-container[data-theme="light"] .chatbot-resize:active {
        transform: scale(0.95) !important;
    }
    
    .chatbot-input-container,
    .chatbot-container[data-theme="dark"] .chatbot-input-container,
    .chatbot-container[data-theme="light"] .chatbot-input-container {
        padding: 12px 12px 0px 12px !important;
        gap: 8px !important;
    }
    
    .chatbot-input.chatbot-textarea,
    .chatbot-container[data-theme="dark"] .chatbot-input.chatbot-textarea,
    .chatbot-container[data-theme="light"] .chatbot-input.chatbot-textarea {
        font-size: 16px !important;
        padding: 10px 12px !important;
        border-radius: 18px !important;
        min-height: 40px !important;
        max-height: 120px !important;
        line-height: 1.3 !important;
    }
    
    .chatbot-send-btn,
    .chatbot-container[data-theme="dark"] .chatbot-send-btn,
    .chatbot-container[data-theme="light"] .chatbot-send-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    .chatbot-send-btn svg,
    .chatbot-container[data-theme="dark"] .chatbot-send-btn svg,
    .chatbot-container[data-theme="light"] .chatbot-send-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .chatbot-send-btn:active,
    .chatbot-container[data-theme="dark"] .chatbot-send-btn:active,
    .chatbot-container[data-theme="light"] .chatbot-send-btn:active {
        transform: scale(0.95) !important;
    }
    
    .chatbot-input.chatbot-textarea::placeholder,
    .chatbot-container[data-theme="dark"] .chatbot-input.chatbot-textarea::placeholder,
    .chatbot-container[data-theme="light"] .chatbot-input.chatbot-textarea::placeholder {
        font-size: 14px !important;
    }
    
    .chatbot-input.chatbot-textarea:focus,
    .chatbot-container[data-theme="dark"] .chatbot-input.chatbot-textarea:focus,
    .chatbot-container[data-theme="light"] .chatbot-input.chatbot-textarea:focus {
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
    }
    
    .chatbot-input,
    .chatbot-input.chatbot-textarea,
    textarea,
    .chatbot-container[data-theme="dark"] .chatbot-input,
    .chatbot-container[data-theme="dark"] .chatbot-input.chatbot-textarea,
    .chatbot-container[data-theme="light"] .chatbot-input,
    .chatbot-container[data-theme="light"] .chatbot-input.chatbot-textarea {
        font-size: 16px !important;
    }
    
    .message-content,
    .chatbot-container[data-theme="dark"] .message-content,
    .chatbot-container[data-theme="light"] .message-content {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }
    
    #chatbot-btn-wrapper.visible,
    .chatbot-trigger-container.visible {
        bottom: 18px !important;
        right: 18px !important;
    }
    
    .chatbot-trigger-btn {
        width: 56px !important;
        height: 56px !important;
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .chatbot-trigger-btn img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    
    #startNewChatModal .modal-content {
        max-width: 90% !important;
        width: 90% !important;
    }
    
    #startNewChatModal .modal-title {
        font-size: 1rem !important;
    }
    
    #startNewChatModal .modal-body p {
        font-size: 12px !important;
    }
    
    .chatbot-footer {
        font-size: 11px !important;
        padding: 10px 12px !important;
    }
}

@media (max-width: 360px) {
    .chatbot-container {
        width: 95% !important;
        height: 85% !important;
        margin: 2px !important;
    }
    
    .chatbot-container.minimized {
        width: 95% !important;
        height: 85% !important;
    }
    
    .chatbot-container.maximized {
        width: 100% !important;
        height: 88% !important;
    }
    
    #startNewChatModal {
        width: 95% !important;
        height: 85% !important;
    }
    
    #startNewChatModal.minimized {
        width: 95% !important;
        height: 85% !important;
    }
    
    #startNewChatModal.maximized {
        width: 100% !important;
        height: 88% !important;
    }
    
    .chatbot-header-content img {
        width: 32px !important;
        height: 32px !important;
    }
    
    .web-assist-header span {
        font-size: 14px !important;
    }
    
    .web-assist-header i {
        font-size: 10px !important;
    }
    
    .chatbot-close,
    .clear-chat-history,
    .chatbot-resize,
    .chatbot-theme-toggle {
        width: 23px !important;
        height: 23px !important;
    }
    
    .chatbot-send-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }
    
    .chatbot-trigger-btn {
        width: 52px !important;
        height: 52px !important;
    }
    
    .chatbot-footer {
        font-size: 10px !important;
        padding: 8px 10px !important;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .chatbot-container {
        width: 50% !important;
        height: 85% !important;
    }
    
    .chatbot-container.minimized {
        width: 50% !important;
        height: 85% !important;
    }
    
    .chatbot-container.maximized {
        width: 60% !important;
        height: 90% !important;
    }
    
    #startNewChatModal {
        width: 50% !important;
        height: 85% !important;
    }
    
    #startNewChatModal.minimized {
        width: 50% !important;
        height: 85% !important;
    }
    
    #startNewChatModal.maximized {
        width: 60% !important;
        height: 90% !important;
    }
    
    .web-assist-header {
        display: flex !important;
        flex-direction: column !important;
        gap: 0px !important;
    }
}

@media print {
    .chatbot-container,
    .chatbot-trigger-btn,
    #startNewChatModal {
        display: none !important;
    }
}

.chatbot-message.pinned .message-content {
    border: 2px solid var(--wp--preset--color--secondary, #b5a38e); 
    box-shadow: 0 0 8px 2px var(--wp--preset--color--secondary, #b5a38e);
    padding-right: 30px; 
    position: relative;
    background-color: var(--wp--preset--color--background, #ffffff); 
    transition: box-shadow 0.3s ease, border 0.3s ease;
}

.chatbot-message.pinned .message-content::after {
    content: "📌";
    position: absolute;
    bottom: 5px;
    right: 8px;
    font-size: 16px;
    opacity: 0.8;
}


.chatbot-container[data-theme="dark"] .chatbot-message.pinned .message-content {
    border: 2px solid var(--wp--preset--color--secondary, #facc15); 
    box-shadow: 0 0 8px 2px var(--wp--preset--color--secondary, #facc15);
    background-color: var(--wp--preset--color--dark, #1a1a1a);
    color: var(--wp--preset--color--light, #fff);
}
