/* AI Assistant Styles */
.ai-assistant-container {
    background: hsl(var(--card));
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-top: 0.5rem;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-icon {
    font-size: 2rem;
    background: hsl(var(--primary) / 0.1);
    padding: 0.6rem;
    border-radius: 12px;
    box-shadow: 0 0 10px hsl(var(--primary) / 0.2);
}

.ai-header h3 {
    margin: 0;
    font-size: 1.1rem;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.ai-header p {
    margin: 0;
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
}

.ai-input-wrapper {
    display: flex;
    gap: 0.8rem;
    position: relative;
}

.ai-input-wrapper input {
    flex: 1;
    background: hsl(var(--input));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.ai-input-wrapper input:focus {
    border-color: hsl(var(--ring));
    background: hsl(var(--background));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.ai-input-wrapper button {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    padding: 0 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-input-wrapper button:hover {
    transform: translateY(-1px);
    background: hsl(var(--primary) / 0.9);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.ai-response {
    margin-top: 1rem;
    min-height: 1.5rem;
    font-size: 0.95rem;
    color: hsl(var(--foreground));
    line-height: 1.6;
    padding: 1rem;
    border-left: 4px solid hsl(var(--accent));
    background: hsl(var(--accent) / 0.1);
    border-radius: var(--radius);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: pre-wrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 60px;
}

.ai-response.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Cursor Effect */
.ai-cursor::after {
    content: '▋';
    display: inline-block;
    vertical-align: bottom;
    animation: blink 1s step-start infinite;
    color: hsl(var(--foreground));
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Loading Dots */
.ai-loading {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    height: 24px;
}

.ai-loading span {
    width: 6px;
    height: 6px;
    background: hsl(var(--foreground));
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.ai-loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.ai-loading span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.ai-response strong {
    color: hsl(var(--primary));
    font-weight: 600;
}