@tailwind base;
@tailwind components;
@tailwind utilities;

/* Dropzone styling */
.dropzone {
    border: 2px dashed #9ca3af;
    transition: all 0.3s;
}
.dropzone.active {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

/* Preview container */
#previewContainer {
    min-height: 300px;
}

/* Canvas styling */
#previewCanvas {
    display: block;
    max-width: 100%;
    max-height: 500px;
    transition: transform 0.2s;
}

/* Scrollbar styling */
#previewContainer::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
#previewContainer::-webkit-scrollbar-track {
    background: #e5e7eb;
}
#previewContainer::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}
.dark #previewContainer::-webkit-scrollbar-track {
    background: #4b5563;
}
.dark #previewContainer::-webkit-scrollbar-thumb {
    background: #6b7280;
}

/* Responsive grid */
@media (max-width: 640px) {
    .controls-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Button states */
.no-bg {
    background-color: transparent !important;
}