/**
 * SmartAI Chatbot - Modern Floating Design
 * 
 * @package SmartAI_Chatbot
 * @version 2.1.0
 */

/* CSS Variables for Easy Customization */
:root {
    --chat-primary: #3b82f6;
    --chat-primary-dark: #2563eb;
    --chat-primary-light: #60a5fa;
    --chat-bg: #ffffff;
    --chat-bg-secondary: #f8fafc;
    --chat-border: #e2e8f0;
    --chat-border-light: #f1f5f9;
    --chat-text: #1e293b;
    --chat-text-muted: #64748b;
    --chat-text-light: #94a3b8;
    --chat-bubble-user: #3b82f6;
    --chat-bubble-bot: #f8fafc;
    --chat-input: #ffffff;
    --chat-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --chat-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --chat-radius: 16px;
    --chat-radius-sm: 12px;
    --chat-radius-lg: 20px;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --chat-bg: #0f172a;
        --chat-bg-secondary: #1e293b;
        --chat-border: #334155;
        --chat-border-light: #475569;
        --chat-text: #f1f5f9;
        --chat-text-muted: #94a3b8;
        --chat-text-light: #64748b;
        --chat-bubble-bot: #1e293b;
        --chat-input: #1e293b;
    }
}

/* Base Chatbot Container */
#smartai-chatbot-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    z-index: 999999;
    position: relative;
}

/* Modern Floating Chat Button */
#smartai-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#smartai-toggle-chat {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--chat-primary) 0%, var(--chat-primary-dark) 100%);
    border: none;
    box-shadow: var(--chat-shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#smartai-toggle-chat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--chat-primary-light) 0%, var(--chat-primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

#smartai-toggle-chat:hover::before {
    opacity: 1;
}

#smartai-toggle-chat:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.4);
}

#smartai-toggle-chat:active {
    transform: scale(0.95);
}

/* Chat Icon Animation */
#smartai-chat-icon {
    font-size: 24px;
    color: white;
    z-index: 1;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#smartai-close-icon {
    font-size: 20px;
    color: white;
    z-index: 1;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#smartai-chat-icon svg,
#smartai-close-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

#smartai-toggle-chat:hover #smartai-chat-icon,
#smartai-toggle-chat:hover #smartai-close-icon {
    transform: scale(1.1);
}

/* Pulse Animation for Chat Button */
@keyframes pulse {
    0%, 100% {
        box-shadow: var(--chat-shadow-lg);
    }
    50% {
        box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.4);
    }
}

#smartai-toggle-chat:not(:hover) {
    animation: pulse 3s infinite;
}

/* Button Tooltip */
#smartai-button-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--chat-text);
    color: white;
    padding: 8px 12px;
    border-radius: var(--chat-radius-sm);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: var(--chat-shadow);
}

#smartai-button-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: var(--chat-text);
}

#smartai-button-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Floating Chat Window */
#smartai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 380px;
    height: 600px;
    background: var(--chat-bg);
    border-radius: var(--chat-radius-lg);
    box-shadow: var(--chat-shadow-lg);
    border: 1px solid var(--chat-border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999999;
    pointer-events: none;
}

#smartai-chat-window.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Chat Header with Gradient Background */
#smartai-chat-header {
    background: linear-gradient(135deg, var(--chat-primary) 0%, var(--chat-primary-dark) 100%);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

#smartai-chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--chat-primary-light) 0%, var(--chat-primary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#smartai-chat-header:hover::before {
    opacity: 1;
}

#smartai-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
    position: relative;
}

#smartai-agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

#smartai-agent-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: white;
}

#smartai-agent-status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

#smartai-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

#smartai-chat-controls {
    display: flex;
    gap: 8px;
    z-index: 1;
    position: relative;
}

#smartai-chat-controls button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

#smartai-chat-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Messages Container */
#smartai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--chat-bg);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

/* Custom Scrollbar */
#smartai-messages::-webkit-scrollbar {
    width: 6px;
}

#smartai-messages::-webkit-scrollbar-track {
    background: transparent;
}

#smartai-messages::-webkit-scrollbar-thumb {
    background: var(--chat-border);
    border-radius: 3px;
}

#smartai-messages::-webkit-scrollbar-thumb:hover {
    background: var(--chat-text-muted);
}

/* Message Bubbles */
.smartai-message {
    display: flex;
    gap: 8px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease;
}

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

.smartai-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.smartai-message.bot {
    align-self: flex-start;
}

