/* Enhanced Frontend Widget Styles */
.askany-chat-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    --primary-color: #4a6cf7;
    --primary-hover: #3c57d0;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --light-bg: #f5f7fb;
    --border-color: #e3e8ef;
    --bubble-user: var(--primary-color);
    --bubble-ai: #f0f2f5;
    --bubble-user-text: #fff;
    --bubble-ai-text: #333;
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-round: 50px;
    --anim-speed: 0.3s;
}

/* Widget positioning */
/* Chat Widget Container New style*/
.askany-chat-widget {
    position: fixed;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.askany-chat-widget.bottom-right {
    bottom: 20px;
    right: 20px;
}

.askany-chat-widget.bottom-left {
    bottom: 20px;
    left: 20px;
}

.askany-chat-widget.top-right {
    top: 20px;
    right: 20px;
}

.askany-chat-widget.top-left {
    top: 20px;
    left: 20px;
}

.askany-chat-widget.inline {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
}

/* Enhanced Chat Toggle Button */
.askany-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4), 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.askany-chat-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.askany-chat-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5), 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #5a6fd8 0%, #6b42a0 100%);
}

.askany-chat-toggle:hover::before {
    left: 100%;
}

.toggle-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.askany-chat-icon img {
    width: 100%;
}

.askany-chat-icon {
    color: white;
    transition: all 0.3s ease;
}

.askany-chat-toggle:hover .askany-chat-icon {
    transform: scale(1.1) rotate(5deg);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    animation: askany-pulse 2s infinite;
}

@keyframes askany-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
    }
}

/* Enhanced Chat Container */
.askany-chat-container {
    width: 395px;
    height: 620px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: askany-slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.askany-chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: askany-gradient-flow 3s ease infinite;
}

@keyframes askany-gradient-flow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes askany-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.askany-chat-widget.inline .askany-chat-container {
    width: 100%;
    max-width: 800px;
    height: 700px;
    margin: 0 auto;
    border-radius: 16px;
}

/* Enhanced Chat Header */
.askany-chat-header {
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)); */
    background: linear-gradient(135deg, #d1edff, rgba(255, 255, 255, 0.7));
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.askany-chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assistant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.assistant-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-indicator {
    font-size: 12px;
    color: #48bb78;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    animation: askany-status-pulse 2s infinite;
}

@keyframes askany-status-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

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

.action-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #667eea;
}

.askany-chat-close:hover {
    color: #e53e3e;
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
}

/* Enhanced Content Wrapper */
.askany-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Get Started Page */
.askany-get-started-page {
    padding: 32px 24px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.8), rgba(255, 255, 255, 0.9));
}

.get-started-content {
    max-width: 400px;
    width: 100%;
}

.get-started-header {
    text-align: center;
    margin-bottom: 32px;
}

.get-started-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.get-started-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.get-started-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.get-started-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.get-started-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.get-started-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.get-started-form label .required {
    color: #dc3232;
    margin-left: 2px;
}

.get-started-form input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.get-started-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.get-started-submit-btn {
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.get-started-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.get-started-submit-btn:active {
    transform: translateY(0);
}

.get-started-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced Home Page Content */
.askany-home-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.8), rgba(255, 255, 255, 0.9));
}

.askany-home-content::-webkit-scrollbar {
    width: 6px;
}

.askany-home-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.askany-home-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

.home-logo-section {
    text-align: center;
    margin-bottom: 24px;
}

.home-logo {
    max-width: 120px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.home-agents-section {
    text-align: center;
    margin-bottom: 20px;
}

.agents-avatars {
    display: flex;
    justify-content: center;
    gap: -8px;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-left: -8px;
}

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

.agent-avatar:hover {
    transform: translateY(-2px) scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.home-welcome-section {
    text-align: center;
    margin-bottom: 32px;
}

.welcome-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wave-emoji {
    animation: askany-wave 2s infinite;
}

@keyframes askany-wave {

    0%,
    50%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(20deg);
    }
}

.welcome-subtitle {
    color: #718096;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

.home-actions-section {
    space-y: 12px;
}

.home-action-item {
    margin-bottom: 12px;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.action-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s ease;
}

.action-link:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.action-link:hover::before {
    left: 100%;
}

.action-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.action-link:hover .action-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-content {
    flex: 1;
}

.action-title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
    font-size: 15px;
}

.action-subtitle {
    color: #718096;
    font-size: 13px;
    font-weight: 500;
}

/* Enhanced FAQ Section */
.home-faq-section {
    margin-top: 24px;
}

.faq-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
    text-align: center;
}

