
/* Remove conflicting base styles that break Tailwind */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial", sans-serif;
    margin: 0;
    padding: 0;
}

/* Ensure main content is visible */
.container {
    position: relative;
    z-index: 10;
}

/* Fix loading overlay issues */
#loading {
    backdrop-filter: blur(4px);
}

#loading.hidden {
    display: none !important;
}

/* Ensure canvas is truly in background */
#three-canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: -1 !important;
    pointer-events: none;
    opacity: 0.1;
}

/* Better code block styling */
.code-block pre {
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
}

/* Fix hidden elements */
.hidden {
    display: none !important;
}

/* Ensure flex layout works */
.flex {
    display: flex;
}

/* Basic visibility fixes */
#step-1 {
    display: block;
}

.step {
    min-height: 200px;
}

/* Chat container fixes */
.chat-container {
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 3px;
}

/* Ensure buttons are clickable */
button {
    cursor: pointer;
    transition: all 0.2s ease;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error toast positioning */
.error-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