.smartai-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.smartai-message.user .smartai-message-avatar {
    background: var(--chat-bubble-user);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.smartai-message.bot .smartai-message-avatar {
    border: 2px solid var(--chat-border-light);
}

.smartai-message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.smartai-message-bubble {
    padding: 12px 16px;
    border-radius: var(--chat-radius-sm);
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    max-width: 100%;
}

.smartai-message.user .smartai-message-bubble {
    background: var(--chat-bubble-user);
    color: white;
    border-bottom-right-radius: 4px;
}

.smartai-message.bot .smartai-message-bubble {
    background: var(--chat-bubble-user);
    color: white;
    border-bottom-left-radius: 4px;
}

.smartai-message-time {
    font-size: 11px;
    color: var(--chat-text-light);
    margin-left: 4px;
}

/* Typing Indicator */
#smartai-typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--chat-bubble-user);
    border-radius: var(--chat-radius-sm);
    border-bottom-left-radius: 4px;
    max-width: 85%;
    align-self: flex-start;
    animation: messageSlideIn 0.3s ease;
}

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

#smartai-typing-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

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

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

/* Input Area */
#smartai-input-area {
    padding: 20px;
    background: var(--chat-bg);
    border-top: 1px solid var(--chat-border-light);
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-shrink: 0;
    margin-top: auto;
}

#smartai-message-input {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--chat-primary);
    border-radius: var(--chat-radius-sm);
    background: var(--chat-bubble-user);
    color: white;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

#smartai-message-input:focus {
    border-color: var(--chat-primary-dark);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: var(--chat-primary-dark);
}

#smartai-message-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#smartai-send-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--chat-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#smartai-send-button:hover:not(:disabled) {
    background: var(--chat-primary-dark);
    transform: scale(1.05);
}

#smartai-send-button:disabled {
    background: var(--chat-text-light);
    cursor: not-allowed;
    transform: none;
}

#smartai-send-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

#smartai-send-button:hover:not(:disabled) svg {
    transform: translateX(1px);
}

/* Suggestions */
#smartai-suggestions {
    padding: 0 20px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.smartai-suggestion {
    padding: 8px 16px;
    background: var(--chat-bg-secondary);
    border: 1px solid var(--chat-border-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--chat-text);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.smartai-suggestion:hover {
    background: var(--chat-primary);
    color: white;
    border-color: var(--chat-primary);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #smartai-chat-window {
        width: calc(100vw - 48px);
        height: calc(100vh - 120px);
        bottom: 100px;
        right: 24px;
        left: 24px;
    }
    
    #smartai-chat-button {
        bottom: 20px;
        right: 20px;
    }
    
    #smartai-toggle-chat {
        width: 56px;
        height: 56px;
    }
    
    #smartai-chat-icon {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    #smartai-chat-window {
        width: calc(100vw - 32px);
        right: 16px;
        left: 16px;
        bottom: 80px;
    }
    
    #smartai-chat-button {
        bottom: 16px;
        right: 16px;
    }
    
    #smartai-messages {
        padding: 16px;
    }
    
    #smartai-input-area {
        padding: 16px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
#smartai-toggle-chat:focus,
#smartai-send-button:focus,
#smartai-message-input:focus,
.smartai-suggestion:focus {
    outline: 2px solid var(--chat-primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --chat-border: #000000;
        --chat-text: #000000;
        --chat-bg: #ffffff;
    }
    
    #smartai-chat-window {
        border: 2px solid var(--chat-border);
    }
    
    #smartai-message-input {
        border: 2px solid var(--chat-border);
    }
}

/* Loading States */
.smartai-loading {
    opacity: 0.6;
    pointer-events: none;
}

.smartai-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--chat-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

/* Ensure proper z-index stacking */
#smartai-chatbot-container {
    z-index: 999999 !important;
}

#smartai-chat-button {
    z-index: 1000000 !important;
}

#smartai-chat-window {
    z-index: 999999 !important;
}

/* WordPress Theme Compatibility */
#smartai-chatbot-container * {
    box-sizing: border-box;
}

#smartai-chatbot-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Override any conflicting WordPress styles */
#smartai-chatbot-container button {
    font-family: inherit !important;
}

#smartai-chatbot-container input,
#smartai-chatbot-container textarea {
    font-family: inherit !important;
}

/* Ensure input area stays at bottom */
#smartai-chat-window {
    display: flex !important;
    flex-direction: column !important;
}

#smartai-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important;
}

#smartai-input-area {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    position: sticky !important;
    bottom: 0 !important;
} 

/* SmartAI Chatbot v2.4 - Beautiful Response Formatting */

/* ===== BEAUTIFUL RESPONSE FORMATTING ===== */