.faq-list {
    space-y: 8px;
}

.faq-item {
    margin-bottom: 8px;
}

.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2d3748;
    backdrop-filter: blur(10px);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #393939;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question svg {
    transition: transform 0.3s ease;
    color: #667eea;
}

.faq-question.active svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-top: 4px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Enhanced Main Navigation Tabs */
.askany-main-tabs {
    display: flex;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.askany-main-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.main-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #718096;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.main-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 0 0 3px 3px;
    transition: width 0.3s ease;
}

.main-tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.main-tab-btn.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.main-tab-btn.active::before {
    width: 60%;
}

.main-tab-btn svg {
    transition: all 0.3s ease;
}

.main-tab-btn:hover svg,
.main-tab-btn.active svg {
    transform: scale(1.1);
}


/* Enhanced Messages Area */
.askany-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.8), rgba(255, 255, 255, 0.9));
    position: relative;
}

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

.askany-chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.askany-chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

/* Enhanced Messages */
.askany-message {
    margin-bottom: 16px;
    display: flex;
    animation: askany-message-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes askany-message-slide-in {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.askany-message.user {
    justify-content: flex-end;
}

.askany-message.assistant,
.askany-message.agent {
    justify-content: flex-start;
}

.askany-message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.askany-message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.askany-message-bubble:hover::before {
    left: 100%;
}

.askany-message.user .askany-message-bubble {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-bottom-right-radius: 6px;
}

.askany-message.assistant .askany-message-bubble,
.askany-message.agent .askany-message-bubble {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #2d3748;
    border-bottom-left-radius: 6px;
}

.askany-message-content {
    line-height: 1.5;
    font-weight: 500;
    word-wrap: break-word;
}

.askany-message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    font-weight: 600;
}

/* Enhanced Suggested Prompts */

.suggested-prompts {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    animation: askany-fade-in 0.4s ease;
}


.prompt-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.prompt-label {
    font-size: 12px;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close-prompts-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-prompts-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: scale(1.1);
}

.prompt-items {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prompt-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.prompt-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: #667eea;
}


/* Chat Messages Area */
.askany-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.askany-chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.askany-chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.askany-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Chat Message Bubbles */
.chat-message {
    display: flex;
    margin-bottom: 12px;
    animation: slideIn 0.3s ease-out;
}

/* .chat-message.user-message {
    justify-content: flex-end;
} */

.chat-message.assistant-message {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* User Message Styling */
.chat-message.user-message .message-bubble {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Assistant Message Styling */
.chat-message.assistant-message .message-bubble {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

/* Enhanced Chat Input */
.askany-chat-input {
    padding: 16px 20px 20px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}



.input-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    padding: 0px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-bottom: 12px;
    position: relative;
}

.input-container:focus-within {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.attachment-btn,
.emoji-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #718096;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -5px;
}

.submit-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #718096;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -5px;
}

.attachment-btn:hover,
.emoji-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: scale(1.1);
}

.submit-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: scale(1.1);
}

.send-btn {
    background-color: rgba(102, 126, 234, 0.1);
    color: #718096;
    border: none;
    border-radius: var(--radius-round);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-soft);
}

.send-btn:hover {
    background-color: rgba(86, 116, 248, 0.1);
    transform: scale(1.05);
    box-shadow: var(--shadow-strong);
}

.input-container input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    background: transparent;
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.input-container input::placeholder {
    color: #a0aec0;
    font-weight: 500;
}

/* chat conversation style  */


/* -----------------------------END New Style for Chat Widget------------------------------------- */



