/* Custom styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
}

/* Animation for image loading */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.image-card {
    animation: fadeIn 0.3s ease-out forwards;
    opacity: 0;
}
/* AI Generation styles */
#generated-image {
    max-height: 512px;
    object-fit: contain;
}

#prompt-input {
    min-height: 100px;
}

/* Tab styles */
.nav-tabs .active {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Upload area styles */
.border-dashed:hover {
    border-color: #667eea;
    background-color: #f8fafc;
}

#json-output {
    font-family: 'Roboto Mono', monospace;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* Mobile responsiveness */
@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    #ai-generation-section {
        padding: 1rem !important;
    }
    
    .border-dashed {
        padding: 1rem !important;
    }
}

/* Prevent text selection */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Image click effect */
.image-container {
    cursor: pointer;
    position: relative;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.image-container:hover .image-caption {
    transform: translateY(0);
}
