/* Custom styles that can't be done with Tailwind */
.loading-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4F46E5;
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Code panel specific styles */
#html-code, #css-code, #js-code, #json-output {
    font-family: 'Fira Code', 'Courier New', monospace;
    line-height: 1.5;
    tab-size: 2;
}

/* Iframe styling */
#iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Message bubbles */
.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message {
    background-color: #4F46E5;
    color: white;
    align-self: flex-end;
}

.assistant-message {
    background-color: #f3f4f6;
    color: #111827;
    align-self: flex-start;
}

/* Quick gen button animations */
.quick-gen-btn {
    transition: all 0.2s ease;
}

.quick-gen-btn:hover {
    transform: translateY(-2px);
}

.quick-gen-btn:active {
    transform: translateY(0);
}