/* Advanced DICOM Upload System Styles */

.advanced-drop-zone {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px dashed #dee2e6;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 200px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.advanced-drop-zone:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15);
}

.advanced-drop-zone.drag-over {
    border-color: #28a745 !important;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%) !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.drop-icon-container {
    position: relative;
    display: inline-block;
}

.upload-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.file-queue-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.file-queue-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.file-queue-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.file-queue-item:hover::before {
    left: 100%;
}

.progress-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e9ecef;
    backdrop-filter: blur(10px);
}

.queue-actions .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.queue-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.batch-operations {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    backdrop-filter: blur(10px);
}

.upload-buttons .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upload-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.file-info h6 {
    color: #2c3e50;
    font-weight: 600;
}

.status-text {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.card {
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card-header {
    border-bottom: none;
}

/* Status-specific styling with modern gradients */
.file-queue-item[data-status="completed"] {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.file-queue-item[data-status="failed"],
.file-queue-item[data-status="invalid"] {
    border-color: #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.file-queue-item[data-status="uploading"] {
    border-color: #007bff;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    animation: uploadPulse 2s infinite;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

@keyframes uploadPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.file-queue-item[data-status="validated"] {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2);
}

/* Enhanced progress bars with glow effects */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* Upload statistics styling */
.upload-stats {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Enhanced button styling */
.btn-success.btn-lg {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.btn-success.btn-lg:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Alert styling with glassmorphism */
.alert {
    border-radius: 12px;
    border: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .advanced-drop-zone {
        min-height: 150px;
        margin: 10px;
    }
    
    .upload-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .batch-operations .row {
        flex-direction: column;
    }
    
    .file-queue-item .row {
        flex-direction: column;
        gap: 10px;
    }
}

/* Loading overlay with blur effects */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.upload-success {
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .advanced-drop-zone {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }
    
    .file-queue-item {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .progress-section {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .batch-operations {
        background: #2d3748;
        border-color: #4a5568;
    }
}