/* Modern File Upload System Styles */

.modern-upload-container {
    padding: 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Dropzone Styles */
.upload-dropzone {
    border: 3px dashed #d65608;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.upload-dropzone:hover {
    border-color: #b34a06;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 86, 8, 0.15);
}

.upload-dropzone.drag-over {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.2);
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-icon i {
    font-size: 4em;
    color: #d65608;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.upload-text h4 {
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.upload-text p {
    color: #6c757d;
    font-size: 1.1em;
    margin-bottom: 5px;
    line-height: 1.6;
}

.upload-hint {
    color: #d65608 !important;
    font-weight: 500;
    font-size: 0.95em;
    margin-top: 10px;
}

/* Upload Queue Styles */
.upload-queue {
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.upload-queue h5 {
    background: linear-gradient(135deg, #d65608 0%, #b34a06 100%);
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 1.2em;
    font-weight: 600;
}

.queue-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.queue-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    transition: all 0.3s ease;
    animation: slideIn 0.4s ease-out;
}

.queue-item:hover {
    background: #f8f9fa;
}

.queue-item:last-child {
    border-bottom: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.file-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d65608 0%, #b34a06 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.file-icon i {
    color: white;
    font-size: 1.2em;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    color: #6c757d;
    font-size: 0.9em;
}

.file-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-text {
    font-size: 0.9em;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    background: #e9ecef;
    color: #495057;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8em;
}

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

/* Progress Bar Styles */
.file-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d65608 0%, #28a745 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    font-size: 0.85em;
    font-weight: 600;
    color: #495057;
    min-width: 40px;
    text-align: right;
}

/* Overall Progress */
.upload-progress {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.progress-overall {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-overall .progress-bar {
    height: 8px;
}

.progress-overall .progress-fill {
    background: linear-gradient(90deg, #d65608 0%, #28a745 100%);
}

.progress-overall .progress-text {
    font-size: 1em;
    font-weight: 700;
    color: #2c3e50;
}

/* Status Colors */
.queue-item[data-status="uploading"] .status-text {
    background: #fff3cd;
    color: #856404;
}

.queue-item[data-status="completed"] .status-text {
    background: #d4edda;
    color: #155724;
}

.queue-item[data-status="error"] .status-text {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-upload-container {
        padding: 15px;
    }

    .upload-dropzone {
        padding: 30px 15px;
    }

    .upload-icon i {
        font-size: 3em;
    }

    .upload-text h4 {
        font-size: 1.3em;
    }

    .upload-text p {
        font-size: 1em;
    }

    .file-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .file-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .file-status {
        width: 100%;
        justify-content: space-between;
    }

    .progress-overall {
        flex-direction: column;
        gap: 10px;
    }
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #d65608;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success Animation */
.success-animation {
    animation: successPulse 0.6s ease-out;
}

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

/* Error Animation */
.error-animation {
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Scrollbar Styling */
.queue-items::-webkit-scrollbar {
    width: 6px;
}

.queue-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.queue-items::-webkit-scrollbar-thumb {
    background: #d65608;
    border-radius: 3px;
}

.queue-items::-webkit-scrollbar-thumb:hover {
    background: #b34a06;
}
