/* Dropzone Custom Styles - Enhanced Version */
.dropzone-container {
    position: relative;
}

.dropzone {
    border: 3px dashed #667eea !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 3s ease infinite !important;
    min-height: 220px !important;
    padding: 30px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37) !important;
}

.dropzone::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(5px) !important;
    border-radius: 16px !important;
    z-index: 1 !important;
}

.dropzone:hover {
    border-color: #5a67d8 !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.5) !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.dropzone.dz-drag-hover {
    border-color: #4c51bf !important;
    background: linear-gradient(135deg, #4c51bf 0%, #667eea 100%) !important;
    transform: scale(1.03) !important;
    box-shadow: 0 25px 50px rgba(31, 38, 135, 0.6) !important;
    animation: pulse 1.5s ease-in-out infinite !important;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1.03); }
    50% { transform: scale(1.05); }
}

.dz-message {
    text-align: center !important;
    margin: 0 !important;
    padding: 20px !important;
    position: relative !important;
    z-index: 2 !important;
}

.dz-message-content {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	height: 100% !important;
	color: #333 !important;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
	font-weight: 600 !important;
}

.dz-message-content i {
	margin-bottom: 15px !important;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
	font-size: 3rem !important;
	color: rgba(51, 51, 51, 0.9) !important;
	text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8) !important;
}

.dropzone:hover .dz-message-content i {
	transform: scale(1.2) rotate(5deg) !important;
	color: rgba(51, 51, 51, 1) !important;
	text-shadow: 0 4px 20px rgba(255, 255, 255, 0.9) !important;
}

.dz-message-content h5 {
	color: #333 !important;
	font-weight: 700 !important;
	margin-bottom: 8px !important;
	font-size: 1.4rem !important;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
	letter-spacing: 0.5px !important;
}

.dz-message-content p {
	margin-bottom: 8px !important;
	color: #333 !important;
	font-size: 1rem !important;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
	font-weight: 500 !important;
}

/* Preview Container - Enhanced */
.fotos-preview-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 15px !important;
    margin-top: 20px !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
}

.foto-preview-item {
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: white !important;
    transform: perspective(1000px) rotateY(0deg) !important;
}

.foto-preview-item:hover {
    transform: perspective(1000px) rotateY(5deg) translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
}

.foto-preview-item img {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

.foto-preview-item:hover img {
    transform: scale(1.1) !important;
}

.foto-preview-item .remove-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 14px !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
    opacity: 0 !important;
    transform: scale(0.8) !important;
}

.foto-preview-item:hover .remove-btn {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.foto-preview-item .remove-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.5) !important;
}

.foto-preview-item .file-info {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
    color: white !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    text-align: center !important;
    backdrop-filter: blur(5px) !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease !important;
}

.foto-preview-item:hover .file-info {
    transform: translateY(0) !important;
}

/* Progress Bar - Enhanced */
.progress {
    height: 10px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    overflow: hidden !important;
    backdrop-filter: blur(5px) !important;
    margin: 15px 0 !important;
}

.progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.progress-bar::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    animation: shimmer 2s infinite !important;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Dropzone File Items - Enhanced */
.dropzone .dz-preview {
    margin: 8px !important;
}

.dropzone .dz-preview .dz-image {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.dropzone .dz-preview .dz-success-mark,
.dropzone .dz-preview .dz-error-mark {
    display: none !important;
}

.dropzone .dz-preview .dz-progress {
    display: none !important;
}

/* Error States - Enhanced */
.dropzone.dz-error {
    border-color: #ff6b6b !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    animation: errorShake 0.6s ease-in-out !important;
}

.dropzone.dz-success {
    border-color: #51cf66 !important;
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%) !important;
    animation: successPulse 0.6s ease-in-out !important;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive - Enhanced */
@media (max-width: 768px) {
    .dropzone {
        min-height: 180px !important;
        padding: 25px !important;
        border-radius: 12px !important;
    }
    
    .dz-message-content h5 {
        font-size: 1.2rem !important;
    }
    
    .dz-message-content p {
        font-size: 0.9rem !important;
    }
    
    .dz-message-content i {
        font-size: 2.5rem !important;
    }
    
    .fotos-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 12px !important;
        padding: 15px !important;
    }
    
    .foto-preview-item img {
        height: 120px !important;
    }
}

@media (max-width: 480px) {
    .dropzone {
        min-height: 160px !important;
        padding: 20px !important;
    }
    
    .fotos-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 10px !important;
    }
    
    .foto-preview-item img {
        height: 100px !important;
    }
}

/* Loading Animation - Enhanced */
.dropzone.loading {
    pointer-events: none !important;
    opacity: 0.8 !important;
    animation: loadingPulse 2s ease-in-out infinite !important;
}

.dropzone.loading .dz-message-content i {
    animation: spin 1.2s linear infinite !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.6; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success Animation - Enhanced */
.foto-preview-item.success {
    animation: successGlow 0.8s ease-in-out !important;
}

@keyframes successGlow {
    0% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 0 15px 35px rgba(81, 207, 102, 0.4);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}

/* Error Animation - Enhanced */
.foto-preview-item.error {
    animation: errorShakeItem 0.6s ease-in-out !important;
}

@keyframes errorShakeItem {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Floating Action Button Style for Upload */
.dropzone::after {
    content: '📁' !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 1.5rem !important;
    opacity: 0.3 !important;
    transition: all 0.3s ease !important;
    z-index: 2 !important;
}

.dropzone:hover::after {
    opacity: 0.6 !important;
    transform: scale(1.2) !important;
}

/* Glassmorphism Effect */
.dropzone {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 3s ease infinite !important;
    backdrop-filter: blur(20px) !important;
    border: 3px dashed #667eea !important;
}

/* Custom Scrollbar for Preview Container */
.fotos-preview-container::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

.fotos-preview-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
}

.fotos-preview-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
}

.fotos-preview-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5) !important;
} 