:root {
    --weeli-600: #2563eb;
    --weeli-700: #1d4ed8;
    --weeli-500: #3b82f6;
    --weeli-shadow: rgba(37, 99, 235, 0.2);
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.h-screen {
    height: 100vh;
}

.flex-grow-1 {
    flex-grow: 1;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.max-w-3xl {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-1 {
    gap: 0.25rem;
}

/* Header Styling */
.weeli-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--weeli-500);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 15px -3px var(--weeli-shadow);
}

.status-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #22c55e;
    border-radius: 9999px;
    margin-right: 0.25rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Button Styling */
.btn-weeli {
    background-color: var(--weeli-600);
    border-color: var(--weeli-600);
    color: white;
    transition: all 0.2s;
}

.btn-weeli:hover:not(:disabled) {
    background-color: var(--weeli-700);
    border-color: var(--weeli-700);
    color: white;
}

.btn-weeli:active:not(:disabled) {
    transform: scale(0.95);
}

.btn-weeli:disabled {
    background-color: #d1d5db;
    border-color: #d1d5db;
    cursor: not-allowed;
}

/* Input Styling */
#messageInput {
    color: var(--gray-800);
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
}

#messageInput::placeholder {
    color: #9ca3af;
}

#messageInput:focus {
    background-color: white;
    color: var(--gray-800);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

#messageInput:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
}

/* Messages */
.message-row {
    display: flex;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-user {
    justify-content: flex-end;
}

.message-user .message-bubble {
    background-color: var(--weeli-600);
    color: white;
    border-radius: 1.25rem 1.25rem 0 1.25rem;
}

.message-model {
    justify-content: flex-start;
}

.message-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: white;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--weeli-600);
    font-size: 1rem;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.message-bubble {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem 1.25rem 1.25rem 0;
    padding: 1rem 1.25rem;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message-bubble p {
    margin: 0;
}

.message-bubble em {
    font-style: italic;
    color: #6b7280;
}

/* Suggested Actions */
.suggested-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.action-btn {
    display: inline-block;
    background-color: var(--gray-100);
    color: var(--gray-800);
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    border: 1px solid var(--gray-200);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.action-btn:hover {
    background-color: var(--gray-200);
    color: var(--gray-800);
    border-color: var(--gray-300);
    text-decoration: none;
}

.action-btn:active {
    transform: scale(0.95);
}

/* Loading Animation */
.loading-bubble {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem 1.25rem 1.25rem 0;
    padding: 1rem;
    max-width: 85%;
    display: flex;
    gap: 0.25rem;
}

.loading-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #d1d5db;
    border-radius: 9999px;
    animation: bounce 1.4s infinite;
}

.loading-dot:nth-child(1) {
    animation-delay: 0ms;
}

.loading-dot:nth-child(2) {
    animation-delay: 150ms;
}

.loading-dot:nth-child(3) {
    animation-delay: 300ms;
}

@keyframes bounce {
    0%, 80%, 100% {
        opacity: 0.5;
    }
    40% {
        opacity: 1;
    }
}

/* Utility Classes */
.fw-medium {
    font-weight: 500;
}

.border-gray-200 {
    border-color: var(--gray-200) !important;
}

.text-success {
    color: #22c55e !important;
}

/* Responsive */
@media (max-width: 768px) {
    .max-w-3xl {
        max-width: 100%;
    }

    .message-bubble {
        max-width: 90%;
    }

    .weeli-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
    }

    h1 {
        font-size: 1rem;
    }
}
