.fum-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
}

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

.fum-sidebar {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.fum-sidebar h3 {
    margin-top: 0;
}

.fum-sidebar ul {
    list-style: none;
    padding: 0;
}

.fum-sidebar ul li {
    margin-bottom: 10px;
}

.fum-sidebar ul li a {
    text-decoration: none;
    color: #0073aa;
}

.fum-sidebar ul li a:hover {
    text-decoration: underline;
}

.fum-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.fum-stat-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

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

.fum-stat-value {
    font-size: 20px;
    font-weight: bold;
}

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

.fum-table-container {
    overflow-x: auto;
}

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

.fum-col-type {
    width: 15%;
}

.fum-col-size {
    width: 15%;
}

.fum-col-date {
    width: 20%;
}

.fum-col-downloads {
    width: 10%;
}

.fum-row-actions {
    margin-top: 5px;
    font-size: 12px;
}

.fum-row-actions a {
    margin-left: 5px;
}

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

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

.fum-checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fum-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fum-users-table th,
.fum-users-table td {
    vertical-align: middle;
}

.fum-users-table input[type="number"] {
    width: 100px;
    margin-left: 10px;
}

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

.fum-upload-item p {
    margin: 5px 0;
}

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

.fum-share-link,
.fum-share-qr,
.fum-copy-link,
.fum-share-short-link,
.fum-copy-short-link {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin: 5px;
    cursor: pointer;
    border-radius: 3px;
}

.fum-share-link:hover,
.fum-share-qr:hover,
.fum-copy-link:hover,
.fum-share-short-link:hover,
.fum-copy-short-link:hover {
    background: #005177;
}

.fum-share-short-link {
    background: #28a745;
}

.fum-share-short-link:hover {
    background: #1e7e34;
}

/* استایل‌های فرم آپلود */
.fum-upload-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fum-dropzone {
    border: 3px dashed #0073aa;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    direction: rtl;
}

.fum-dropzone:hover {
    border-color: #005177;
    background: #e8f4fd;
    transform: translateY(-2px);
}

.fum-dropzone.dragover {
    border-color: #28a745;
    background: #d4edda;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.fum-dropzone.file-selected {
    border-color: #17a2b8;
    background: #d1ecf1;
}

.fum-dropzone-text {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.fum-dropzone-text p {
    margin: 10px 0;
    font-weight: 500;
}

.fum-dropzone-text small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.fum-dropzone-text p strong {
    color: #0073aa;
    font-size: 18px;
}

.fum-upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.fum-file-info {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fum-file-info h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.fum-file-name-input {
    margin: 15px 0;
}

.fum-file-name-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.fum-file-name-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    direction: rtl;
    text-align: right;
}

.fum-upload-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.fum-upload-btn:hover {
    background: #005177;
}

.fum-upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.fum-upload-result {
    margin-top: 20px;
}

.fum-upload-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    direction: rtl;
    text-align: right;
}

.fum-upload-item p {
    margin: 10px 0;
    color: #333;
}

.fum-upload-item a {
    color: #0073aa;
    text-decoration: none;
    word-break: break-all;
}

.fum-upload-item a:hover {
    text-decoration: underline;
}

.fum-thumbnail {
    max-width: 200px;
    max-height: 200px;
    border-radius: 5px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* استایل‌های دکمه‌های کپی و اشتراک */
.fum-copy-link,
.fum-share-link,
.fum-share-short-link,
.fum-share-qr {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    transition: background 0.3s ease;
}

.fum-copy-link:hover,
.fum-share-link:hover,
.fum-share-qr:hover {
    background: #005177;
}

.fum-share-short-link {
    background: #28a745;
}

.fum-share-short-link:hover {
    background: #1e7e34;
}

/* استایل‌های QR کد */
.fum-qr-code {
    margin: 15px 0;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* ==========================================
   MODAL STYLES
   ========================================== */

.fum-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.fum-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    direction: rtl;
}

.fum-modal-close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    margin-top: -10px;
}

.fum-modal-close:hover,
.fum-modal-close:focus {
    color: #000;
    text-decoration: none;
}

.fum-modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.fum-form-group {
    margin-bottom: 20px;
}

.fum-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.fum-form-group input,
.fum-form-group textarea,
.fum-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.fum-form-group input:focus,
.fum-form-group textarea:focus,
.fum-form-group select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.fum-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fum-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.fum-modal-actions .button {
    padding: 8px 16px;
    min-width: 100px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ========================================== */

/* Mobile Styles (up to 768px) */
@media (max-width: 768px) {
    /* Upload Form Mobile */
    .fum-upload-container {
        margin: 10px;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    }
    
    .fum-dropzone {
        padding: 25px 10px;
        border-width: 2px;
        margin-bottom: 15px;
    }
    
    .fum-upload-icon {
        font-size: 32px;
    margin-bottom: 10px;
    }
    
    .fum-dropzone-text {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .fum-dropzone-text p {
        margin: 8px 0;
    }
    
    .fum-dropzone-text p strong {
        font-size: 16px;
    }
    
    .fum-dropzone-text small {
        font-size: 12px;
        margin-top: 6px;
    }
    
    .fum-file-info {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .fum-file-name-input input {
        padding: 8px;
        font-size: 14px;
    }
    
    .fum-upload-btn {
        padding: 10px 20px;
        font-size: 14px;
        margin-top: 8px;
    }
    
    .fum-thumbnail {
        max-width: 120px;
        max-height: 120px;
        margin: 8px 0;
    }
    
    /* Copy/Share buttons mobile */
    .fum-copy-link,
    .fum-share-link,
    .fum-share-short-link,
    .fum-share-qr {
        padding: 6px 12px;
        margin: 3px;
        font-size: 11px;
        display: inline-block;
        width: auto;
    }
    
    /* QR Code mobile */
    .fum-qr-code {
        margin: 10px 0;
        padding: 8px;
    }
    
    /* Container mobile */
    .fum-container {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }
    
    .fum-sidebar {
        padding: 15px;
        order: -1; /* Sidebar appears first on mobile */
    }
    
    /* Stats mobile */
    .fum-stats {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .fum-stat-box {
        margin: 0;
        padding: 12px;
    }
    
    .fum-stat-icon {
        font-size: 20px;
    }
    
    .fum-stat-value {
        font-size: 18px;
    }
    
    .fum-stat-label {
        font-size: 12px;
    }
    
    /* Table mobile */
    .fum-table-container {
        margin-bottom: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .wp-list-table {
        font-size: 12px;
        min-width: 600px; /* Ensure table doesn't get too cramped */
    }

    .fum-col-name,
    .fum-col-type,
    .fum-col-size,
    .fum-col-date,
    .fum-col-downloads {
        width: auto;
        padding: 8px 4px;
    }
    
    .fum-row-actions {
        font-size: 11px;
        margin-top: 3px;
    }
    
    .fum-row-actions a {
        margin-left: 3px;
        padding: 2px 4px;
        border-radius: 3px;
        background: #f0f0f0;
        display: inline-block;
    }
    
    /* Messages mobile */
    .fum-success-message,
    .fum-error-message,
    .fum-info-message {
        padding: 12px;
        font-size: 14px;
        margin: 8px 0;
    }
    
    /* Upload items mobile */
    .fum-upload-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .fum-upload-item p {
        margin: 8px 0;
        font-size: 14px;
    }
}

/* Tablet Styles (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .fum-upload-container {
        max-width: 700px;
        margin: 20px auto;
        padding: 25px;
    }
    
    .fum-dropzone {
        padding: 35px 20px;
    }
    
    .fum-upload-icon {
        font-size: 42px;
    }
    
    .fum-stats {
        gap: 15px;
    }
    
    .fum-stat-box {
        margin: 0 5px;
        padding: 18px;
    }
    
    .wp-list-table {
        font-size: 13px;
    }
}

/* Large Mobile Styles (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .fum-upload-container {
        margin: 15px;
        padding: 20px;
    }
    
    .fum-dropzone {
        padding: 30px 15px;
    }
    
    .fum-upload-icon {
        font-size: 36px;
    }
    
    .fum-dropzone-text {
        font-size: 15px;
    }
    
    .fum-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .fum-stat-box {
        flex: 1;
        min-width: calc(50% - 5px);
    }
}

/* Small Mobile Styles (up to 480px) */
@media (max-width: 480px) {
    .fum-upload-container {
        margin: 5px;
        padding: 12px;
        border-radius: 6px;
    }
    
    .fum-dropzone {
        padding: 20px 8px;
        border-width: 2px;
    }
    
    .fum-upload-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .fum-dropzone-text {
        font-size: 13px;
    }
    
    .fum-dropzone-text p strong {
        font-size: 15px;
    }
    
    .fum-dropzone-text small {
        font-size: 11px;
    }
    
    .fum-file-info {
        padding: 12px;
    }
    
    .fum-file-name-input input {
        padding: 6px;
        font-size: 13px;
    }
    
    .fum-upload-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .fum-thumbnail {
        max-width: 100px;
        max-height: 100px;
    }
    
    .fum-copy-link,
    .fum-share-link,
    .fum-share-short-link,
    .fum-share-qr {
        padding: 5px 8px;
        margin: 2px;
        font-size: 10px;
    }
    
    .fum-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .fum-stat-box {
        padding: 10px;
    }
    
    .fum-stat-icon {
        font-size: 18px;
    }
    
    .fum-stat-value {
        font-size: 16px;
    }
    
    .fum-stat-label {
        font-size: 11px;
    }
    
    .wp-list-table {
        font-size: 11px;
        min-width: 500px;
    }
    
    .fum-row-actions {
        font-size: 10px;
    }
    
    .fum-row-actions a {
        padding: 1px 3px;
        font-size: 10px;
    }
    
    .fum-upload-item {
        padding: 12px;
    }
    
    .fum-upload-item p {
        font-size: 13px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .fum-dropzone:hover {
        transform: none;
    }
    
    .fum-dropzone:hover {
        border-color: #0073aa;
        background: #f8f9fa;
    }
    
    .fum-upload-btn:hover {
        background: #0073aa;
    }
    
    .fum-copy-link:hover,
    .fum-share-link:hover,
    .fum-share-short-link:hover,
    .fum-share-qr:hover {
        background: #0073aa;
    }
    
    .fum-share-short-link:hover {
        background: #28a745;
    }
    
    /* Make buttons larger for touch */
    .fum-upload-btn {
        min-height: 44px;
    }
    
    .fum-copy-link,
    .fum-share-link,
    .fum-share-short-link,
    .fum-share-qr {
        min-height: 36px;
        padding: 8px 12px;
    }
    
    .fum-row-actions a {
        min-height: 32px;
        padding: 6px 8px;
        display: inline-flex;
        align-items: center;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .fum-upload-container {
        margin: 5px;
        padding: 10px;
    }
    
    .fum-dropzone {
        padding: 15px 10px;
    }
    
    .fum-upload-icon {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .fum-dropzone-text {
        font-size: 13px;
    }
    
    .fum-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .fum-stat-box {
        flex: 1;
        min-width: calc(33.333% - 6px);
        padding: 8px;
    }
}

/* ==========================================
   ADMIN FILE MANAGEMENT RESPONSIVE
   ========================================== */

/* ==========================================
   ADMIN MOBILE CARD LAYOUT
   ========================================== */

/* Hide desktop columns on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .wrap {
        margin: 10px 10px 0 10px !important;
    }
    
    .wrap h1 {
        font-size: 20px;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #0073aa;
    }
    
    /* Admin stats mobile */
    .fum-stats {
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .fum-stat-box {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
    }
    
    .fum-stat-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    .fum-stat-icon {
        font-size: 24px;
        display: block;
        margin-bottom: 8px;
    }
    
    .fum-stat-value {
        font-size: 18px;
        font-weight: bold;
        color: #0073aa;
        display: block;
        margin-bottom: 4px;
    }
    
    .fum-stat-label {
        font-size: 12px;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Mobile Card Layout */
    .fum-table-container {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        margin-bottom: 20px;
    }
    
    .wp-list-table {
        border: none;
        font-size: 14px;
        width: 100%;
        min-width: auto;
    }
    
    /* Hide table headers on mobile */
    .wp-list-table thead {
        display: none;
    }
    
    .wp-list-table tbody {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .wp-list-table tbody tr {
        display: block;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        margin: 0;
        padding: 0;
        position: relative;
    }
    
    .wp-list-table tbody tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }
    
    .wp-list-table tbody td {
        display: block;
        padding: 0;
        border: none;
        width: 100%;
    }
    
    /* File Info Card */
    .fum-file-info {
        padding: 20px;
    }
    
    .fum-file-name {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
        gap: 10px;
    }
    
    .fum-file-icon {
        font-size: 24px;
        flex-shrink: 0;
    }
    
    .fum-file-title {
        font-weight: 600;
        color: #333;
        font-size: 16px;
        flex: 1;
        word-break: break-word;
    }
    
    .fum-file-type {
        background: #0073aa;
        color: #fff;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
    }
    
    /* File Meta Info */
    .fum-file-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 15px;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 8px;
        font-size: 13px;
        color: #666;
    }
    
    .fum-file-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }
    
    /* Action Buttons */
    .fum-row-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        transition: all 0.3s ease;
    }
    
    .fum-row-actions.hidden {
        display: none;
    }
    
    .fum-file-row {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .fum-file-row.expanded {
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        transform: translateY(-1px);
    }
    
    /* Visual indicator for clickable rows */
    .fum-file-row::after {
        content: "👆";
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 16px;
        opacity: 0.6;
        transition: opacity 0.3s ease;
    }
    
    .fum-file-row.expanded::after {
        content: "👇";
        opacity: 1;
    }
    
    .fum-action-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 12px;
        border-radius: 8px;
        text-decoration: none;
        font-size: 12px;
        font-weight: 500;
        transition: all 0.2s ease;
        border: 1px solid #ddd;
        background: #fff;
        color: #333;
        min-height: 40px;
        flex: 1;
        justify-content: center;
    }
    
    .fum-action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .fum-action-icon {
        font-size: 14px;
    }
    
    .fum-action-text {
        font-size: 11px;
    }
    
    /* Action Button Colors */
    .fum-view-file:hover {
        background: #28a745;
        color: #fff;
        border-color: #28a745;
    }
    
    .fum-download-file:hover {
        background: #0073aa;
        color: #fff;
        border-color: #0073aa;
    }
    
    .fum-qr-file:hover {
        background: #17a2b8;
        color: #fff;
        border-color: #17a2b8;
    }
    
    .fum-copy-short-link:hover {
        background: #ffc107;
        color: #333;
        border-color: #ffc107;
    }
    
    .fum-delete-file:hover {
        background: #dc3545;
        color: #fff;
        border-color: #dc3545;
    }
    
    /* QR Code */
    .fum-qr-code {
        margin-top: 15px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        text-align: center;
        border: 1px solid #e0e0e0;
    }
    
    /* Empty state */
    .wrap p {
        text-align: center;
        color: #666;
        font-size: 16px;
        padding: 40px 20px;
        background: #f8f9fa;
        border-radius: 8px;
        border: 2px dashed #ddd;
    }
}

/* Desktop Table Styles */
@media (min-width: 769px) {
    .wp-list-table {
        font-size: 14px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .wp-list-table thead th {
        background: #f8f9fa;
        font-weight: 600;
        padding: 15px 12px;
        border-bottom: 2px solid #0073aa;
        color: #333;
        font-size: 13px;
        text-align: center;
    }
    
    .wp-list-table tbody tr {
        border-bottom: 1px solid #eee;
        transition: background-color 0.2s ease;
    }
    
    .wp-list-table tbody tr:hover {
        background-color: #f8f9fa;
    }
    
    .wp-list-table tbody td {
        padding: 15px 12px;
        vertical-align: middle;
        border: none;
    }
    
    .fum-file-info {
        padding: 0;
    }
    
    .fum-file-name {
        margin-bottom: 8px;
        gap: 8px;
    }
    
    .fum-file-icon {
        font-size: 18px;
    }
    
    .fum-file-title {
        font-size: 14px;
    }
    
    .fum-file-type {
        padding: 2px 6px;
        font-size: 10px;
    }
    
    .fum-file-meta {
        display: none; /* Hide meta info on desktop - use table columns */
    }
    
    .fum-row-actions {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #eee;
        font-size: 11px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .fum-action-btn {
        padding: 4px 8px;
        font-size: 10px;
        min-height: auto;
        flex: none;
    }
    
    .fum-action-text {
        display: none; /* Hide text on desktop, show only icons */
    }
    
    .fum-action-icon {
        font-size: 12px;
    }
}

/* Small mobile admin styles */
@media (max-width: 480px) {
    .wrap {
        margin: 5px 5px 0 5px !important;
    }
    
    .wrap h1 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .fum-stats {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .fum-stat-box {
        padding: 12px;
    }
    
    .fum-stat-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .fum-stat-value {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .fum-stat-label {
        font-size: 11px;
    }
    
    /* Small mobile card adjustments */
    .fum-file-info {
        padding: 15px;
    }
    
    .fum-file-name {
        margin-bottom: 10px;
        gap: 8px;
    }
    
    .fum-file-icon {
        font-size: 20px;
    }
    
    .fum-file-title {
        font-size: 15px;
    }
    
    .fum-file-type {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .fum-file-meta {
        padding: 10px;
        gap: 10px;
        font-size: 12px;
    }
    
    .fum-row-actions {
        gap: 6px;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .fum-action-btn {
        padding: 8px 10px;
        font-size: 11px;
        min-height: 36px;
    }
    
    .fum-action-icon {
        font-size: 12px;
    }
    
    .fum-action-text {
        font-size: 10px;
    }
}

/* Tablet admin styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .wrap {
        margin: 20px 20px 0 20px !important;
    }
    
    .fum-stats {
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .fum-stat-box {
        padding: 20px;
    }
    
    .fum-stat-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .fum-stat-value {
        font-size: 22px;
        margin-bottom: 6px;
    }
    
    .fum-stat-label {
        font-size: 14px;
    }
    
    .wp-list-table {
        font-size: 14px;
    }
    
    .wp-list-table thead th {
        padding: 15px 10px;
        font-size: 13px;
    }
    
    .wp-list-table tbody td {
        padding: 15px 10px;
    }
    
    .fum-row-actions {
        font-size: 12px;
        gap: 6px;
    }
}

/* استایل‌های لینک نمایش */
.fum-btn-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3) !important;
}

.fum-btn-display:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.fum-btn-display .fum-btn-icon {
    font-size: 14px !important;
}

.fum-btn-display .fum-btn-text {
    font-size: 12px !important;
}

/* استایل‌های دکمه کپی لینک نمایش */
.fum-copy-direct-link,
.fum-copy-direct-link-public {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.fum-copy-direct-link:hover,
.fum-copy-direct-link-public:hover {
    background: #218838 !important;
    transform: translateY(-1px) !important;
    color: white !important;
    text-decoration: none !important;
}

.fum-copy-direct-link .fum-btn-icon,
.fum-copy-direct-link-public .fum-btn-icon {
    font-size: 12px !important;
}

.fum-copy-direct-link .fum-btn-text,
.fum-copy-direct-link-public .fum-btn-text {
    font-size: 11px !important;
}

/* استایل‌های دکمه اشتراک لینک نمایش */
.fum-share-link {
    background: #17a2b8 !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.fum-share-link:hover {
    background: #138496 !important;
    transform: translateY(-1px) !important;
    color: white !important;
    text-decoration: none !important;
}

/* استایل‌های دکمه اشتراک لینک فایل */
.fum-share-file-link {
    background: #6c757d !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.fum-share-file-link:hover {
    background: #5a6268 !important;
    transform: translateY(-1px) !important;
    color: white !important;
    text-decoration: none !important;
}

/* استایل‌های ریسپانسیو برای دکمه‌های جدید */
@media (max-width: 768px) {
    .fum-btn-display {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    .fum-btn-display .fum-btn-icon {
        font-size: 12px !important;
    }
    
    .fum-btn-display .fum-btn-text {
        font-size: 11px !important;
    }
    
    .fum-copy-direct-link,
    .fum-copy-direct-link-public,
    .fum-share-link,
    .fum-share-file-link {
        padding: 4px 8px !important;
        font-size: 10px !important;
    }
    
    .fum-copy-direct-link .fum-btn-icon,
    .fum-copy-direct-link-public .fum-btn-icon {
        font-size: 10px !important;
    }
    
    .fum-copy-direct-link .fum-btn-text,
    .fum-copy-direct-link-public .fum-btn-text {
        font-size: 10px !important;
    }
}
    
    .fum-action-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* پیام‌های موفقیت و خطا */
.fum-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
    direction: rtl;
    text-align: right;
}

.fum-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
    direction: rtl;
    text-align: right;
}

.fum-info-message {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #bee5eb;
    direction: rtl;
    text-align: right;
}

/* کارت‌های نمایش فایل */
.fum-display-files {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
}

.fum-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fum-file-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.fum-file-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.fum-file-thumbnail {
    text-align: center;
    margin-bottom: 15px;
}

.fum-file-thumbnail img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    object-fit: cover;
}

.fum-file-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.fum-extension {
    font-size: 24px;
    font-weight: bold;
    color: #6c757d;
}

.fum-file-info {
    margin-bottom: 15px;
}

.fum-file-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.fum-file-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.fum-file-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fum-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.fum-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.fum-btn:hover {
    background: #005a87;
    color: white;
}

.fum-btn-display {
    background: #28a745;
}

.fum-btn-display:hover {
    background: #1e7e34;
}

.fum-btn-view {
    background: #17a2b8;
}

.fum-btn-view:hover {
    background: #138496;
}

.fum-btn-download {
    background: #ffc107;
    color: #212529;
}

.fum-btn-download:hover {
    background: #e0a800;
    color: #212529;
}

.fum-btn-copy {
    background: #6f42c1;
}

.fum-btn-copy:hover {
    background: #5a32a3;
}

.fum-btn-qr {
    background: #fd7e14;
}

.fum-btn-qr:hover {
    background: #e55a00;
}

.fum-btn-icon {
    font-size: 16px;
}

.fum-btn-text {
    font-size: 13px;
}

.fum-qr-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

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

.fum-qr-hint {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.fum-no-files {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.fum-no-files p {
    font-size: 18px;
    margin: 0;
}

/* Responsive برای کارت‌های نمایش فایل */
@media (max-width: 768px) {
    .fum-display-files {
        padding: 10px;
    }
    
    .fum-files-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fum-file-card {
        width: 100%;
        margin: 0;
        padding: 15px;
    }
    
    .fum-file-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .fum-btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 14px;
    }
    
    .fum-btn-icon {
        font-size: 18px;
    }
    
    .fum-btn-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .fum-display-files {
        padding: 5px;
    }
    
    .fum-file-card {
        padding: 12px;
    }
    
    .fum-file-title {
        font-size: 16px;
    }
    
    .fum-file-meta {
        font-size: 12px;
    }
    
    .fum-btn {
        padding: 8px;
        font-size: 13px;
    }
    
    .fum-btn-icon {
        font-size: 16px;
    }
    
    .fum-btn-text {
        font-size: 13px;
    }
}
