/* Tailwind Config */
:root {
    --primary: #8B5CF6;
    --secondary: #06B6D4;
    --accent: #EC4899;
}

        body {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: #e2e8f0;
         
        }

/* Custom Styles */
.glass {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(211, 122, 247, 0.2);
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: linear-gradient(135deg, #10B981, #059669);
}

.toast.error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.toast.info {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

/* Image Modal */
.image-modal {
    backdrop-filter: blur(20px);
}

/* Filter Buttons */
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

/* Masonry Grid */
.masonry-grid {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 640px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (min-width: 1280px) {
    .masonry-grid {
        column-count: 4;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

/* AI Model Selection */
.ai-model.selected {
    border: 2px solid var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
    
    aside {
        display: none;
    }
    
    .flex.max-w-7xl {
        flex-direction: column;
    }
    
    main {
        padding: 1rem;
    }
}

/* Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--primary);
    border-color: transparent;
}

/* Button Hover Effects */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Glass Effect for Modals */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Animation for Page Load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content {
    animation: fadeIn 0.5s ease-out;
}

/* Gradient Text */
.bg-gradient-to-r.bg-clip-text.text-transparent {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Checkbox/Radio Styles */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
}

/* File Upload Drag & Drop */
.border-dashed:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

/* Loading States */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Error States */
.error {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Success States */
.success {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}