/**
 * Hybrid AI Chatbot - Complete Frontend Styles
 * Standalone CSS - NO external dependencies
 */

/* Container & Positioning */
#ams-chatbot-container {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#ams-chatbot-container * {
    box-sizing: border-box;
}

.ams-chatbot-bottom-right {
    bottom: 24px;
    right: 24px;
}

.ams-chatbot-bottom-left {
    bottom: 24px;
    left: 24px;
}

/* Chat Button */
.ams-chat-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bot-primary, #4CAF50) 0%, color-mix(in srgb, var(--bot-primary, #4CAF50) 80%, black) 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.ams-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.ams-chat-button:active {
    transform: scale(0.95);
}

.ams-chat-button svg,
.ams-chat-button img {
    width: 28px;
    height: 28px;
}

.ams-chat-button img.ams-chat-icon {
    width: 60px;
    height: 60px;
    object-fit: fill;
    border-radius: 50%;
}

.ams-chat-button.active .ams-chat-icon {
    display: none;
}

.ams-chat-button.active .ams-close-icon {
    display: block;
}

.ams-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

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

/* Chat Window */
.ams-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    max-width: calc(100vw - 48px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

.ams-chatbot-bottom-left .ams-chat-window {
    right: auto;
    left: 0;
}

/* Chat Header */
.ams-chat-header {
    background: #075E54;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.ams-bot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ams-bot-avatar svg,
.ams-bot-avatar img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ams-bot-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.ams-bot-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.ams-bot-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.ams-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.ams-header-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.ams-header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ams-header-btn svg {
    width: 20px;
    height: 20px;
}

/* Chat Messages - WhatsApp Background */
.ams-chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    background: #E5DDD5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

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

.ams-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ams-chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

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

/* Message Bubbles - WhatsApp Style */
.ams-message {
    display: flex;
    margin-bottom: 8px;
    animation: slideUp 0.3s ease-out;
    align-items: flex-end;
    clear: both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* User Messages - Right Aligned */
.ams-message.user {
    justify-content: flex-end;
}

/* Bot/Agent Messages - Left Aligned with Avatar */
.ams-message.bot,
.ams-message.agent {
    justify-content: flex-start;
}

/* Message Bubble Container */
.ams-message-content {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    min-width: 0;
    overflow-wrap: break-word;
}

.ams-message.user .ams-message-content {
    align-items: flex-end;
}

.ams-message.bot .ams-message-content,
.ams-message.agent .ams-message-content {
    align-items: flex-start;
}

/* Message Bubble */
.ams-message-bubble {
    padding: 10px 14px;
    border-radius: 8px;
    position: relative;
    word-wrap: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.5;
    font-size: 14px;
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
    min-width: fit-content;
}

/* User Message Bubble - WhatsApp Green */
.ams-message.user .ams-message-bubble {
    background: linear-gradient(135deg, #DCF8C6 0%, #D5F5C0 100%);
    color: #000;
    border-radius: 8px 8px 0 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Bot Message Bubble - White */
.ams-message.bot .ams-message-bubble {
    background: #FFFFFF;
    color: #000;
    border-radius: 8px 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Agent Message Bubble - Light Blue Gradient */
.ams-message.agent .ams-message-bubble {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #0d47a1;
    border-radius: 8px 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(33, 150, 243, 0.1);
}

/* Message Avatar - Only for Bot/Agent */
.ams-message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
    font-size: 14px;
}

.ams-message.bot .ams-message-avatar {
    background: #25D366;
    color: white;
}

.ams-message.agent .ams-message-avatar {
    background: #2196F3;
    color: white;
}

/* Hide avatar for user messages */
.ams-message.user .ams-message-avatar {
    display: none;
}

/* Agent Name */
.ams-agent-name {
    font-size: 12px;
    font-weight: 600;
    color: #2196F3;
    margin-bottom: 4px;
    padding: 0 4px;
}

/* Message Timestamp */
.ams-message-time {
    font-size: 11px;
    color: #667781;
    margin-top: 2px;
    padding: 0 4px;
}

/* Quick Suggestions - Enhanced Style */
.ams-suggestions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.ams-suggestion-btn {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1.5px solid #E2E8F0;
    padding: 7px 15px;
    margin-right: 3px;
    border-radius: 20px;
    font-size: 11px;
    color: #128C7E;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.ams-suggestion-btn::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.5s ease;
}

.ams-suggestion-btn:hover::before {
    left: 100%;
}

.ams-suggestion-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    border-color: #128C7E;
    color: white;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.3);
    transform: translateY(-2px);
}

.ams-suggestion-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(18, 140, 126, 0.2);
}

.ams-suggestion-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.ams-suggestion-btn:hover svg {
    transform: scale(1.1);
}

/* Transfer Form */
.ams-transfer-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.3s ease-out;
    border: 1px solid #e2e8f0;
    margin: 8px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.ams-transfer-form h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ams-transfer-form h3::before {
    content: "👤";
    font-size: 1.25rem;
}

.ams-transfer-form p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    padding-left: 32px;
}

.ams-after-hours-notice {
    text-align: center;
    margin-bottom: 1rem;
}

.ams-hours-message {
    word-wrap: normal;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    padding-left: 0 !important;
    word-break: normal;
}

.ams-after-hours-info {
    padding-left: 0 !important;
    word-wrap: normal;
    overflow-wrap: break-word;
    white-space: normal;
}

.ams-transfer-form input,
.ams-transfer-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    background: white;
    font-family: inherit;
}

