/**
 * AiOmid Chatbot Styles
 *
 * Frontend widget styles (glassmorphism, animations) + admin dashboard styles.
 *
 * @package AiOmid
 */

/* ═══════════════════════════════════════════
   FRONTEND CHATBOT WIDGET
   ═══════════════════════════════════════════ */

/* Container */
.aiomid-cw {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 12px;
    direction: ltr;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Icon (Glassmorphism) ── */
.aiomid-cw-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(46,204,113,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    animation: cw-fadeInUp 0.5s ease-out;
}
.aiomid-cw-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.aiomid-cw-icon svg {
    width: 26px;
    height: 26px;
    fill: #2ecc71;
}

/* Pulse ring */
.aiomid-cw-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(46,204,113,0.3);
    animation: cw-pulse 2s ease-out infinite;
}

/* ── Speech Bubble ── */
.aiomid-cw-speech {
    background: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    max-width: 240px;
    position: relative;
    opacity: 0;
    animation: cw-fadeInLeft 0.4s 0.5s ease-out forwards;
}
.aiomid-cw-speech p {
    margin: 0;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}
.aiomid-cw-speech::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #fff;
}

/* ── Chat Window ── */
.aiomid-cw-window {
    position: fixed;
    right: 92px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    width: 380px;
    height: 500px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    border: 1px solid rgba(255,255,255,0.3);
}
.aiomid-cw-window.open {
    display: flex;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Header */
.aiomid-cw-header {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.aiomid-cw-header-title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
}
.aiomid-cw-header-close {
    cursor: pointer;
    font-size: 22px;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}
.aiomid-cw-header-close:hover {
    opacity: 1;
}

/* Messages Area */
.aiomid-cw-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafb;
    scroll-behavior: smooth;
}
.aiomid-cw-messages::-webkit-scrollbar {
    width: 4px;
}
.aiomid-cw-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

/* Message Row */
.aiomid-cw-msg-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: cw-msgIn 0.3s ease-out;
}
.aiomid-cw-msg-row.user {
    flex-direction: row-reverse;
}

/* Avatar */
.aiomid-cw-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.aiomid-cw-avatar.bot {
    background: #2ecc71;
    color: #fff;
}
.aiomid-cw-avatar.user {
    background: #e5e7eb;
    color: #6b7280;
}

/* Message Bubble */
.aiomid-cw-bubble {
    max-width: 75%;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.6;
    position: relative;
}
/* ═══ Bot Message Typography ═══ */

/* Bot bubble - professional */
.aiomid-cw-bubble.bot {
    background: linear-gradient(135deg, #ffffff, #f9fff9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 20px 20px 20px 8px;
    padding: 16px 20px;
    max-width: 85%;
    color: #1e2a3a;
    font-family: 'Vazirmatn', 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
    word-spacing: -0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
}

/* Bold keywords */
.aiomid-cw-bubble.bot strong,
.aiomid-cw-bubble.bot b {
    font-weight: 700;
    color: #2ecc71;
}

/* Product names */
.aiomid-cw-product-name {
    font-weight: 800;
    color: #27ae60;
    border-bottom: 1px dashed rgba(46,204,113,0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}
.aiomid-cw-product-name:hover {
    color: #1e8449;
    border-bottom-style: solid;
}

/* Highlighted text */
.aiomid-cw-highlight {
    background: rgba(46,204,113,0.1);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline;
    font-weight: 600;
}

/* Lists */
.aiomid-cw-bubble.bot ul,
.aiomid-cw-bubble.bot ol {
    padding-right: 24px;
    margin: 12px 0;
    list-style-type: none;
}
.aiomid-cw-bubble.bot li {
    margin: 8px 0;
    position: relative;
    padding-right: 20px;
    font-size: 15px;
    line-height: 1.75;
}
.aiomid-cw-bubble.bot li::before {
    content: "📌";
    position: absolute;
    right: 0;
    font-size: 14px;
}

/* Paragraphs */
.aiomid-cw-bubble.bot p {
    margin: 10px 0;
    text-align: right;
    direction: rtl;
}
.aiomid-cw-bubble.bot p:first-of-type { margin-top: 0; }
.aiomid-cw-bubble.bot p:last-child { margin-bottom: 0; }

/* Links */
.aiomid-cw-bubble.bot a {
    color: #2ecc71;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted rgba(46,204,113,0.5);
    transition: all 0.2s ease;
}
.aiomid-cw-bubble.bot a:hover {
    color: #27ae60;
    border-bottom-style: solid;
}

/* Custom scrollbar */
.aiomid-cw-messages::-webkit-scrollbar { width: 5px; }
.aiomid-cw-messages::-webkit-scrollbar-track { background: rgba(46,204,113,0.1); border-radius: 10px; }
.aiomid-cw-messages::-webkit-scrollbar-thumb { background: #2ecc71; border-radius: 10px; }

.aiomid-cw-bubble.user {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    border-radius: 18px 4px 18px 18px;
}

/* Message time */
.aiomid-cw-time {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
}

/* Typing Indicator */
.aiomid-cw-typing {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.aiomid-cw-typing-bubble {
    background: #f1f5f9;
    border-radius: 4px 18px 18px 18px;
    padding: 12px 16px;
    display: flex;
    gap: 4px;
}
.aiomid-cw-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    animation: cw-typing 1.4s infinite;
}
.aiomid-cw-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.aiomid-cw-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Quick Replies */
.aiomid-cw-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 8px;
}
.aiomid-cw-quick-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid #2ecc71;
    background: #fff;
    color: #2ecc71;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}
.aiomid-cw-quick-btn:hover {
    background: #2ecc71;
    color: #fff;
    transform: translateY(-1px);
}

/* Book Card */
.aiomid-cw-book {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin: 4px 0;
    max-width: 85%;
}
.aiomid-cw-book img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.aiomid-cw-book-info {
    padding: 10px 12px;
}
.aiomid-cw-book-info h4 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}
.aiomid-cw-book-info p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
}
.aiomid-cw-book-info a {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 14px;
    background: #2ecc71;
    color: #fff;
    border-radius: 16px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.2s;
}
.aiomid-cw-book-info a:hover {
    background: #27ae60;
}

