/**
 * Celvix Chat Widget Styles
 * استایل‌های ویجت چت سلویکس
 */

/* ========== BASE STYLES ========== */
.celvix-chat-widget {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    direction: ltr;
    text-align: left;
}

.celvix-chat-widget * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ========== CHAT ICON (FLOATING BUTTON) ========== */
.celvix-chat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--icon-bg, #0073aa);
    color: var(--icon-color, #ffffff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 var(--glow-intensity, 40px) var(--icon-glow, rgba(0, 115, 170, 0.4));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.celvix-chat-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 calc(var(--glow-intensity, 40px) + 10px) var(--icon-glow, rgba(0, 115, 170, 0.4));
}

.celvix-chat-icon:active {
    transform: translateY(0) scale(0.98);
}

/* Icon SVG */
.celvix-icon-svg {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.celvix-icon-svg svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Notification Badge */
.celvix-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

/* Icon Animations */
.celvix-chat-icon[data-animation="pulse"] {
    animation: iconPulse 2s infinite;
}

.celvix-chat-icon[data-animation="bounce"] {
    animation: iconBounce 2s infinite;
}

.celvix-chat-icon[data-animation="shake"] {
    animation: iconShake 0.5s infinite;
}

.celvix-chat-icon[data-animation="tada"] {
    animation: iconTada 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes iconBounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-10px); }
    70% { transform: translateY(-5px); }
    90% { transform: translateY(-2px); }
}