/* Emoji picker */
.emoji-picker {
    position: absolute;
    bottom: 70px;
    right: 20px;
    background-color: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-strong);
    padding: 10px;
    display: none;
    z-index: 100;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(10px);
    animation: fade-in 0.2s forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emoji-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.emoji {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.emoji:hover {
    background-color: var(--light-bg);
    transform: scale(1.1);
}

/* Chat footer */
.chat-footer {
    padding: 8px 15px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.powered-by {
    font-size: 11px;
    color: var(--light-text);
    text-align: center;
    display: block;
}

/* Loading indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--light-text);
    border-radius: 50%;
    opacity: 0.6;
    animation: typing-dot-animation 1s infinite;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dot-animation {
    0% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-5px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0.6;
    }
}

/* Remote typing indicators */
.remote-typing-indicator {
    margin-bottom: 12px;
    animation: slideIn 0.3s ease-out;
}

.remote-typing-indicator .message-bubble {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    font-style: italic;
    padding: 8px 12px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.remote-typing-indicator-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-text {
    font-size: 13px;
    font-weight: 500;
}

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

.typing-dots .typing-dot {
    width: 6px;
    height: 6px;
    background-color: #667eea;
    border-radius: 50%;
    animation: typing-dot-animation 1.2s infinite;
}

.typing-dots .typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dot-animation {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Search indicator */
.search-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    gap: 8px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.search-icon {
    color: var(--primary-color);
    animation: search-spin 2s linear infinite;
    flex-shrink: 0;
}

.search-text {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 13px;
    margin-right: 4px;
}

.search-dots {
    display: flex;
    gap: 3px;
}

.search-dots .typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
}

@keyframes search-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {

    .askany-chat-toggle {}

    .input-container {
        width: 80%;
    }

    .askany-chat-header h3 {
        font-size: 13px;
    }

    .send-btn {
        font-size: 13px;
    }

    .askany-chat-container {
        width: 325px;
        height: 522px;
    }

    .product-image {
        width: 50px;
        height: 50px;
    }

    .askany-chat-container {
        width: 95vw;
        max-width: 380px;
        height: 85vh;
        max-height: 600px;
        bottom: 10px;
        right: 10px;
        left: 10px;
        margin: 0 auto;
    }

    /* Input container mobile responsiveness */
    .input-container {
        width: 100% !important;
        flex-wrap: nowrap;
        align-items: center;
        padding: 8px;
        margin-bottom: 8px;
    }

    .input-container input {
        flex: 1;
        min-width: 0;
        padding: 8px 10px;
        font-size: 14px;
        margin: auto;
    }

    /* Ensure buttons are visible */
    .attachment-btn,
    .emoji-btn,
    .submit-btn,
    .send-btn {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        padding: 6px;
        margin: 0 2px;
    }

    /* Chat input area */
    .askany-chat-input {
        padding: 12px 15px 15px 15px;
    }

    /* Messages area height adjustment */
    .askany-chat-messages {
        height: calc(100% - 200px);
        min-height: 250px;
    }

    /* Suggested prompts mobile */
    .suggested-prompts {
        margin-bottom: 8px;
    }

    .prompt-items {
        padding: 8px;
        gap: 6px;
    }

    .prompt-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Product images */
    .product-image {
        width: 50px;
        height: 50px;
    }
}

/* Tab System Styling */
.askany-chat-tabs {
    display: flex;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn svg {
    margin-right: 5px;
    flex-shrink: 0;
}

.tab-btn span {
    display: inline-block;
    line-height: 1;
}

.tab-btn.active {
    color: #3182ce;
    border-bottom-color: #3182ce;
}

.tab-btn.active svg {
    stroke: #3182ce;
}

.tab-btn:focus {
    outline: none;
}

.askany-chat-tabs .tab-btn {
    flex: 1;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
}

.askany-chat-tabs .tab-btn:hover {
    color: var(--primary-color);
}

.askany-chat-tabs .tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.askany-chat-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    animation: tab-highlight 0.3s ease forwards;
}

@keyframes tab-highlight {
    from {
        transform: scaleX(0.5);
        opacity: 0.5;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.askany-chat-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    /* Important for flex child to shrink */
}

/* -----------------Contact form tab styling------------------- */
.askany-contact-form {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: var(--light-bg);
}

/* Ensure contact form looks good within the widget */
.askany-contact-form form {
    max-width: 100% !important;
}

.askany-contact-form input[type="text"],
.askany-contact-form input[type="email"],
.askany-contact-form input[type="tel"],
.askany-contact-form textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.askany-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.askany-contact-form input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.askany-contact-form input[type="submit"]:hover {
    background-color: var(--primary-hover);
}

/* Adjust message container height for tabs */
.askany-chat-widget.with-tabs .askany-chat-messages {
    /* max-height: calc(100% - 115px); */
    /* height: calc(70% - 115px); */
    height: 80%;
}

/* END  */