/* Input Area */
.aiomid-cw-input {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
}
.aiomid-cw-input-field {
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    direction: ltr;
    background: #f8fafb;
}
.aiomid-cw-input-field:focus {
    border-color: #2ecc71;
    background: #fff;
}
.aiomid-cw-input-field::placeholder {
    color: #94a3b8;
}
.aiomid-cw-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.aiomid-cw-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46,204,113,0.4);
}
.aiomid-cw-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ═══ Animations ═══ */
@keyframes cw-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes cw-fadeInLeft {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes cw-msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes cw-typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}
@keyframes cw-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ═══ MOBILE & WEBVIEW FIXES ═══ */

/* Force widget visibility on all devices */
.aiomid-cw {
    position: fixed !important;
    z-index: 999999 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    will-change: transform;
}

/* Force icon visibility */
.aiomid-cw-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* ═══ MOBILE: Chat window fullscreen ═══ */
@media screen and (max-width: 768px) {
    /* Widget container - bottom right for ICON ONLY */
    .aiomid-cw {
        position: fixed !important;
        right: 16px !important;
        top: auto !important;
        bottom: 20px !important;
        left: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .aiomid-cw-icon {
        width: 52px !important;
        height: 52px !important;
    }

    .aiomid-cw-speech {
        display: none !important;
    }

    /* Chat window - responsive card on mobile (like desktop but smaller) */
    .aiomid-cw-window {
        position: fixed !important;
        top: auto !important;
        left: auto !important;
        right: 8px !important;
        bottom: 80px !important;
        width: calc(100vw - 16px) !important;
        max-width: 360px !important;
        height: 65vh !important;
        max-height: 500px !important;
        min-height: 300px !important;
        border-radius: 20px !important;
        transform: none !important;
        -webkit-transform: none !important;
        overflow: hidden !important;
    }

    .aiomid-cw-window.open {
        transform: none !important;
        -webkit-transform: none !important;
        display: flex !important;
    }

    .aiomid-cw-header {
        border-radius: 20px 20px 0 0 !important;
        flex-shrink: 0;
    }

    .aiomid-cw-messages {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        min-height: 0 !important;
    }

    .aiomid-cw-input {
        flex-shrink: 0 !important;
        padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
    }
}

/* Small mobile */
@media screen and (max-width: 480px) {
    .aiomid-cw {
        right: 14px !important;
        bottom: 16px !important;
    }
    .aiomid-cw-icon {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Mobile chat uses responsive card (no fullscreen, no body scroll lock needed) */


/* ═══ Product Card (Glassmorphism) ═══ */
.aiomid-cw-product-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(46,204,113,0.3);
    border-radius: 20px;
    padding: 14px 18px;
    margin: 10px 0;
    transition: all 0.25s ease;
    direction: rtl;
    text-align: right;
}
.aiomid-cw-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #2ecc71;
}
.aiomid-cw-product-card-title {
    font-weight: 700;
    font-size: 15px;
    color: #1e2a3a;
    margin-bottom: 6px;
    font-family: 'Vazirmatn', 'Segoe UI', system-ui, sans-serif;
}
.aiomid-cw-product-card-price {
    font-size: 13px;
    color: #2ecc71;
    font-weight: 600;
    margin-bottom: 12px;
}
.aiomid-cw-product-card-price .discount {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 700;
}
.aiomid-cw-glass-btn {
    display: inline-block;
    background: rgba(46,204,113,0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(46,204,113,0.4);
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #2ecc71;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: 'Vazirmatn', 'Segoe UI', system-ui, sans-serif;
}
.aiomid-cw-glass-btn:hover {
    background: #2ecc71;
    color: #fff;
    border-color: #2ecc71;
    transform: scale(1.02);
}

/* ═══ Customer Registration Form ═══ */
.aiomid-cw-register {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: linear-gradient(180deg, #f8fafb 0%, #fff 100%);
    direction: rtl;
}
.aiomid-cw-register-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e2a3a;
    text-align: center;
    margin-bottom: 6px;
    font-family: 'Vazirmatn', sans-serif;
}
.aiomid-cw-register-desc {
    font-size: 13px;
    color: #5a6e7a;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Vazirmatn', sans-serif;
}
.aiomid-cw-form-group {
    width: 100%;
    margin-bottom: 14px;
}
.aiomid-cw-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 5px;
    padding-right: 4px;
    font-family: 'Vazirmatn', sans-serif;
}
.aiomid-cw-form-group input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(46,204,113,0.3);
    border-radius: 14px;
    font-size: 14px;
    font-family: 'Vazirmatn', sans-serif;
    color: #1e2a3a;
    transition: all 0.2s ease;
    box-sizing: border-box;
    direction: rtl;
}
.aiomid-cw-form-group input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46,204,113,0.15);
    background: #fff;
}
.aiomid-cw-form-group input::placeholder {
    color: #b0c4b0;
    font-size: 13px;
}
.aiomid-cw-form-group input.error {
    border-color: #e74c3c;
    background: rgba(231,76,60,0.03);
}
.aiomid-cw-form-error {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 4px;
    padding-right: 4px;
    display: none;
    font-family: 'Vazirmatn', sans-serif;
}
.aiomid-cw-form-group input.valid {
    border-color: #2ecc71;
}
.aiomid-cw-register-btn {
    width: 100%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    border-radius: 40px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(46,204,113,0.3);
    margin-top: 6px;
}
.aiomid-cw-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,204,113,0.4);
}
.aiomid-cw-register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.aiomid-cw-register-btn:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN DASHBOARD STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Admin Message Alignment Override (LTR context) ──────────────────────── */

