.upload-container {
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2);
    padding: 1.2rem;
    width: 100%;
    transition: all 0.3s ease;
}

.badge-chunk {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* باکس آپلود */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 24px;
    background-color: #f8fafc;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.upload-area:hover {
    border-color: #8b5cf6;
    background-color: #f1f5f9;
}

.upload-area.drag-over {
    border-color: #8b5cf6;
    background-color: #ede9fe;
    border-style: solid;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 0.8rem;
    display: inline-block;
    background: #eef2ff;
    width: 85px;
    height: 85px;
    line-height: 85px;
    border-radius: 50%;
    color: #8b5cf6;
    transition: 0.2s;
}

.upload-area:hover .upload-icon {
    background: #8b5cf6;
    color: white;
    transform: translateY(-5px);
}

.upload-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.browse-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
    display: inline-block;
}

.browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

/* بخش پیش‌نمایش */
.preview-section {
    margin-top: 1.8rem;
    display: none;
}

.preview-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 1.2rem;
    text-align: center;
}

.preview-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.preview-image {
    max-width: 100%;
    max-height: 250px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
}

.file-info {
    background: white;
    padding: 10px 15px;
    border-radius: 12px;
    margin: 1rem 0;
    text-align: right;
}

.file-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.file-info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: #64748b;
    font-weight: 500;
}

.info-value {
    color: #1e293b;
    font-weight: 600;
    word-break: break-all;
    text-align: left;
    max-width: 60%;
}

/* نوار پیشرفت */
.progress-container {
    margin: 1rem 0;
    display: none;
}

.progress-bar-wrapper {
    background: #e2e8f0;
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    width: 0%;
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7c3aed;
}

.progress-status {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

/* اطلاعات چانک */
.chunk-info {
    background: #f1f5f9;
    padding: 8px;
    border-radius: 12px;
    margin-top: 10px;
    font-size: 0.7rem;
    color: #475569;
    text-align: center;
    display: none;
}

/* دکمه‌های عملیات */
.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 1rem;
}

.btn-cancel {
    background: #e2e8f0;
    border: none;
    color: #475569;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}

.btn-cancel:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

.btn-upload {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    font-size: 0.9rem;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-upload:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* پیام‌ها */
.message {
    margin-top: 1rem;
    padding: 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    text-align: center;
    display: none;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

.message.info {
    background: #dbeafe;
    color: #1e40af;
    display: block;
}

.imageupload input[type="file"] {
    display: none;
}

.reset-link {
    text-align: center;
    margin-top: 1rem;
}

.reset-link a {
    color: #8b5cf6;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.reset-link a:hover {
    text-decoration: underline;
}