/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Tailwind-like utility classes */
.w-full { width: 100%; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-reverse > * + * { margin-left: 0; margin-right: 0.75rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.p-0 { padding: 0; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-white { color: #ffffff; }
.text-gray-600 { color: #4b5563; }
.text-gray-900 { color: #111827; }
.text-red-500 { color: #ef4444; }
.text-red-700 { color: #b91c1c; }
.text-green-600 { color: #16a34a; }
.bg-white { background-color: #ffffff; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-primary { background-color: #3b82f6; }
.hover\:bg-primary\/90:hover { background-color: rgba(59, 130, 246, 0.9); }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-input { border-color: #d1d5db; }
.border-gray-200 { border-color: #e5e7eb; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.h-4 { height: 1rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-\[350px\] { height: 350px; }
.h-\[450px\] { height: 450px; }
.max-h-\[350px\] { max-height: 350px; }
.w-4 { width: 1rem; }
.w-8 { width: 2rem; }
.max-w-\[80\%\] { max-width: 80%; }
.whitespace-nowrap { white-space: nowrap; }
.ring-offset-background { --tw-ring-offset-color: #ffffff; }
.focus-visible\:outline-none:focus-visible { outline: 2px solid transparent; outline-offset: 2px; }
.focus-visible\:ring-2:focus-visible { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus-visible\:ring-ring:focus-visible { --tw-ring-color: #3b82f6; }
.focus-visible\:ring-offset-2:focus-visible { --tw-ring-offset-width: 2px; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-ring:focus { --tw-ring-color: #3b82f6; }
.disabled\:pointer-events-none:disabled { pointer-events: none; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.gap-1 { gap: 0.25rem; }
.flex-wrap { flex-wrap: wrap; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.mt-3 { margin-top: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }

/* VS AI Chat Interface */
.vitawise-chat-interface {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 2rem auto;
    position: relative;
    background-color: #f0f9f5;
}

.vitawise-chat-interface .card {
    position: relative;
}

/* Loading Indicator */
@keyframes vs-ai-chat-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typing Indicator */
.typing-indicator .animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .vs-ai-chat-card {
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 0;
    }
}

/* Preserve existing functionality for other components */
/* Onboarding Form */
.vs-ai-chat-assistant-onboarding {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vs-ai-chat-assistant-onboarding h3 {
    margin-top: 0;
    color: #3b82f6;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.vs-ai-chat-assistant-form-group {
    margin-bottom: 15px;
}

.vs-ai-chat-assistant-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.vs-ai-chat-assistant-form-group input,
.vs-ai-chat-assistant-form-group select,
.vs-ai-chat-assistant-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.vs-ai-chat-assistant-form-group input:focus,
.vs-ai-chat-assistant-form-group select:focus,
.vs-ai-chat-assistant-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.vs-ai-chat-assistant-form-submit {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.vs-ai-chat-assistant-form-submit:hover {
    background-color: rgba(59, 130, 246, 0.9);
}

/* Recommendations */
.vs-ai-chat-assistant-recommendations {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vs-ai-chat-assistant-recommendations h3 {
    margin-top: 0;
    color: #3b82f6;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.vs-ai-chat-assistant-recommendation {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.vs-ai-chat-assistant-recommendation:last-child {
    border-bottom: none;
}

.vs-ai-chat-assistant-recommendation-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.vs-ai-chat-assistant-recommendation-details {
    flex: 1;
}

.vs-ai-chat-assistant-recommendation-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.vs-ai-chat-assistant-recommendation-price {
    color: #16a34a;
    font-weight: 500;
    margin-bottom: 5px;
}

.vs-ai-chat-assistant-recommendation-action {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 5px;
    transition: background-color 0.2s;
}

.vs-ai-chat-assistant-recommendation-action:hover {
    background-color: rgba(59, 130, 246, 0.9);
    color: white;
}

.vs-ai-chat-assistant-empty-message {
    text-align: center;
    padding: 20px;
    color: #666;
}