.aiomid-cb-quick-messages .aiomid-msg-user,
.aiomid-cb-test-messages .aiomid-msg-user,
.aiomid-cb-modal-body .aiomid-msg-user {
    align-self: flex-end;
    background: #2563eb;
    color: #fff;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 12px;
}

.aiomid-cb-quick-messages .aiomid-msg-bot,
.aiomid-cb-test-messages .aiomid-msg-bot,
.aiomid-cb-modal-body .aiomid-msg-bot {
    align-self: flex-start;
    background: #fff;
    color: #1d2327;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 4px;
}

.aiomid-cb-quick-messages .aiomid-msg-loading,
.aiomid-cb-test-messages .aiomid-msg-loading,
.aiomid-cb-modal-body .aiomid-msg-loading {
    align-self: flex-start;
}

.aiomid-cb-quick-messages .aiomid-msg,
.aiomid-cb-test-messages .aiomid-msg,
.aiomid-cb-modal-body .aiomid-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    animation: none;
}

/* ─── Tab Navigation ───────────────────────────────────────────────────────── */

.aiomid-cb-tabs {
    display: flex;
    gap: 4px;
    background: var(--aiomid-glass-bg, rgba(255,255,255,0.4));
    backdrop-filter: blur(var(--aiomid-blur, 12px));
    -webkit-backdrop-filter: blur(var(--aiomid-blur, 12px));
    border: 1px solid var(--aiomid-glass-border, rgba(255,255,255,0.5));
    border-radius: var(--aiomid-radius-lg, 24px);
    padding: 6px;
    margin-bottom: 1.5rem;
    box-shadow: var(--aiomid-glass-shadow, 0 8px 32px rgba(0,0,0,0.1));
    overflow-x: auto;
    flex-wrap: nowrap;
}