.ams-transfer-form input:focus,
.ams-transfer-form textarea:focus {
    outline: none;
    border-color: #128C7E;
    box-shadow: 0 0 0 4px rgba(18, 140, 126, 0.1);
    background: #ffffff;
}

.ams-transfer-form textarea {
    min-height: 80px;
    resize: vertical;
}

.ams-transfer-form button {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ams-transfer-form .ams-btn-primary {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(18, 140, 126, 0.4);
}

.ams-transfer-form .ams-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.5);
}

.ams-transfer-form .ams-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(18, 140, 126, 0.3);
}

.ams-transfer-form .ams-btn-secondary {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    margin-top: 8px;
}

.ams-transfer-form .ams-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.ams-transfer-actions button {
    margin-top: 5px;
}

/* Status Messages */
.ams-status-message {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 16px 18px;
    text-align: left;
    animation: slideUp 0.3s ease-out;
    margin: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.ams-status-message::before {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    content: "";
    background: currentColor;
}

.ams-status-message.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
    color: #166534;
}

.ams-status-message.success::before {
    background: #22c55e;
}

.ams-status-message.info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #1e40af;
}

.ams-status-message.info::before {
    background: #3b82f6;
}

.ams-status-message.warning {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-color: #fde047;
    color: #854d0e;
}

.ams-status-message.warning::before {
    background: #eab308;
}

.ams-status-message h4 {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
}

.ams-status-message.success h4::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.ams-status-message.info h4::before {
    content: "ℹ";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.ams-status-message.warning h4::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #eab308;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
}

.ams-status-message p {
    font-size: 0.875rem;
    line-height: 1.6;
    padding-left: 12px;
    margin: 0;
}

/* Loading Spinner */
.ams-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--bot-primary, #3b82f6);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

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

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Welcome Message */
.ams-welcome-message {
    animation: scaleIn 0.4s ease-out;
}

/* Enhanced Message Links */
.ams-message-bubble a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ams-message-bubble a:hover {
    color: #1d4ed8;
}

/* Message List Items */
.ams-message-bubble ul,
.ams-message-bubble ol {
    margin: 8px 0;
    padding-left: 20px;
}

.ams-message-bubble li {
    margin: 4px 0;
}