/* Store Overview Styling */
.store-overview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.store-overview h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.store-overview h4 {
    color: #34495e;
    margin: 15px 0 10px 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-overview p {
    color: #5a6c7d;
    margin: 10px 0;
    line-height: 1.5;
}

.store-overview ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.store-overview li {
    background: white;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 6px;
    border-left: 3px solid #3498db;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.store-overview li:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Product Recommendations Styling */
.product-recommendations {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #feb2b2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card h4 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.product-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    background: #ebf8ff;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.product-link:hover {
    background: #bee3f8;
    color: #2c5282;
}

/* Order Tracking Styling */
.order-tracking {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #9ae6b4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #c6f6d5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.order-card h4 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Cart Summary Styling */
.cart-summary {
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #fbd38d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #fbd38d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cart-total {
    background: #2d3748;
    color: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-total h4 {
    margin: 0;
    font-size: 1.2em;
}

/* Error Messages Styling */
.error-message,
.service-error,
.system-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #feb2b2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.error-message h4,
.service-error h4,
.system-error h4 {
    color: #c53030;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.error-message p,
.service-error p,
.system-error p {
    color: #742a2a;
    margin: 10px 0;
    line-height: 1.5;
}

/* Login Required Styling */
.login-required {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #7dd3fc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-required h4 {
    color: #0369a1;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.login-required p {
    color: #0c4a6e;
    margin: 10px 0;
    line-height: 1.5;
}

/* Empty States Styling */
.empty-cart,
.no-orders,
.no-products {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #cbd5e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.empty-cart h4,
.no-orders h4,
.no-products h4 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.empty-cart p,
.no-orders p,
.no-products p {
    color: #718096;
    margin: 10px 0;
    line-height: 1.5;
}

/* Action Buttons Styling */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.3);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(49, 130, 206, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(113, 128, 150, 0.3);
}

.action-btn.secondary:hover {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(113, 128, 150, 0.4);
}

/* Price Styling */
.price {
    color: #059669;
    font-weight: 700;
    background: #d1fae5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Status Styling */
.status {
    color: #dc2626;
    font-weight: 600;
    background: #fee2e2;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Section Styling */
.products-section,
.categories-section,
.services-section,
.policies-section {
    margin: 20px 0;
}

.products-section h4,
.categories-section h4,
.services-section h4,
.policies-section h4 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 1.1em;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

/* Actions Section */
.actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
}

.actions p {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2d3748;
}

/* Responsive Design */
@media (max-width: 768px) {
    .store-overview,
    .product-recommendations,
    .order-tracking,
    .cart-summary,
    .error-message,
    .login-required,
    .empty-cart {
        padding: 15px;
        margin: 8px 0;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .store-overview h3,
    .product-recommendations h3,
    .order-tracking h3,
    .cart-summary h3 {
        font-size: 1.2em;
    }
}

/* Animation Effects */
.store-overview,
.product-recommendations,
.order-tracking,
.cart-summary,
.error-message,
.login-required,
.empty-cart {
    animation: slideInUp 0.3s ease-out;
}

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

/* Hover Effects */
.store-overview:hover,
.product-recommendations:hover,
.order-tracking:hover,
.cart-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Focus States for Accessibility */
.action-btn:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

.product-link:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
    border-radius: 4px;
} 

/* SmartAI Chatbot v2.5 - Universal Website Support */

/* ===== BUSINESS-SPECIFIC RESPONSE STYLING ===== */

/* Business Overview Styling */
.business-overview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.business-overview h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

/* Sports Information Styling */
.sports-info {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sports-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #c3e6cb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.sports-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Education Information Styling */
.education-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #ffeaa7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.education-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #ffeaa7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Healthcare Information Styling */
.healthcare-info {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.healthcare-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.healthcare-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Real Estate Information Styling */
.real-estate-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #bee5eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.real-estate-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #bee5eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.real-estate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Restaurant Information Styling */
.restaurant-info {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #fed7d7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.restaurant-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #fed7d7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Technology Information Styling */
.technology-info {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #d6d8db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.technology-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #d6d8db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.technology-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* General Information Styling */
.general-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.general-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.general-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Feature Unavailable Styling */
.feature-unavailable {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #ffeaa7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-unavailable h4 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.feature-unavailable p {
    color: #856404;
    margin: 10px 0;
    line-height: 1.5;
}

/* Business Section Styling */
.sports-section,
.education-section,
.healthcare-section,
.real-estate-section,
.restaurant-section,
.technology-section,
.general-section {
    margin: 20px 0;
}

.sports-section h4,
.education-section h4,
.healthcare-section h4,
.real-estate-section h4,
.restaurant-section h4,
.technology-section h4,
.general-section h4 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 1.1em;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

/* Animation Effects for Business Types */
.sports-info,
.education-info,
.healthcare-info,
.real-estate-info,
.restaurant-info,
.technology-info,
.general-info,
.feature-unavailable {
    animation: slideInUp 0.3s ease-out;
}

/* Hover Effects for Business Types */
.sports-info:hover,
.education-info:hover,
.healthcare-info:hover,
.real-estate-info:hover,
.restaurant-info:hover,
.technology-info:hover,
.general-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Responsive Design for Business Types */
@media (max-width: 768px) {
    .sports-info,
    .education-info,
    .healthcare-info,
    .real-estate-info,
    .restaurant-info,
    .technology-info,
    .general-info,
    .feature-unavailable {
        padding: 15px;
        margin: 8px 0;
    }
    
    .sports-info h3,
    .education-info h3,
    .healthcare-info h3,
    .real-estate-info h3,
    .restaurant-info h3,
    .technology-info h3,
    .general-info h3 {
        font-size: 1.2em;
    }
} 