.aiomid-cb-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    border-radius: var(--aiomid-radius-md, 16px);
    cursor: pointer;
    font-family: var(--aiomid-font-main, inherit);
    font-size: 13px;
    font-weight: 600;
    color: var(--aiomid-text-muted, #64748b);
    transition: var(--aiomid-transition, all 0.3s ease);
    white-space: nowrap;
}

.aiomid-cb-tab:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--aiomid-text-main, #1e293b);
}

.aiomid-cb-tab.active {
    background: linear-gradient(135deg, var(--aiomid-primary, #10b981), var(--aiomid-secondary, #06b6d4));
    color: #fff;
    box-shadow: 0 4px 15px var(--aiomid-primary-glow, rgba(16,185,129,0.4));
}

.aiomid-cb-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ─── Tab Content ──────────────────────────────────────────────────────────── */

.aiomid-cb-tab-content {
    display: none;
}

.aiomid-cb-tab-content.active {
    display: block;
    animation: aiomid-cb-fadein 0.3s ease;
}

@keyframes aiomid-cb-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Stats Cards Grid ─────────────────────────────────────────────────────── */

.aiomid-cb-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .aiomid-cb-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .aiomid-cb-stats-grid { grid-template-columns: 1fr; }
}

.aiomid-cb-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--aiomid-glass-bg, rgba(255,255,255,0.4));
    backdrop-filter: blur(var(--aiomid-blur, 12px));
    -webkit-backdrop-filter: blur(var(--aiomid-blur, 12px));
    border: 1px solid var(--aiomid-glass-border, rgba(255,255,255,0.5));
    border-radius: var(--aiomid-radius-md, 16px);
    padding: 1.2rem;
    box-shadow: var(--aiomid-glass-shadow, 0 8px 32px rgba(0,0,0,0.1));
    transition: var(--aiomid-transition, all 0.3s ease);
}

.aiomid-cb-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.aiomid-cb-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.aiomid-cb-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.aiomid-cb-stat-info {
    min-width: 0;
}

.aiomid-cb-stat-number {
    font-family: var(--aiomid-font-num, 'Inter', sans-serif);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--aiomid-text-title, #0f172a);
}