/* Message Code Blocks */
.ams-message-bubble code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 640px) {
    .ams-message-bubble {
        max-width: 85%;
    }

    .ams-message-content {
        max-width: 85%;
    }

    .ams-suggestion-btn {
        font-size: 0.6125rem;
        padding: 0.4rem 0.78rem;
        margin: 2px;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .ams-message-bot .ams-message-bubble {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
        color: #f3f4f6;
    }

    .ams-suggestion-btn {
        background: #374151;
        border-color: #4b5563;
        color: #e5e7eb;
    }

    .ams-suggestion-btn:hover {
        background: linear-gradient(135deg, var(--bot-primary, #3b82f6) 0%, color-mix(in srgb, var(--bot-primary, #3b82f6) 85%, black) 100%);
        color: white;
    }
}

/* Chat Input Container - WhatsApp Style */
.ams-chat-input-container {
    padding: 10px 16px;
    background: #F0F2F5;
    border-top: 1px solid #E0E0E0;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.ams-chat-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    background: white;
    transition: border-color 0.2s ease;
}

.ams-chat-input:focus {
    outline: none;
    border-color: #128C7E;
}

.ams-send-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #128C7E;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.ams-send-button:hover {
    background: #075E54;
}

.ams-send-button:active {
    background: #054D44;
    transform: scale(0.95);
}

.ams-send-button svg {
    width: 20px;
    height: 20px;
}

/* Typing Indicator */
.ams-typing-indicator {
    padding: 0 16px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

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

.ams-typing-dots span {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

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

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

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Chat Footer */
.ams-chat-footer {
    padding: 8px 12px;
    text-align: center;
    background: #F0F2F5;
    border-top: 1px solid #E0E0E0;
    font-size: 11px;
    color: #667781;
}

/* Utility Classes */
.ams-hidden {
    display: none;
}

/* Override for chat window - needs flex when visible */
.ams-chat-window.ams-hidden {
    display: none;
}

.ams-chat-window:not(.ams-hidden) {
    display: flex;
}

/* Quick Suggestions */
.ams-quick-suggestions {
    padding: 10px;
}

/* Booking Buttons */
.ams-booking-buttons {
    padding: 0px 0px;
    margin: 0px 0px;
    animation: slideInUp 0.3s ease-out;
}

.ams-booking-btns-container {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.ams-booking-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.ams-booking-yes {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.ams-booking-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.ams-booking-no {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.ams-booking-no:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
}

.ams-booking-btn:active {
    transform: translateY(0);
}

/* Transfer Button - Vibrant Blue/Purple Gradient */
.ams-transfer-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ams-transfer-btn::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.5s;
}

.ams-transfer-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

.ams-transfer-btn:hover::before {
    left: 100%;
}

.ams-transfer-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.5);
}

/* End Session Button - Sleek Red Gradient */
.ams-end-session-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ams-end-session-btn::after {
    content: '✕';
    position: absolute;
    right: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.ams-end-session-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(239, 68, 68, 0.5);
    padding-right: 36px;
}

.ams-end-session-btn:hover::after {
    opacity: 1;
    right: 14px;
}

.ams-end-session-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Transfer Button Container */
.ams-transfer-button {
    padding: 12px 16px;
    margin: 8px 16px;
    text-align: center;
    animation: slideInUp 0.3s ease-out;
}

/* Session Actions Container */
.ams-session-actions {
    padding: 12px 16px;
    margin: 8px 16px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    /* Keep container position as is (bottom-right or bottom-left) */
    .ams-chatbot-bottom-right {
        bottom: 16px;
        right: 16px;
    }

    .ams-chatbot-bottom-left {
        bottom: 16px;
        left: 16px;
    }

    /* Smaller chat button on mobile */
    .ams-chat-button {
        width: 50px;
        height: 50px;
    }

    .ams-chat-button img.ams-chat-icon {
        width: 48px;
        height: 48px;
    }

    /* Center only the chat window */
    .ams-chat-window {
        position: fixed !important;
        width: calc(100vw - 32px);
        max-width: 400px;
        height: calc(100vh - 100px);
        max-height: 600px;
        bottom: 80px;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .ams-chatbot-bottom-left .ams-chat-window,
    .ams-chatbot-bottom-right .ams-chat-window {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .ams-message-bubble {
        max-width: 85%;
    }
}

/* User Details Form Styles */
.ams-user-details-form {
    padding: 24px;
    background: white;
}

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

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

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

.ams-user-details-form .ams-form-body {
    margin-bottom: 20px;
}

.ams-user-details-form .ams-form-group {
    margin-bottom: 16px;
}

.ams-user-details-form .ams-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.ams-user-details-form .ams-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.ams-user-details-form .ams-form-group input:focus {
    outline: none;
    border-color: var(--bot-primary, #4CAF50);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.ams-user-details-form .ams-form-group input::placeholder {
    color: #94a3b8;
}

.ams-user-details-form .ams-form-footer {
    text-align: center;
}

.ams-submit-details-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--bot-primary, #4CAF50) 0%, color-mix(in srgb, var(--bot-primary, #4CAF50) 80%, black) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ams-submit-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.ams-submit-details-btn:active {
    transform: translateY(0);
}

/* Print Styles */
@media print {
    #ams-chatbot-container {
        display: none !important;
    }
}
