/* Modern Dropzone Styles */

.dropzone-wrapper {
    position: relative;
}

.dropzone-box {
    border: 3px dashed #e5e7eb;
    border-radius: 16px;
    background: #fafafa;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzone-box:hover {
    border-color: #8D3FF2;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    transform: translateY(-2px);
}

.dropzone-box.dz-drag-hover {
    border-color: #8D3FF2;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-style: solid;
}

.dropzone-box .dz-message {
    margin: 0;
    color: #6b7280;
}

.dropzone-box .dz-message i {
    font-size: 48px;
    color: #8D3FF2;
    margin-bottom: 16px;
    display: block;
}

.dropzone-box .dz-message h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.dropzone-box .dz-message p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.dropzone-box .dz-message .dz-note {
    display: inline-block;
    padding: 6px 16px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 12px;
    color: #4b5563;
    font-weight: 600;
}

/* Small Dropzone for Portfolio */
.dropzone-small {
    min-height: 120px;
    padding: 20px 16px;
}

.dropzone-small .dz-message i {
    font-size: 32px;
    margin-bottom: 8px;
}

.dropzone-small .dz-message span {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

/* File Preview */
.dropzone-box .dz-preview {
    margin: 16px 8px;
    min-height: 0;
}

.dropzone-box .dz-preview .dz-image {
    border-radius: 12px;
    overflow: hidden;
    width: 120px;
    height: 120px;
}

.dropzone-box .dz-preview .dz-details {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
}

.dropzone-box .dz-preview .dz-filename {
    font-size: 13px;
    color: #1f2937;
    font-weight: 600;
}

.dropzone-box .dz-preview .dz-size {
    font-size: 12px;
    color: #6b7280;
}

/* Progress Bar */
.dropzone-box .dz-preview .dz-progress {
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    overflow: hidden;
    margin-top: 8px;
}

.dropzone-box .dz-preview .dz-progress .dz-upload {
    background: linear-gradient(90deg, #8D3FF2 0%, #7C3AED 100%);
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Success State */
.dropzone-box .dz-preview.dz-success .dz-success-mark {
    color: #10b981;
    font-size: 32px;
    animation: successPop 0.4s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Error State */
.dropzone-box .dz-preview.dz-error .dz-error-mark {
    color: #ef4444;
    font-size: 32px;
}

.dropzone-box .dz-preview .dz-error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 8px;
}

/* Remove Link */
.dropzone-box .dz-preview .dz-remove {
    display: inline-block;
    padding: 6px 16px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.dropzone-box .dz-preview .dz-remove:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Existing Video Preview */
.video-preview-existing {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-preview-existing video {
    width: 100%;
    max-height: 300px;
    display: block;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .dropzone-box {
        padding: 30px 16px;
        min-height: 160px;
    }

    .dropzone-box .dz-message i {
        font-size: 36px;
    }

    .dropzone-box .dz-message h4 {
        font-size: 16px;
    }

    .dropzone-small {
        min-height: 100px;
        padding: 16px 12px;
    }

    .dropzone-small .dz-message i {
        font-size: 24px;
    }

    .dropzone-small .dz-message span {
        font-size: 13px;
    }
}

/* Loading Spinner */
.dropzone-box .dz-preview .dz-processing {
    position: relative;
}

.dropzone-box .dz-preview .dz-processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #8D3FF2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
