/* ==========================================================================
   File Upload Center — shared styles
   ========================================================================== */

/* public/assets/css/output.css */
@font-face {
    font-family: 'IranSans';
    src: url('../fonts/irsans.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IranSans';
    src: url('../fonts/irsansb.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت به کل بدنه */
body {
    font-family: 'IranSans', sans-serif;
}


body {
    background-color: #f8f9fa;
}

/* ---------- Containers ---------- */
.upload-container,
.file-list-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .1);
}

.file-list-container {
    max-width: 1000px;
}

.file-icon {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 15px;
}

/* ---------- Drop zone ---------- */
.upload-area {
    border: 2px dashed #ced4da;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    margin-bottom: 20px;
}

.upload-area:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.upload-area.drag-over {
    border-color: #0d6efd;
    background-color: #e7f3ff;
}

/* ---------- Upload queue (cPanel-style rows) ---------- */
.upload-queue {
    margin-top: 10px;
}

.upload-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.upload-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.upload-item-name {
    font-weight: 600;
    color: #343a40;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.upload-item-size {
    font-size: .8em;
    color: #6c757d;
    white-space: nowrap;
}

.upload-item .progress {
    height: 20px;
    border-radius: 5px;
}

.upload-item .progress-bar {
    background-color: #0d6efd;
    transition: width .15s ease;
    font-size: .75em;
    font-weight: 600;
}

.upload-item .progress-bar.bg-success {
    background-color: #198754 !important;
}

.upload-item .progress-bar.bg-danger {
    background-color: #dc3545 !important;
}

.upload-item-status {
    font-size: .8em;
    color: #6c757d;
    margin-top: 6px;
}

.upload-item-status.text-success {
    color: #198754 !important;
    font-weight: 600;
}

.upload-item-status.text-danger {
    color: #dc3545 !important;
    font-weight: 600;
}

/* ---------- File list page ---------- */
.date-section {
    margin-top: 30px;
}

.file-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    height: 100%;
}

.file-name {
    font-weight: bold;
    color: #343a40;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta {
    font-size: .9em;
    color: #6c757d;
}

.btn-download {
    padding: 5px 10px;
    font-size: .85em;
}

.no-files {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}