.aiomid-cb-stat-label {
    color: var(--aiomid-text-muted, #64748b);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 2px;
}

/* ─── Toolbar ──────────────────────────────────────────────────────────────── */

.aiomid-cb-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.aiomid-cb-toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.aiomid-cb-search-input {
    padding: 8px 14px;
    border: 1px solid var(--aiomid-glass-border, #d0d5dd);
    border-radius: 10px;
    font-size: 13px;
    font-family: var(--aiomid-font-main, inherit);
    background: var(--aiomid-glass-bg, #fff);
    min-width: 200px;
    outline: none;
    transition: border-color 0.2s;
}

.aiomid-cb-search-input:focus {
    border-color: var(--aiomid-primary, #10b981);
    box-shadow: 0 0 0 2px var(--aiomid-primary-glow, rgba(16,185,129,0.2));
}

.aiomid-cb-select {
    padding: 8px 14px;
    border: 1px solid var(--aiomid-glass-border, #d0d5dd);
    border-radius: 10px;
    font-size: 13px;
    font-family: var(--aiomid-font-main, inherit);
    background: var(--aiomid-glass-bg, #fff);
    outline: none;
    cursor: pointer;
}

/* ─── Table ────────────────────────────────────────────────────────────────── */

.aiomid-cb-table {
    border-radius: var(--aiomid-radius-md, 12px) !important;
    overflow: hidden;
}

.aiomid-cb-table th {
    background: linear-gradient(135deg, var(--aiomid-primary, #10b981), var(--aiomid-secondary, #06b6d4));
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    padding: 10px 12px;
    border: none;
}

.aiomid-cb-table td {
    padding: 10px 12px;
    vertical-align: middle;
    font-size: 13px;
}

.aiomid-cb-table tr:hover td {
    background: rgba(16, 185, 129, 0.04);
}

/* ─── Badges & Status ──────────────────────────────────────────────────────── */

.aiomid-cb-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--aiomid-primary, #10b981), var(--aiomid-secondary, #06b6d4));
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.aiomid-cb-badge-blue {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.aiomid-cb-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.aiomid-cb-status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.aiomid-cb-status-closed {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* ─── Pagination ───────────────────────────────────────────────────────────── */

.aiomid-cb-pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.aiomid-cb-page-btn {
    padding: 6px 14px;
    border: 1px solid var(--aiomid-glass-border, #d0d5dd);
    background: var(--aiomid-glass-bg, #fff);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--aiomid-text-muted, #64748b);
    transition: all 0.2s;
}

.aiomid-cb-page-btn:hover {
    border-color: var(--aiomid-primary, #10b981);
    color: var(--aiomid-primary, #10b981);
}

.aiomid-cb-page-btn.active {
    background: linear-gradient(135deg, var(--aiomid-primary, #10b981), var(--aiomid-secondary, #06b6d4));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px var(--aiomid-primary-glow, rgba(16,185,129,0.3));
}

/* ─── Quick Chat & Test Chat ───────────────────────────────────────────────── */

.aiomid-cb-quick-chat,
.aiomid-cb-test-chat {
    border: 1px solid var(--aiomid-glass-border, #e0e0e0);
    border-radius: var(--aiomid-radius-md, 16px);
    overflow: hidden;
    background: #f8f9fa;
}

.aiomid-cb-quick-messages,
.aiomid-cb-test-messages {
    min-height: 250px;
    max-height: 450px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aiomid-cb-quick-input,
.aiomid-cb-test-input {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

.aiomid-cb-quick-input input,
.aiomid-cb-test-input textarea {
    flex: 1;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--aiomid-font-main, inherit);
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.aiomid-cb-quick-input input:focus,
.aiomid-cb-test-input textarea:focus {
    border-color: var(--aiomid-primary, #10b981);
    box-shadow: 0 0 0 2px var(--aiomid-primary-glow, rgba(16,185,129,0.2));
}

/* ─── Message Meta ─────────────────────────────────────────────────────────── */

.aiomid-cb-msg-meta {
    font-size: 11px;
    color: var(--aiomid-text-muted, #94a3b8);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e0e0e0;
}

.aiomid-cb-msg-time {
    font-size: 10px;
    color: var(--aiomid-text-muted, #94a3b8);
    margin-top: 4px;
    text-align: left;
}

/* ─── Test Meta Bar ────────────────────────────────────────────────────────── */

.aiomid-cb-test-meta {
    display: flex;
    gap: 1.5rem;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(6,182,212,0.06));
    border-top: 1px solid rgba(16,185,129,0.15);
    font-size: 12px;
    color: var(--aiomid-text-muted, #64748b);
}

.aiomid-cb-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.aiomid-cb-meta-item .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--aiomid-primary, #10b981);
}

/* ─── Knowledge Base Form ──────────────────────────────────────────────────── */

.aiomid-cb-kb-add-form {
    background: rgba(16, 185, 129, 0.04);
    border: 1px dashed rgba(16, 185, 129, 0.2);
    border-radius: var(--aiomid-radius-md, 16px);
    padding: 1.2rem;
}

.aiomid-cb-kb-form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.aiomid-cb-kb-form-row input,
.aiomid-cb-kb-form-row textarea {
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: var(--aiomid-font-main, inherit);
    outline: none;
    transition: border-color 0.2s;
}

.aiomid-cb-kb-form-row input:focus,
.aiomid-cb-kb-form-row textarea:focus {
    border-color: var(--aiomid-primary, #10b981);
    box-shadow: 0 0 0 2px var(--aiomid-primary-glow, rgba(16,185,129,0.2));
}

/* ─── Settings Form ────────────────────────────────────────────────────────── */

.aiomid-cb-settings-form .form-table th {
    font-weight: 700;
    color: var(--aiomid-text-title, #0f172a);
    padding: 15px 10px 15px 0;
    width: 200px;
    vertical-align: top;
}

.aiomid-cb-settings-form .form-table td {
    padding: 15px 10px;
}

.aiomid-cb-settings-form .form-table input[type="text"],
.aiomid-cb-settings-form .form-table textarea,
.aiomid-cb-settings-form .form-table select {
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: var(--aiomid-font-main, inherit);
    outline: none;
    transition: border-color 0.2s;
}

.aiomid-cb-settings-form .form-table input[type="text"]:focus,
.aiomid-cb-settings-form .form-table textarea:focus,
.aiomid-cb-settings-form .form-table select:focus {
    border-color: var(--aiomid-primary, #10b981);
    box-shadow: 0 0 0 2px var(--aiomid-primary-glow, rgba(16,185,129,0.2));
}

.aiomid-cb-settings-form input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #d0d5dd;
    border-radius: 10px;
    cursor: pointer;
    padding: 2px;
}

/* ─── Toggle Switch (Radio-style Red/Green) ──────────────────────────────── */

.aiomid-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.aiomid-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.aiomid-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ef4444;
    border-radius: 26px;
    transition: all 0.3s;
}

.aiomid-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.aiomid-toggle input:checked + .aiomid-toggle-slider {
    background: #22c55e;
}

.aiomid-toggle input:checked + .aiomid-toggle-slider::before {
    transform: translateX(24px);
}

/* ─── Modal ────────────────────────────────────────────────────────────────── */

.aiomid-cb-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.aiomid-cb-modal-content {
    background: var(--aiomid-bg, #fff);
    border-radius: var(--aiomid-radius-lg, 24px);
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.aiomid-cb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--aiomid-glass-border, #e0e0e0);
    background: linear-gradient(135deg, var(--aiomid-primary, #10b981), var(--aiomid-secondary, #06b6d4));
    color: #fff;
}

.aiomid-cb-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.aiomid-cb-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0;
}

.aiomid-cb-modal-close:hover {
    opacity: 1;
}

.aiomid-cb-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aiomid-cb-modal-body .aiomid-msg {
    max-width: 90%;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.aiomid-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: var(--aiomid-radius-btn, 40px);
    font-family: var(--aiomid-font-main, inherit);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--aiomid-transition, all 0.3s ease);
    text-decoration: none;
    white-space: nowrap;
}

.aiomid-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.aiomid-btn-primary {
    background: linear-gradient(135deg, var(--aiomid-primary, #10b981), var(--aiomid-secondary, #06b6d4));
    color: #fff;
    box-shadow: 0 4px 12px var(--aiomid-primary-glow, rgba(16,185,129,0.3));
}

.aiomid-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--aiomid-primary-glow, rgba(16,185,129,0.4));
    color: #fff;
}

.aiomid-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.aiomid-btn-secondary {
    background: var(--aiomid-glass-bg, rgba(255,255,255,0.6));
    color: var(--aiomid-text-main, #1e293b);
    border: 1px solid var(--aiomid-glass-border, #d0d5dd);
}

.aiomid-btn-secondary:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--aiomid-primary, #10b981);
    color: var(--aiomid-primary, #10b981);
}

.aiomid-btn-danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.aiomid-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: #fff;
}

/* ─── Spin Animation ───────────────────────────────────────────────────────── */

.spin {
    animation: aiomid-spin 1s linear infinite;
}

@keyframes aiomid-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ─── Dashboard Responsive ─────────────────────────────────────────────────── */

@media (max-width: 782px) {
    .aiomid-cb-tabs {
        border-radius: var(--aiomid-radius-md, 16px);
        padding: 4px;
    }

    .aiomid-cb-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .aiomid-cb-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .aiomid-cb-toolbar-actions {
        flex-direction: column;
    }

    .aiomid-cb-search-input {
        min-width: unset;
        width: 100%;
    }

    .aiomid-cb-settings-form .form-table th {
        width: auto;
        display: block;
        padding-bottom: 4px;
    }

    .aiomid-cb-settings-form .form-table td {
        display: block;
        padding-top: 0;
    }

    .aiomid-cb-modal {
        padding: 1rem;
    }

    .aiomid-cb-modal-content {
        max-height: 90vh;
    }
}

/* ═══ Customer Registration Form ═══ */
.aiomid-cw-register {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,253,244,0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    direction: rtl;
    text-align: center;
    gap: 12px;
}
.aiomid-cw-register h3 {
    font-family: 'Vazirmatn', 'Segoe UI', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e2a3a;
    margin: 0 0 4px;
}
.aiomid-cw-register p {
    font-family: 'Vazirmatn', 'Segoe UI', system-ui, sans-serif;
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.6;
}
.aiomid-cw-register input {
    width: 100%;
    max-width: 280px;
    padding: 12px 16px;
    border: 1px solid rgba(46,204,113,0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-family: 'Vazirmatn', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    color: #1e2a3a;
    outline: none;
    transition: all 0.25s ease;
    text-align: right;
    direction: rtl;
}
.aiomid-cw-register input::placeholder {
    color: #94a3b8;
}
.aiomid-cw-register input:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46,204,113,0.15);
}
.aiomid-cw-register button {
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Vazirmatn', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 4px;
}
.aiomid-cw-register button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46,204,113,0.35);
}
.aiomid-cw-register button:active {
    transform: translateY(0);
}
.aiomid-cw-register button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Green Light Glassmorphic Theme Additions
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Chatbot Glassmorphic Theme Variables --- */
.aiomid-chatbot {
    --cb-primary: #2ecc71;
    --cb-primary-dark: #27ae60;
    --cb-glass-bg: rgba(255, 255, 255, 0.92);
    --cb-glass-border: rgba(46, 204, 113, 0.3);
    --cb-shadow: 0 8px 32px rgba(46, 204, 113, 0.2);
    font-family: 'Vazirmatn', 'Segoe UI', system-ui, sans-serif;
}

/* Chatbot window */
.aiomid-chatbot-window {
    background: var(--cb-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--cb-glass-border);
    border-radius: 20px;
    box-shadow: var(--cb-shadow);
    overflow: hidden;
}

/* Chatbot header */
.aiomid-chatbot-header {
    background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-dark));
    color: #fff;
    padding: 16px 20px;
    border-radius: 20px 20px 0 0;
}

/* Chatbot messages */
.aiomid-chatbot-messages {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.aiomid-chatbot-message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 85%;
}

.aiomid-chatbot-message.user {
    background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-dark));
    color: #fff;
    margin-left: auto;
    border-radius: 16px 16px 4px 16px;
}

.aiomid-chatbot-message.assistant {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #2c3e50;
    border-radius: 16px 16px 16px 4px;
}

/* Chatbot input */
.aiomid-chatbot-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--cb-glass-border);
    background: rgba(255, 255, 255, 0.5);
}

.aiomid-chatbot-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--cb-glass-border);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    direction: rtl;
    outline: none;
    transition: border-color 0.3s ease;
}

.aiomid-chatbot-input:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

/* Chatbot send button */
.aiomid-chatbot-send {
    background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
}

.aiomid-chatbot-send:hover {
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    transform: translateY(-1px);
}

/* Chatbot icon */
.aiomid-chatbot-icon {
    background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-dark));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.aiomid-chatbot-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.5);
}

/* Product cards in chatbot */
.aiomid-chatbot-product-card-alt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--cb-glass-border);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.aiomid-chatbot-product-card-alt:hover {
    border-color: var(--cb-primary);
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
}

.aiomid-cp-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.aiomid-cp-img-placeholder {
    width: 50px;
    height: 50px;
    background: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.aiomid-cp-name {
    font-weight: 600;
    font-size: 13px;
    color: #2c3e50;
}

.aiomid-cp-price {
    color: var(--cb-primary);
    font-weight: 700;
    font-size: 14px;
}

.aiomid-cp-link {
    display: inline-block;
    padding: 4px 12px;
    background: var(--cb-primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.aiomid-cp-link:hover {
    background: var(--cb-primary-dark);
}

/* Order tracking form */
.aiomid-order-track-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--cb-glass-border);
    border-radius: 12px;
}

.aiomid-otf-input {
    padding: 8px 12px;
    border: 1px solid var(--cb-glass-border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    direction: rtl;
    outline: none;
}

.aiomid-otf-input:focus {
    border-color: var(--cb-primary);
}

.aiomid-otf-submit {
    background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

/* Typing indicator */
.aiomid-chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 8px 14px;
}

.aiomid-chatbot-typing span {
    width: 8px;
    height: 8px;
    background: var(--cb-primary);
    border-radius: 50%;
    animation: aiomidTyping 1.4s infinite;
}

.aiomid-chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.aiomid-chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiomidTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}
