body {
	direction: rtl;
}
.upload-container {
    position: relative;
    z-index: 1;
    display: inline-block;
}
.upload-btn-wrap {
    background-color: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    width: 300px;
    max-width: 100%;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.file-input:hover ~ .upload-btn-wrap,
.upload-btn-wrap:hover {
    border-color: #71F494;
    background-color: rgba(255, 255, 255, 0.06);
}
.upload-btn-wrap.active {
    border-style: solid;
    border-color: #71F494;
    background-color: rgba(113, 244, 148, 0.1);
    box-shadow: 0 0 15px rgba(113, 244, 148, 0.15);
}
.upload-btn-wrap.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}
.file-input-val-text {
    font-size: 15px;
    color: #f8fafc;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.upload-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #94a3b8;
    transition: stroke 0.3s ease;
}
.file-input:hover ~ .upload-btn-wrap .upload-icon path,
.upload-btn-wrap:hover .upload-icon path,
.upload-btn-wrap.active .upload-icon path {
    stroke: #71F494;
}
.delete-file {
    display: inline-flex;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    position: relative;
    z-index: 10;
    transition: all 0.2s;
}
.delete-file:hover {
    background: #ef4444;
    color: #fff;
}
.upload-container:not(.active) .delete-file {
    display: none;
}
.file-input {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}
.upload-container.active .file-input {
    width: 80%;
    left: auto;
}

.file-input:focus-visible + .upload-btn-wrap {
    outline: 2px solid #71F494;
}
.error-tip {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    display: block;
}