@keyframes iconShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes iconTada {
    0% { transform: scale(1) rotate(0deg); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* ========== CHAT WINDOW ========== */
.celvix-chat-window {
    position: absolute;
    width: 530px;
    height: 780px;
    max-width: 95vw;
    max-height: 90vh;
    background: var(--background-color, #ffffff);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border-color, #dee2e6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

/* Position Chat Window */
.celvix-bottom-right .celvix-chat-window {
    bottom: 80px;
    right: 0;
}

.celvix-bottom-left .celvix-chat-window {
    bottom: 80px;
    left: 0;
}

.celvix-top-right .celvix-chat-window {
    top: 80px;
    right: 0;
}

.celvix-top-left .celvix-chat-window {
    top: 80px;
    left: 0;
}

.celvix-chat-window.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ========== CHAT HEADER ========== */
.celvix-chat-header {
    background: linear-gradient(135deg, var(--primary-color, #0073aa) 0%, var(--secondary-color, #6c757d) 100%);
    color: white;
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}

.celvix-chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 16px;
}

.header-info {
    flex: 1;
    min-width: 0;
}

.header-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.header-info p {
    font-size: 12px;
    opacity: 0.8;
    margin: 2px 0 0 0;
    line-height: 1.2;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-actions button {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.header-actions button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.header-actions button svg {
    width: 16px;
    height: 16px;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background: #f87171;
}

.status-text {
    font-size: 12px;
    opacity: 0.9;
}

/* ========== ONLINE ADMINS - COMPACT DESIGN ========== */
.online-admins.compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 12px 0 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    gap: 16px;
}

.admins-avatars {
    display: flex;
    align-items: center;
    gap: -10px; /* Overlap avatars slightly */
}

.admin-avatar-mini {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
    margin-left: -8px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.admin-avatar-mini:first-child {
    margin-left: 0;
}

.admin-avatar-mini:hover {
    transform: scale(1.1) translateY(-3px);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.admin-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: pulse-online 2s infinite;
}

.status-dot.away {
    background-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

@keyframes pulse-online {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.admin-avatar-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.4);
    margin-left: -8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.admin-avatar-more:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.admin-avatar-more span {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.admins-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.status-text {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.online {
    background-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse-indicator 2s infinite;
}

.status-indicator.away {
    background-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.status-indicator.offline {
    background-color: #6b7280;
    box-shadow: 0 0 10px rgba(107, 114, 128, 0.5);
}

@keyframes pulse-indicator {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* No Admins Available */
.no-admins {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .online-admins.compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admins-status {
        justify-content: flex-start;
        width: 100%;
    }
    
    .admin-avatar-mini,
    .admin-avatar-more {
        width: 48px;
        height: 48px;
        margin-left: -6px;
    }
    
    .status-text {
        font-size: 11px;
    }
    
    .status-dot {
        width: 14px;
        height: 14px;
    }
    
    .admin-avatar-more {
        font-size: 1rem;
    }
}

/* ========== CHAT MESSAGES ========== */
.celvix-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    background: #f8fafc;
    position: relative;
    width: 100%;
    display: block;
}

.celvix-chat-messages::-webkit-scrollbar {
    width: 6px;
}

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

.celvix-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-height: 100%;
}

/* Message Styles */
.message {
    display: flex;
    gap: 8px;
    animation: messageSlideIn 0.3s ease-out;
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
    max-width: 80%;
    margin-left: auto;
}

.message.bot-message,
.message.admin-message {
    align-self: flex-start;
    max-width: 80%;
    margin-right: auto;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color, #0073aa);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-end;
}

.message-avatar svg {
    width: 18px;
    height: 18px;
}

.user-message .message-avatar {
    background: var(--secondary-color, #6c757d);
}

.bot-message .message-avatar,
.admin-message .message-avatar {
    background: var(--primary-color, #0073aa);
}

/* Avatar بزرگتر برای ادمین */
.admin-avatar-large {
    width: 48px !important;
    height: 48px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid #ffffff;
}

.admin-avatar-large svg {
    width: 24px !important;
    height: 24px !important;
}

.admin-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    flex: 1;
}

.message-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    position: relative;
}

.user-message .message-bubble {
    background: var(--primary-color, #0073aa);
    color: white;
}

.message-time {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    padding: 0 4px;
}

.user-message .message-time {
    text-align: right;
}

/* نمایش نام ادمین */
.admin-name {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-weight: 500;
    direction: rtl;
}

.admin-message .admin-name {
    color: #4b5563;
}

/* Tooltip برای پیام‌های ادمین */
.admin-message {
    cursor: help;
    position: relative;
}

/* ========== MESSAGE ACTIONS ========== */
.message {
    position: relative;
}

.message-actions {
    position: absolute;
    top: 50%;
    right: -45px;
    transform: translateY(-50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    gap: 2px;
    z-index: 1000000 !important; /* بالاترین لایه برای موبایل */
    display: flex;
    transition: opacity 0.2s, visibility 0.2s;
    /* جلوگیری از رفتن زیر پیام بعدی */
    margin-bottom: 60px !important;
    margin-top: 60px !important;
    /* اطمینان از نمایش کامل */
    overflow: visible !important;
    /* جلوگیری از رفتن بیرون کادر */
    max-width: 200px;
    min-width: 120px;
}

.user-message .message-actions {
    right: auto;
    left: -45px;
}

.message:hover .message-actions,
.message.show-actions .message-actions {
    opacity: 1;
    visibility: visible;
}

/* Always show actions when message has show-actions class */
.message.show-actions .message-actions {
    opacity: 1 !important;
    visibility: visible !important;
}

.message-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
    position: relative;
    z-index: 1000001 !important; /* بالاتر از message-actions */
}

.message-action-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.message-action-btn.reply,
.message-action-btn.reply-btn {
    color: #3b82f6;
}

.message-action-btn.edit,
.message-action-btn.edit-btn {
    color: #10b981;
}

.message-action-btn.delete,
.message-action-btn.delete-btn {
    color: #ef4444;
}

.message-action-btn.copy {
    color: #8b5cf6;
}

.message-action-btn:hover.reply,
.message-action-btn:hover.reply-btn {
    background: #eff6ff;
}

.message-action-btn:hover.edit,
.message-action-btn:hover.edit-btn {
    background: #f0fdf4;
}

.message-action-btn:hover.delete,
.message-action-btn:hover.delete-btn {
    background: #fef2f2;
}

.message-action-btn:hover.copy {
    background: #faf5ff;
}

.message-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Edit Form */
.message-edit-form {
    margin-bottom: 0.5rem;
}

.message-edit-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    min-height: 60px;
    outline: none;
    transition: border-color 0.2s;
    color: #1f2937 !important;
    background: #ffffff !important;
    direction: rtl;
}

.message-edit-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.message-edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.edit-save-btn,
.edit-cancel-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.edit-save-btn {
    background: #10b981;
    color: white;
}

.edit-save-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.edit-cancel-btn {
    background: #6b7280;
    color: white;
}

.edit-cancel-btn:hover {
    background: #4b5563;
}

/* Editing State */
.message.editing .message-bubble {
    display: none;
}

.message.editing .message-edit-form {
    display: block !important;
}

/* Reply Indicator */
.message-reply {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 12px;
    color: #6b7280;
}

.message-reply-author {
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 2px;
}

.message-reply-content {
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Edit Mode */
.message.editing .message-bubble {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.message-edit-form {
    display: none;
}

.message.editing .message-edit-form {
    display: block;
}

.message.editing .message-bubble {
    display: none;
}

.message-edit-input {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 0;
    min-height: 20px;
}

.message-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.message-edit-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-edit-save {
    background: #10b981;
    color: white;
}

.message-edit-cancel {
    background: #6b7280;
    color: white;
}

.message-edit-save:hover {
    background: #059669;
}

.message-edit-cancel:hover {
    background: #4b5563;
}

/* Reply Indicator in Input Area */
.reply-indicator {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    margin: 0 20px 10px 20px;
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

.reply-indicator-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.reply-icon {
    width: 16px;
    height: 16px;
    color: #3b82f6;
    flex-shrink: 0;
}

.reply-text {
    flex: 1;
    min-width: 0;
}

.reply-author {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 2px;
}

.reply-content {
    font-size: 13px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reply-cancel {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.reply-cancel:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.reply-cancel svg {
    width: 14px;
    height: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Prevent horizontal scroll on body */
    body.celvix-chat-open {
        overflow-x: hidden !important;
        position: fixed;
        width: 100%;
    }
    
    .celvix-chat-window {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw;
        max-height: 100vh;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0;
        overflow: hidden;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .celvix-chat-messages {
        flex: 1 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 12px 8px;
        height: auto !important;
        min-height: 0;
    }
    
    .messages-container {
        overflow-x: hidden !important;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .message {
        max-width: 100% !important;
        margin-bottom: 3rem;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .message-content {
        max-width: 100%;
        overflow: hidden;
    }
    
    .message-bubble {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .message.user-message,
    .message.bot-message,
    .message.admin-message {
        max-width: 85%;
    }
    
    .message-actions {
        position: absolute;
        top: auto;
        bottom: -40px;
        left: 60%;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 6px 12px;
        border-radius: 20px;
        gap: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        /* جلوگیری از رفتن بیرون کادر */
        max-width: calc(100% - 20px);
        min-width: 200px;
    }
    
    .user-message .message-actions {
        left: 60%;
        transform: translateX(-50%);
    }
    
    .message-action-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        z-index: 1000001 !important; /* بالاترین لایه برای موبایل */
    }
    
    .message-action-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .reply-indicator {
        margin: 0 16px 10px 16px;
        max-width: calc(100% - 32px);
    }
    
    .reply-indicator-content {
        padding: 10px 12px;
        gap: 10px;
    }
    
    /* Message images and files */
    .message-image {
        max-width: 100% !important;
    }
    
    .file-download,
    .audio-message-container,
    .video-message-container {
        max-width: 100%;
    }
    
    /* Reply preview */
    .message-reply-preview {
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Admin name */
    .admin-name {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    
    /* Input area */
    .input-container {
        max-width: 100%;
        overflow: hidden;
    }
    
    .message-input-wrapper {
        max-width: 100%;
        overflow: hidden;
    }
    
    .message-input {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Chat header */
    .celvix-chat-header {
        overflow: hidden;
        max-width: 100%;
        flex-shrink: 0;
    }
    
    .header-info {
        max-width: 100%;
        overflow: hidden;
    }
    
    .header-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Chat input area */
    .celvix-chat-input {
        flex-shrink: 0;
        overflow: hidden;
    }
    
    /* Pre-chat sections */
    .celvix-pre-chat-form,
    .celvix-department-selection,
    .celvix-faq-section {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 0;
    }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== PRE-CHAT FORM ========== */
.celvix-pre-chat-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: white;
    color: var(--primary-color, #0073aa);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-tab svg {
    width: 18px;
    height: 18px;
}

.auth-form {
    display: none;
    flex-direction: column;
    flex: 1;
}

.auth-form.active {
    display: flex;
}

.form-header {
    text-align: center;
    margin-bottom: 24px;
}

.form-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.form-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.auth-form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color, #0073aa);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--primary-color, #0073aa);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    background: var(--secondary-color, #005a87);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.auth-submit-btn svg {
    width: 18px;
    height: 18px;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
}

.guest-continue-btn {
    padding: 10px 20px;
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guest-continue-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

/* ========== DEPARTMENT SELECTION ========== */
.celvix-department-selection {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow-y: auto;
}

.dept-header {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dept-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.dept-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    flex: 1;
    margin-bottom: 24px;
    align-content: start;
}

.department-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    animation: departmentFadeIn 0.5s ease-out backwards;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color, #0073aa) 0%, 
        #3b82f6 50%, 
        #8b5cf6 100%
    );
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.department-card:hover::before {
    transform: scaleX(1);
}

.department-card:nth-child(1) { animation-delay: 0.1s; }
.department-card:nth-child(2) { animation-delay: 0.2s; }
.department-card:nth-child(3) { animation-delay: 0.3s; }
.department-card:nth-child(4) { animation-delay: 0.4s; }
.department-card:nth-child(5) { animation-delay: 0.5s; }
.department-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes departmentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.department-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color, #0073aa);
}

.department-card:active {
    transform: translateY(-4px) scale(0.98);
}

.department-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, 
        var(--primary-color, #0073aa) 0%, 
        #3b82f6 100%
    );
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.department-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.5) 0%, 
        rgba(139, 92, 246, 0.5) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.department-card:hover .department-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.department-card:hover .department-icon::after {
    opacity: 1;
}

.department-icon svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s ease;
}

.department-card:hover .department-icon svg {
    transform: scale(1.1);
}

.department-name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.department-card:hover .department-name {
    color: var(--primary-color, #0073aa);
}

.department-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    min-height: 36px;
    transition: color 0.3s ease;
}

.department-card:hover .department-desc {
    color: #475569;
}

.dept-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-to-auth-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.back-to-auth-btn svg {
    width: 16px;
    height: 16px;
}

/* ========== FAQ SECTION ========== */
.celvix-faq-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
}

.faq-header {
    text-align: center;
    margin-bottom: 24px;
}

.faq-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 8px 0;
}

.faq-header p {
    font-size: 14px;
    color: #a16207;
    margin: 0;
}

.faq-categories {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.faq-category {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-category-header {
    padding: 16px 20px;
    background: #fffbeb;
    border-bottom: 1px solid #fed7aa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.faq-category-header:hover {
    background: #fef3c7;
}

.faq-category-title {
    font-size: 15px;
    font-weight: 600;
    color: #92400e;
}

.faq-category-icon {
    width: 20px;
    height: 20px;
    color: #d97706;
    transition: transform 0.2s ease;
}

.faq-category.active .faq-category-icon {
    transform: rotate(180deg);
}

.faq-items {
    display: none;
    padding: 0;
}

.faq-category.active .faq-items {
    display: block;
}

.faq-item {
    padding: 12px 20px;
    border-bottom: 1px solid #fed7aa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-item:hover {
    background: #fffbeb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.faq-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.back-to-dept-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-to-dept-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.start-chat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color, #0073aa);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-chat-btn:hover {
    background: var(--secondary-color, #005a87);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.start-chat-btn svg {
    width: 18px;
    height: 18px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    animation: messageSlideIn 0.3s ease-out;
}

.typing-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color, #0073aa);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: typingDot 1.4s infinite ease-in-out;
}

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

@keyframes typingDot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========== CHAT INPUT ========== */
.celvix-chat-input {
    background: white;
    border-top: 1px solid var(--border-color, #dee2e6);
    padding: 16px;
    position: relative;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 24px;
    padding: 8px;
    transition: all 0.2s ease;
    min-height: 52px;
}

.input-container:focus-within {
    background: #e2e8f0;
    box-shadow: 0 0 0 2px var(--primary-color, #0073aa);
}

.features-menu-btn,
.send-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--secondary-color, #6c757d);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.features-menu-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-color, #0073aa);
}

.send-btn {
    background: var(--primary-color, #0073aa);
    color: white;
}

.send-btn:hover {
    background: var(--secondary-color, #6c757d);
    transform: scale(1.05);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.features-menu-btn svg,
.send-btn svg {
    width: 20px;
    height: 20px;
}

.message-input-wrapper {
    flex: 1;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.message-input {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-color, #212529) !important;
    padding: 0;
    margin: 0;
    min-height: 20px;
    height: 20px;
    max-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Ensure placeholder is fully visible */
.message-input::placeholder {
    line-height: 1.4;
    padding: 0;
    opacity: 0.7;
}

/* Hide scrollbar when not needed */
.message-input:not(:focus) {
    overflow-y: hidden;
}

/* Show scrollbar only when content exceeds max-height */
.message-input::-webkit-scrollbar {
    width: 4px;
}

.message-input::-webkit-scrollbar-track {
    background: transparent;
}

.message-input::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.message-input::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.message-input::placeholder {
    color: var(--secondary-color, #6c757d);
    opacity: 0.7;
}

/* Force text color for typed text */
.celvix-chat-window .message-input,
.celvix-chat-window .message-input:focus,
.celvix-chat-window .message-input:active {
    color: var(--text-color, #212529) !important;
}

/* ========== FEATURES DROPDOWN ========== */
.features-dropdown {
    position: absolute;
    bottom: 100%;
    left: 16px;
    right: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 9999;
    display: block !important;
}

.features-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: all;
}

.feature-item {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-color, #212529);
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: #f1f5f9;
    color: var(--primary-color, #0073aa);
}

.feature-item svg {
    width: 20px;
    height: 20px;
    color: var(--secondary-color, #6c757d);
}

.feature-item:hover svg {
    color: var(--primary-color, #0073aa);
}

/* ========== FAQ MODAL ========== */
.celvix-faq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    padding: 20px;
}

.celvix-faq-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: celvix-faq-modal-appear 0.3s ease-out;
}

@keyframes celvix-faq-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.celvix-faq-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.celvix-faq-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.celvix-faq-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.celvix-faq-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.celvix-faq-modal-body {
    padding: 20px 24px;
    max-height: 400px;
    overflow-y: auto;
}

.faq-answer {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
}

.celvix-faq-modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.celvix-faq-chat-btn,
.celvix-faq-close-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.celvix-faq-chat-btn {
    background: #0073aa;
    color: white;
}

.celvix-faq-chat-btn:hover {
    background: #005a87;
}

.celvix-faq-close-btn {
    background: #f3f4f6;
    color: #374151;
}

.celvix-faq-close-btn:hover {
    background: #e5e7eb;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet */
/* ========== RESPONSIVE: SMALL DESKTOP (1366x768 and similar) ========== */
@media (max-width: 1440px) and (min-width: 769px) {
    .celvix-chat-window {
        width: min(480px, 90vw);
        height: min(700px, 85vh);
    }
}

@media (max-height: 900px) and (min-width: 769px) {
    .celvix-chat-window {
        height: 85vh;
        max-height: 700px;
    }
    
    .celvix-chat-header {
        padding: 12px 16px;
    }
    
    .celvix-chat-messages {
        padding: 12px;
    }
    
    .input-container {
        padding: 10px 14px;
    }
}

@media (max-height: 800px) and (min-width: 769px) {
    .celvix-chat-window {
        height: 80vh;
        max-height: 600px;
    }
    
    /* Adjust position for small height screens */
    .celvix-bottom-right .celvix-chat-window,
    .celvix-bottom-left .celvix-chat-window {
        bottom: 70px;
    }
    
    .celvix-top-right .celvix-chat-window,
    .celvix-top-left .celvix-chat-window {
        top: 70px;
    }
    
    .celvix-chat-header {
        padding: 10px 14px;
        min-height: 60px;
    }
    
    .header-title {
        font-size: 14px;
    }
    
    .header-subtitle {
        font-size: 11px;
    }
    
    .admin-avatar {
        width: 36px;
        height: 36px;
    }
    
    .celvix-chat-messages {
        padding: 10px;
    }
    
    .message-content {
        max-width: 280px;
    }
    
    .message-bubble {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .input-container {
        padding: 8px 12px;
        min-height: 50px;
    }
    
    .message-input {
        font-size: 13px;
        padding: 0;
        min-height: 20px;
    }
    
    /* Adjust features dropdown for small screens */
    .features-dropdown {
        max-height: 250px;
    }
    
    /* Adjust department selection for small screens */
    .celvix-department-selection {
        padding: 20px 16px;
    }
    
    .dept-header h3 {
        font-size: 18px;
    }
    
    .dept-header p {
        font-size: 12px;
    }
    
    .departments-grid {
        gap: 12px;
    }
    
    .department-card {
        padding: 16px 12px;
    }
    
    .dept-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    
    .dept-name {
        font-size: 13px;
    }
    
    .dept-description {
        font-size: 11px;
    }
}

/* Very small desktop (1366x768) */
@media (max-width: 1366px) and (max-height: 768px) and (min-width: 769px) {
    .celvix-chat-window {
        width: min(420px, 85vw);
        height: 75vh;
        max-height: 550px;
    }
    
    .celvix-bottom-right .celvix-chat-window,
    .celvix-bottom-left .celvix-chat-window {
        bottom: 65px;
    }
    
    .celvix-top-right .celvix-chat-window,
    .celvix-top-left .celvix-chat-window {
        top: 65px;
    }
    
    .celvix-chat-header {
        padding: 10px 14px;
        min-height: 58px;
    }
    
    .header-title {
        font-size: 14px;
    }
    
    .header-subtitle {
        font-size: 11px;
    }
    
    .admin-avatar {
        width: 34px;
        height: 34px;
    }
    
    .celvix-chat-messages {
        padding: 10px;
    }
    
    .message-content {
        max-width: 260px;
    }
    
    .message-bubble {
        padding: 7px 11px;
        font-size: 12.5px;
    }
    
    .input-container {
        padding: 8px 12px;
        min-height: 48px;
    }
    
    .message-input {
        font-size: 12.5px;
        padding: 6px 0;
        min-height: 20px;
    }
    
    .send-btn,
    .features-menu-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    
    .celvix-department-selection {
        padding: 18px 14px;
    }
    
    .dept-header h3 {
        font-size: 17px;
    }
    
    .dept-header p {
        font-size: 11.5px;
    }
    
    .departments-grid {
        gap: 10px;
    }
    
    .department-card {
        padding: 14px 10px;
    }
    
    .dept-icon {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }
    
    .dept-name {
        font-size: 12.5px;
    }
    
    .dept-description {
        font-size: 10.5px;
    }
    
    .features-dropdown {
        max-height: 230px;
    }
    
}

@media (max-width: 1024px) and (min-width: 769px) {
    .celvix-chat-window {
        width: min(450px, 90vw);
        height: min(650px, 85vh);
    }
    
    .celvix-chat-header {
        padding: 14px 16px;
    }
    
    .header-title {
        font-size: 15px;
    }
    
    .header-subtitle {
        font-size: 12px;
    }
    
    .celvix-chat-messages {
        padding: 14px 12px;
    }
    
    .message-content {
        max-width: 280px;
    }
    
    .input-container {
        padding: 10px 12px;
    }
    
    .message-input {
        font-size: 13px;
        min-height: 20px;
    }
}

/* ========== RESPONSIVE: TABLET ========== */
@media (max-width: 768px) {
    .celvix-chat-window {
        width: 420px;
        height: 650px;
    }
    
    .celvix-chat-icon {
        width: 56px;
        height: 56px;
    }
    
    .celvix-icon-svg {
        width: 24px;
        height: 24px;
    }
    
    .celvix-chat-messages {
        padding: 12px 8px;
    }
    
    .messages-container {
        gap: 6px;
    }
    
    .message {
        gap: 6px;
    }
    
    .message.user-message,
    .message.bot-message,
    .message.admin-message {
        max-width: 85%;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
    }
    
    .message-avatar svg {
        width: 16px;
        height: 16px;
    }
    
    /* Message actions for tablet */
    .message-actions {
        position: absolute;
        top: auto;
        bottom: -38px;
        left: 60%;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 6px 10px;
        border-radius: 18px;
        gap: 6px;
        z-index: 1000000 !important; /* بالاترین لایه برای تبلت */
        /* جلوگیری از رفتن زیر پیام بعدی */
        margin-bottom: 50px !important;
        overflow: visible !important;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        /* جلوگیری از رفتن بیرون کادر */
        max-width: calc(100% - 20px);
        min-width: 180px;
    }
    
    .user-message .message-actions {
        right: auto;
        left: 8px;
    }
    
    .message {
        margin-bottom: 2.5rem;
    }
    
    .message-action-btn {
        width: 34px;
        height: 34px;
    }
    
    /* Pre-chat forms tablet optimization */
    .celvix-pre-chat-form {
        padding: 25px 20px;
    }
    
    .form-header h3 {
        font-size: 22px;
    }
    
    .auth-form-content {
        gap: 18px;
    }
    
    .form-group input {
        padding: 13px 16px;
        font-size: 15px;
    }
    
    .auth-submit-btn {
        padding: 15px 24px;
        font-size: 15px;
    }
    
    /* Department selection tablet */
    .celvix-department-selection {
        padding: 25px 20px;
    }
    
    .dept-header h3 {
        font-size: 21px;
    }
    
    .departments-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .department-card {
        padding: 20px 14px;
    }
    
    .department-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
    }
    
    .department-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .department-name {
        font-size: 16px;
    }
    
    .department-desc {
        font-size: 12px;
        min-height: 32px;
    }
    
    /* FAQ section tablet */
    .celvix-faq-section {
        padding: 25px 20px;
    }
    
    .faq-header h3 {
        font-size: 21px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    /* ویجت فقط وقتی chat window باز باشه کل صفحه رو بگیره */
    body.celvix-chat-open .celvix-chat-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 999999;
    }
    
    /* آیکون ویجت نرمال بمونه */
    .celvix-chat-icon {
        position: fixed !important;
        width: 60px !important;
        height: 60px !important;
        z-index: 999999;
    }
    
    /* وقتی chat بسته است، ویجت نباید روی صفحه باشه */
    body:not(.celvix-chat-open) .celvix-chat-widget {
        pointer-events: none;
    }
    
    /* فقط آیکون قابل کلیک باشه */
    body:not(.celvix-chat-open) .celvix-chat-icon {
        pointer-events: auto;
    }
    
    .celvix-chat-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .celvix-chat-icon {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        z-index: 1000000;
    }
    
    .celvix-chat-messages {
        padding: 10px 6px;
    }
    
    .messages-container {
        gap: 4px;
    }
    
    .message {
        gap: 6px;
        /* جلوگیری از رفتن اکشن‌ها زیر پیام بعدی */
        margin-bottom: 100px !important;
        position: relative;
        z-index: 1;
        /* اطمینان از نمایش کامل */
        overflow: visible !important;
    }
    
    .message.user-message,
    .message.bot-message,
    .message.admin-message {
        max-width: 90%;
    }
    
    .message-avatar {
        width: 26px;
        height: 26px;
    }
    
    .message-avatar svg {
        width: 14px;
        height: 14px;
    }
    
    .features-dropdown {
        position: fixed;
        bottom: 90px;
        left: 16px;
        right: 16px;
        width: auto;
        z-index: 999999;
    }
    
    /* Pre-chat forms mobile optimization */
    .celvix-pre-chat-form {
        padding: 20px 16px;
    }
    
    .form-header {
        margin-bottom: 20px;
    }
    
    .form-header h3 {
        font-size: 20px;
    }
    
    .auth-form-content {
        gap: 16px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-group {
        gap: 4px;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .auth-submit-btn {
        padding: 16px 24px;
        font-size: 16px;
        margin-top: 4px;
    }
    
    .auth-footer {
        margin-top: 16px;
    }
    
    .guest-continue-btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    /* Department selection mobile */
    .celvix-department-selection {
        padding: 20px 16px;
    }
    
    .dept-header {
        margin-bottom: 24px;
    }
    
    .dept-header h3 {
        font-size: 20px;
    }
    
    .dept-header p {
        font-size: 14px;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .department-card {
        padding: 20px 16px;
        border-radius: 14px;
    }
    
    .department-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
        border-radius: 16px;
    }
    
    .department-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .department-name {
        font-size: 17px;
        margin-bottom: 6px;
    }
    
    .department-desc {
        font-size: 13px;
        min-height: auto;
    }
    
    /* Disable complex hover effects on mobile */
    .department-card:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    }
    
    .department-card:hover .department-icon {
        transform: scale(1.05) rotate(0deg);
    }
    
    .department-icon::after {
        display: none;
    }
    
    /* FAQ section mobile */
    .celvix-faq-section {
        padding: 20px 16px;
    }
    
    .faq-header h3 {
        font-size: 20px;
    }
    
    .faq-category {
        margin-bottom: 12px;
    }
    
    .faq-category-header {
        padding: 14px 16px;
    }
    
    .faq-category-title {
        font-size: 15px;
    }
    
    .faq-item {
        padding: 12px 16px;
    }
    
    .faq-question {
        font-size: 14px;
    }
    
    .back-to-auth-btn,
    .back-to-dept-btn,
    .start-chat-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    .celvix-chat-window {
        background: #1e293b;
        color: #f1f5f9;
    }
    
    .celvix-chat-messages {
        background: #0f172a;
    }
    
    .message-bubble {
        background: #334155;
        color: #f1f5f9;
    }
    
    .input-container {
        background: #334155;
    }
    
    .input-container:focus-within {
        background: #475569;
    }
    
    .message-input {
        color: #f1f5f9;
    }
    
    .features-dropdown {
        background: #1e293b;
        color: #f1f5f9;
    }
    
    .feature-item:hover {
        background: #334155;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    .celvix-chat-icon,
    .celvix-chat-window,
    .message,
    .features-dropdown {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus Styles */
.celvix-chat-icon:focus,
.header-actions button:focus,
.features-menu-btn:focus,
.send-btn:focus,
.feature-item:focus {
    outline: 2px solid var(--primary-color, #0073aa);
    outline-offset: 2px;
}

.message-input:focus {
    outline: none;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .celvix-chat-window {
        border: 2px solid var(--text-color, #212529);
    }
    
    .message-bubble {
        border: 1px solid var(--text-color, #212529);
    }
    
    .celvix-chat-icon {
        border: 2px solid var(--icon-color, #ffffff);
    }
}

/* ========== LOADING SPINNER ========== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--secondary-color, #6c757d);
    font-size: 14px;
}

.loading-spinner::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color, #dee2e6);
    border-top: 2px solid var(--primary-color, #007bff);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== NOTIFICATIONS ========== */
.celvix-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.celvix-notification-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #0d47a1;
}

.celvix-notification-success {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
    color: #1b5e20;
}

.celvix-notification-error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #b71c1c;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    margin-left: 12px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

.notification-close svg {
    width: 16px;
    height: 16px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== FILE MESSAGES ========== */
.file-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s ease;
}

.file-download:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.file-download svg {
    flex-shrink: 0;
}

.edited-indicator {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
    margin-left: 6px;
}

/* ========== MEDIA IN MESSAGES ========== */
.message-image {
    display: block;
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.message-image:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.message-caption {
    margin-top: 8px;
    font-size: 14px;
    color: inherit;
}

/* Audio Message Container */
.audio-message-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    max-width: 300px;
}

.user-message .audio-message-container {
    background: rgba(255, 255, 255, 0.1);
}

.voice-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #007bff);
    border-radius: 50%;
    color: white;
}

.message-audio {
    flex: 1;
    height: 32px;
    border-radius: 8px;
}

.message-video {
    display: block;
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 4px;
}

.file-name {
    font-weight: 500;
    font-size: 13px;
    margin-top: 4px;
}

.file-size {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

/* User messages - media styling */
.user-message .message-image,
.user-message .message-video {
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.user-message .message-audio {
    filter: brightness(1.05);
}

/* Bot messages - media styling */
.bot-message .file-download {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: inherit;
}

.bot-message .file-download:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Legacy support */
.message-bubble img {
    display: block;
    max-width: 100%;
    height: auto;
}

.message-bubble audio,
.message-bubble video {
    display: block;
    max-width: 100%;
}

/* ========== VOICE RECORDING UI (Modern WhatsApp Style) ========== */
.voice-recording-controls {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #f0f2f5;
    border-top: none;
    gap: 15px;
    animation: slideInUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delete/Cancel Button */
.cancel-recording-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cancel-recording-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.cancel-recording-btn:active {
    transform: scale(0.95);
}

.cancel-recording-btn svg {
    width: 24px;
    height: 24px;
    fill: #54656f;
}

/* Recording Info Container */
.recording-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
.recording-info::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 168, 132, 0.03) 50%, 
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Recording Dot with ripple effect */
.recording-pulse {
    width: 12px;
    height: 12px;
    background: #f44336;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    animation: pulse-beat 1.5s ease-in-out infinite;
}

.recording-pulse::before,
.recording-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #f44336;
    opacity: 0;
}

.recording-pulse::before {
    animation: ripple 1.5s ease-out infinite;
}

.recording-pulse::after {
    animation: ripple 1.5s ease-out 0.5s infinite;
}

@keyframes pulse-beat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Recording Time */
.recording-time {
    font-weight: 500;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: #111b21;
    letter-spacing: 0.3px;
    z-index: 1;
}

/* Send Button with WhatsApp green */
.send-recording-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #00a884;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 168, 132, 0.4);
}

.send-recording-btn:hover {
    background: #00916f;
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 168, 132, 0.5);
}

.send-recording-btn:active {
    transform: scale(0.95);
}

.send-recording-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Slide to cancel text (optional) */
.recording-info::after {
    content: '< Slide to cancel';
    position: absolute;
    left: 20px;
    font-size: 14px;
    color: #8696a0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.recording-info:hover::after {
    opacity: 0.6;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .voice-recording-controls {
        padding: 10px 16px;
        gap: 12px;
    }
    
    .cancel-recording-btn {
        width: 44px;
        height: 44px;
    }
    
    .cancel-recording-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .recording-info {
        padding: 10px 16px;
        gap: 10px;
    }
    
    .recording-info::after {
        font-size: 13px;
        left: 16px;
    }
    
    .recording-pulse {
        width: 10px;
        height: 10px;
    }
    
    .recording-time {
        font-size: 15px;
    }
    
    .send-recording-btn {
        width: 48px;
        height: 48px;
    }
    
    .send-recording-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ========== Reply Preview ========== */
.message-reply-preview {
    position: relative;
}

.message-reply-preview:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

/* ========== Animations ========== */
@keyframes highlight {
    0% {
        background: rgba(59, 130, 246, 0);
        transform: scale(1);
    }
    50% {
        background: rgba(59, 130, 246, 0.2);
        transform: scale(1.02);
    }
    100% {
        background: rgba(59, 130, 246, 0);
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message {
    animation: slideIn 0.3s ease;
}

/* ========== MODERN FAQ STYLES ========== */
.modern-faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modern-faq-item:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);
    transform: translateY(-1px);
}

.faq-header {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-header:hover {
    background: #f1f5f9;
}

.faq-question-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.faq-number {
    background: #0073aa;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.faq-question-text {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
    flex: 1;
}

.faq-toggle {
    color: #6b7280;
    transition: all 0.3s ease;
}

.faq-chevron {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.faq-content {
    padding: 0 20px 20px;
    background: #ffffff;
}

.faq-answer-content {
    margin-bottom: 16px;
}

.faq-answer-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.faq-answer-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #0073aa;
    white-space: pre-wrap;
}

.faq-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.faq-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.faq-action-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.faq-action-btn.edit-faq-btn:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.faq-action-btn.delete-faq-btn:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
}

.faq-action-btn.copy-faq-btn:hover {
    background: #f0fdf4;
    border-color: #10b981;
    color: #059669;
}

.faq-action-btn i {
    font-size: 11px;
}

/* FAQ List Container */
.faq-list {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.faq-list:empty::after {
    content: "No FAQs available";
    display: block;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
}
