/* upload.css - Styles for upload modal and functionality */

/* Upload Modal */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.upload-header h2 {
    font-size: 1.5rem;
    color: #333;
}

.close-modal {
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

/* Drop Zone */
.drop-zone {
    margin: 2rem;
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.drop-zone:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.drop-zone.drag-over {
    border-color: #3498db;
    background: #e3f2fd;
    transform: scale(1.02);
}

.drop-zone.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.drop-zone-icon {
    margin-bottom: 1rem;
    color: #3498db;
}

.drop-zone-text {
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.drop-zone-subtext {
    font-size: 0.875rem;
    color: #666;
}

/* Upload Previews */
.upload-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.upload-preview {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.upload-preview:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.upload-preview.uploaded {
    border-color: #27ae60;
}

.preview-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f0f0f0;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-info {
    padding: 1rem;
}

.preview-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-size {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.preview-status {
    font-size: 0.875rem;
    color: #3498db;
}

.preview-status.success {
    color: #27ae60;
}

.preview-status.error {
    color: #e74c3c;
}

.preview-progress {
    height: 4px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #3498db;
    width: 0;
    transition: width 0.3s ease;
}

/* Upload Actions */
.upload-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .drop-zone {
        margin: 1rem;
        padding: 2rem 1rem;
    }

    .upload-previews {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        padding: 0 1rem 1rem;
    }
}