* {
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    min-height: 100vh;
}

.drop-zone {
    border: 3px dashed #cbd5e1;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.drop-zone:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2);
}

.drop-zone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.02);
}

.drop-zone.dragover::before {
    opacity: 0.05;
}

.drop-zone * {
    position: relative;
    z-index: 1;
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #e2e8f0;
}

.file-list::-webkit-scrollbar {
    width: 6px;
}

.file-list::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.file-list::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

.file-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: move;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.file-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.file-item.ui-sortable-helper {
    transform: rotate(2deg) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    border-color: #3b82f6;
    background: #f8fafc;
}

.file-item.ui-sortable-placeholder {
    visibility: visible !important;
    background: #f1f5f9;
    border: 2px dashed #94a3b8;
}

.preview-container {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
}

.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.3);
}

.file-item:hover .remove-btn {
    opacity: 1;
}

.remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.toast-message {
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .drop-zone {
        padding: 1.5rem;
    }

    .file-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .preview-container {
        height: 120px;
    }
}

.file-stats {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
}