﻿.file-upload-container {
    width: 100%;
}

.drop-zone {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.drop-zone:hover, .drop-zone.drag-over {
    background-color: #eef7ff;
    border-color: #0d6efd;
}

.drop-zone .drop-zone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.drop-zone p {
    margin: 0.5rem 0;
    color: #555;
}

.file-list ul {
    list-style-type: none;
    padding: 0;
}

.file-list li {
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.file-list small {
    color: #6c757d;
}




.file-upload-container .drop-zone {
    position: relative; /* مهم: برای جای‌گیری صحیح لایه فرزند */
    border: 2px dashed #ccc;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

    .file-upload-container .drop-zone.drag-over {
        background-color: #f0f8ff;
        border-color: #0d6efd;
    }

/* 
  این لایه نامرئی InputFile است که روی همه چیز قرار می‌گیرد 
  و رویدادها را دریافت می‌کند
*/
.file-upload-container .file-input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* کاملاً شفاف و نامرئی */
    cursor: pointer; /* نمایش نشانگر دست هنگام هاور */
}

/* این متن حالا در زیر لایه نامرئی قرار دارد */
.file-upload-container .drop-zone-text {
    /* این ویژگی باعث می‌شود کاربر نتواند متن را انتخاب کند که حس بهتری می‌دهد */
    user-select: none;
}