/* Custom animations and styles */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-2px);
    }
}

@keyframes celebration {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.3) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Code syntax highlighting improvements */
code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    line-height: 1.6;
}

/* Smooth transitions for all interactive elements */
button, input, select, textarea {
    transition: all 0.2s ease-in-out;
}

/* Focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Hover effects for requirements */
.requirement-item:hover {
    background-color: rgba(55, 65, 81, 0.5);
}

/* Loading animation */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Robot mascot animation */
.robot-mascot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.robot-mascot:hover {
    transform: scale(1.15) !important;
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .lg\:flex-row {
        flex-direction: column;
    }
    
    .lg\:w-2\/5, .lg\:w-3\/5 {
        width: 100%;
    }
    
    .lg\:w-2\/5 {
        max-height: 400px;
    }
}

/* Enhanced input styling */
input[type="text"], textarea {
    background: linear-gradient(135deg, #4B5563 0%, #374151 100%);
    border: 1px solid #6B7280;
    color: #F9FAFB;
}

input[type="text"]:focus, textarea:focus {
    background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
    border-color: #3B82F6;
}

/* Button styling enhancements */
button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:not(:disabled):active {
    transform: translateY(0);
}

/* Checkbox styling */
input[type="checkbox"] {
    accent-color: #10B981;
}

/* Panel border enhancements */
.border-gray-700 {
    border-color: #3F3F46;
}

.border-gray-600 {
    border-color: #52525B;
}

/* Code block improvements */
pre {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    border: 1px solid #374151;
    border-radius: 8px;
}

/* Iframe styling */
iframe {
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Example prompt animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Custom requirement styling */
.custom-requirement {
    background: linear-gradient(135deg, #4C1D95 0%, #5B21B6 100%);
    border: 1px solid #7C3AED;
}

/* Success states */
.success-glow {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Error states */
.error-glow {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}