/* ==================================================
   Modern File Upload UI - Industry Standard
   Simple, clean design inspired by Dropbox/Google Drive
   ================================================== */

/* Upload Zone Container */
.upload-zone-container {
    width: 100%;
    margin-bottom: 2rem;
}

/* Main Upload Zone */
.upload-zone {
    position: relative;
    border: 3px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover {
    border-color: #00556f;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 85, 111, 0.1);
}

.upload-zone.dragover {
    border-color: #00556f;
    background: #e0f2f7;
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(0, 85, 111, 0.1);
}

/* Upload Icon */
.upload-icon {
    font-size: 3.5rem;
    color: #00556f;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.upload-zone:hover .upload-icon {
    transform: scale(1.1);
}

.upload-zone.dragover .upload-icon {
    animation: bounce 0.6s ease infinite;
}

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

/* Upload Text */
.upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Helper Badges */
.upload-helpers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.upload-helper-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.upload-helper-item i {
    font-size: 1rem;
    color: #00556f;
}

/* Hidden File Input */
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* File Preview Container */
.file-preview-container {
    margin-top: 2rem;
}

/* File Preview Cards */
.file-preview-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
}

.file-preview-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #00556f;
    transform: translateY(-2px);
}

/* Preview Header */
.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.file-preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #e0f2f7;
    border-radius: 8px;
    color: #00556f;
    font-size: 1.25rem;
}

.file-preview-remove {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.file-preview-remove:hover {
    background: #fee2e2;
    transform: scale(1.1);
}

.file-preview-remove:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Preview Body */
.file-preview-body {
    padding: 1rem;
}

.file-preview-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    background: #f3f4f6;
    margin-bottom: 0.75rem;
}

.file-preview-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.file-preview-meta .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
}

/* Progress Stepper */
.upload-progress-stepper {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.stepper-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

.stepper-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stepper-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    right: -50%;
    height: 3px;
    background: #e5e7eb;
    z-index: 0;
}

.stepper-step.completed:not(:last-child)::after {
    background: #00556f;
}

.stepper-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #9ca3af;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.stepper-step.active .stepper-icon {
    border-color: #00556f;
    background: #00556f;
    color: white;
}

.stepper-step.completed .stepper-icon {
    border-color: #10b981;
    background: #10b981;
    color: white;
}

.stepper-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
}

.stepper-step.active .stepper-label {
    color: #00556f;
}

.stepper-step.completed .stepper-label {
    color: #10b981;
}

/* Upload Progress Card */
.upload-progress-card,
.result-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.upload-progress-header,
.result-header {
    background: #f9fafb;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-header {
    background: #ecfdf5;
    color: #065f46;
}

.progress-bar-container,
.upload-status-message,
.result-body {
    padding: 1.25rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.result-value {
    color: #1f2937;
    font-weight: 600;
}

.result-actions {
    padding: 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Form Cards */
.form-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-card-header {
    background: #f9fafb;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-card-header h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
}

.form-card-body {
    padding: 1.5rem 1.25rem;
}

.form-group-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-group-helper {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-zone {
        padding: 2rem 1rem;
    }
    
    .upload-title {
        font-size: 1.1rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .upload-helpers {
        gap: 0.5rem;
    }
    
    .upload-helper-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .stepper-label {
        font-size: 0.75rem;
    }
    
    .file-preview-image {
        height: 120px;
    }
}
