﻿/* file upload */

.mdu-field {
    margin-bottom: 1.25rem;
}

.mdu-label {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #344767;
}

.mdu-hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.mdu-upload {
    position: relative;
}

.mdu-upload__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mdu-upload__dropzone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 92px;
    padding: 1rem 1.1rem;
    border: 1px dashed #cfd8e3;
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.mdu-upload__dropzone:hover {
    border-color: var(--bs-primary);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.mdu-upload__icon {
    width: 2.85rem;
    height: 2.85rem;
    flex: 0 0 2.85rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e9eef5;
    color: var(--bs-primary);
    font-size: 1.1rem;
}

.mdu-upload__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mdu-upload__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #24324a;
    line-height: 1.3;
}

.mdu-upload__subtitle {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.45;
}

.mdu-upload__button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 1rem;
    border-radius: 0.8rem;
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #344767;
    font-size: 0.84rem;
    font-weight: 700;
}

.mdu-upload__meta {
    margin-top: 0.9rem;
    padding: 1rem;
    border: 1px solid #e6edf5;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.mdu-upload__file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mdu-upload__file-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.mdu-upload__file-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: #f8fafc;
    border: 1px solid #e9eef5;
    color: var(--bs-secondary);
    font-size: 1rem;
}

.mdu-upload__file-info {
    min-width: 0;
}

.mdu-upload__file-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #24324a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.mdu-upload__file-size {
    margin-top: 0.18rem;
    font-size: 0.78rem;
    color: #6b7280;
}

.mdu-upload__remove {
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mdu-upload__remove:hover {
    color: #dc3545;
    border-color: #f1b6bd;
}

.mdu-upload__progress-wrap {
    margin-top: 1rem;
}

.mdu-upload__progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
    gap: 1rem;
}

.mdu-upload__progress-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475467;
}

.mdu-upload__progress-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: #24324a;
}

.mdu-upload__progress {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: #eef2f6;
    overflow: hidden;
}

.mdu-upload__progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition:
        width 0.25s linear,
        background-color 0.25s linear;
}

.mdu-upload__progress-bar.is-red {
    background: #dc3545;
}

.mdu-upload__progress-bar.is-orange {
    background: #fd7e14;
}

.mdu-upload__progress-bar.is-light-green {
    background: #8bc34a;
}

.mdu-upload__progress-bar.is-dark-green {
    background: #198754;
}

.mdu-upload.has-error .mdu-upload__dropzone {
    border-color: #dc3545;
}

[data-bs-theme="dark"] .mdu-label {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .mdu-hint {
    color: #98a2b3;
}

[data-bs-theme="dark"] .mdu-upload__dropzone,
[data-bs-theme="dark"] .mdu-upload__meta {
    background: #1f2637;
    border-color: #344054;
    box-shadow: none;
}

[data-bs-theme="dark"] .mdu-upload__title,
[data-bs-theme="dark"] .mdu-upload__file-name,
[data-bs-theme="dark"] .mdu-upload__progress-value {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .mdu-upload__subtitle,
[data-bs-theme="dark"] .mdu-upload__file-size,
[data-bs-theme="dark"] .mdu-upload__progress-label {
    color: #98a2b3;
}

[data-bs-theme="dark"] .mdu-upload__icon,
[data-bs-theme="dark"] .mdu-upload__file-icon,
[data-bs-theme="dark"] .mdu-upload__button,
[data-bs-theme="dark"] .mdu-upload__remove {
    background: #151b2b;
    border-color: #344054;
    color: #d0d5dd;
}

[data-bs-theme="dark"] .mdu-upload__progress {
    background: #151b2b;
}

