.file-dropzone {
    position: relative;
    border: 2px dashed #b8c2cf;
    border-radius: 0.75rem;
    background: #f8fafc;
    min-height: 150px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.file-dropzone:hover,
.file-dropzone:focus-within {
    border-color: #0d6efd;
    background: #f3f7ff;
}

.file-dropzone.is-dragover {
    border-color: #0d6efd;
    background: #eaf2ff;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .10);
}

.file-dropzone.has-file {
    border-style: solid;
    border-color: #198754;
    background: #f3fbf7;
}

.file-dropzone.is-invalid {
    border-color: #dc3545;
    background: #fff6f7;
}

.file-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.file-dropzone-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto .6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7f0ff;
    color: #0d6efd;
    font-size: 1.4rem;
    font-weight: 700;
}

.file-dropzone-title {
    font-weight: 600;
    margin-bottom: .2rem;
}

.file-dropzone-help,
.file-dropzone-meta {
    color: #6c757d;
    font-size: .875rem;
}

.file-dropzone-selected {
    display: none;
    width: 100%;
    align-items: center;
    gap: .9rem;
    text-align: left;
}

.file-dropzone.has-file .file-dropzone-empty {
    display: none;
}

.file-dropzone.has-file .file-dropzone-selected {
    display: flex;
}

.file-dropzone-preview {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: .5rem;
    border: 1px solid #dfe3e8;
    background: #fff;
    object-fit: contain;
    display: none;
}

.file-dropzone.is-image .file-dropzone-preview {
    display: block;
}

.file-dropzone-file-icon {
    width: 54px;
    height: 64px;
    flex: 0 0 54px;
    border-radius: .45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .75rem;
    background: #dc3545;
    color: #fff;
}

.file-dropzone.is-image .file-dropzone-file-icon {
    display: none;
}

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

.file-dropzone-file-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-dropzone-remove {
    flex: 0 0 auto;
}

.file-dropzone-error {
    margin-top: .45rem;
    color: #dc3545;
    font-size: .875rem;
    display: none;
}

.file-dropzone.is-invalid + .file-dropzone-error {
    display: block;
}
