/* استایل‌های کلی افزونه */
.fum-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    direction: rtl;
}

.fum-main-content {
    flex: 3;
}

.fum-info-box {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.fum-info-icon {
    font-size: 24px;
    margin-right: 10px;
}

.fum-file-name-container {
    position: relative;
}

.fum-required-asterisk {
    position: absolute;
    top: 10px;
    left: 5px;
    color: red;
}

#fum-dropzone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
}

#fum-dropzone:hover {
    background: #f0f0f0;
    cursor: pointer;
}

.fum-file-icon {
    font-size: 24px;
    vertical-align: middle;
    margin-right: 10px;
}

.fum-upload-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.fum-upload-link {
    text-decoration: none;
    color: #0073aa;
}

.fum-upload-link:hover {
    color: #005177;
}

.fum-upload-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    background: #fff;
}

.fum-thumbnail {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

/* استایل‌های پنل کاربری و مدیریت فایل‌ها */
.fum-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.fum-stat-box {
    flex: 1;
    min-width: 150px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fum-stat-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.fum-stat-value {
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.fum-stat-label {
    font-size: 14px;
    color: #666;
}

.fum-table-container {
    margin-top: 20px;
}

.wp-list-table {
    direction: rtl;
}

.fum-col-name {
    width: 30%;
}

.fum-col-type, .fum-col-size, .fum-col-date, .fum-col-downloads, .fum-col-uploader {
    width: 15%;
}

.fum-row-actions {
    visibility: hidden;
    font-size: 12px;
}

tr:hover .fum-row-actions {
    visibility: visible;
}

.fum-qr-code {
    margin-top: 10px;
}

.fum-sticky-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* استایل‌های مدیریت کاربران */
.fum-users-table .column-upload-space {
    position: relative;
}

.upload-space-display {
    display: inline-block;
}

.upload-space-input {
    display: none;
    width: 100px;
    margin-right: 10px;
}

.column-upload-space.editing .upload-space-display,
.column-upload-space.editing .edit-link {
    display: none;
}

.column-upload-space.editing .upload-space-input,
.column-upload-space.editing .save-link {
    display: inline-block;
}

.edit-link, .save-link {
    margin-right: 10px;
}

/* استایل‌های فرم تنظیمات */
.fum-checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fum-checkbox-label {
    margin-right: 15px;
}

.fum-unit {
    color: #555;
    margin-right: 5px;
}

/* استایل‌های شورت‌کد نمایش فایل */
.fum-display-container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    direction: rtl;
}

.fum-display-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: right;
}

.fum-file-container {
    text-align: center;
}

.fum-display-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.fum-display-iframe {
    width: 100%;
    height: 600px;
    border: none;
    margin-bottom: 15px;
}

.fum-unsupported {
    color: #555;
    font-size: 16px;
    margin-bottom: 15px;
}

.fum-download-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}

.fum-download-link:hover {
    background: #005177;
}

.fum-error {
    color: red;
    font-size: 16px;
    text-align: center;
}

/* استایل‌های منتقل‌شده از شورت‌کد نمایش فایل */
.fum-file-thumbnail {
    max-width: 100%;
    height: auto;
    max-height: 100px; /* مقدار پیش‌فرض، از تنظیمات افزونه */
}

.fum-display-file .button {
    margin: 5px; /* مقدار پیش‌فرض، از تنظیمات افزونه */
    margin-bottom: 5px; /* مقدار پیش‌فرض، از تنظیمات افزونه */
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .fum-container {
        flex-direction: column;
    }

    .fum-stats {
        flex-direction: column;
    }

    .fum-thumbnail {
        max-width: 50px;
    }

    .fum-file-thumbnail {
        max-height: 50px; /* مقدار پیش‌فرض، از تنظیمات افزونه */
    }

    .fum-col-name, .fum-col-type, .fum-col-size, .fum-col-date, .fum-col-downloads, .fum-col-uploader {
        width: auto;
    }

    .fum-display-iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .fum-upload-item {
        padding: 10px;
    }

    .fum-stat-box {
        padding: 10px;
    }

    .fum-display-container {
        padding: 15px;
    }

    .fum-display-title {
        font-size: 20px;
    }
}