/* File: style.css (Final Corrected Version: 2025-09-18) */
:root {
    --bg-color: #0B1116;
    --card-bg-color: #121A21;
    --text-color: #E0E0E0;
    --border-color: #2D3748;
    --primary-color: #38B2AC;
    --primary-hover-color: #4FD1C5;
    --secondary-color: #61afef;
    --error-color: #E53E3E;
    --info-color: #ECC94B;
    --success-color: #48BB78;
    --warning-color: #f59e0b;
    --hover-gray-color: rgba(255, 255, 255, 0.1);
}

body.light-theme {
    --bg-color: #ffffff;
    --card-bg-color: #ffffff;
    --text-color: #202124;
    --border-color: #dadce0;
    --primary-color: #1967d2;
    --primary-hover-color: #1a73e8;
    --hover-gray-color: #f1f3f4;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container { max-width: 1200px; width: 100%; margin: 20px auto; padding: 0; }
header.main-header { height: 80px; background-image: url('../img/header.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 10px; margin-bottom: 15px; border: 1px solid var(--border-color); position: relative; }
h2 { font-size: 1.8em; color: var(--primary-color); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 25px; }

.main-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.side-column { display: flex; flex-direction: column; width: 220px; flex-shrink: 0; }
.main-content { flex-grow: 1; min-width: 0; }
.tab-nav { background-color: var(--card-bg-color); border-radius: 8px; padding: 10px; border: 1px solid var(--border-color); }
.tab-button { width: 100%; padding: 15px 20px; text-align: center; cursor: pointer; background-color: transparent; border: none; color: var(--text-color); font-size: 1.1em; font-weight: bold; font-family: 'Vazirmatn', sans-serif; transition: background-color 0.3s, color 0.3s, transform 0.2s; border-radius: 6px; margin-bottom: 5px; text-decoration: none; display: block; box-sizing: border-box; }
.tab-nav .tab-button:last-child { margin-bottom: 0; }
.tab-button.active { background-color: var(--primary-color); color: #0B1116; }
.tab-button:not(.active):hover { background-color: var(--hover-gray-color); }
.logout-button { background-color: var(--error-color) !important; color: #fff !important; margin-top: 10px; }
.logout-button:hover { background-color: #c53030 !important; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.card { background-color: var(--card-bg-color); padding: 25px; border-radius: 4px; margin-bottom: 10px; border: 1px solid var(--border-color); transition: background-color 0.3s, border-color 0.3s; }
.uploader-box { border: 2px dashed var(--border-color); border-radius: 4px; padding: 30px; text-align: center; transition: border-color 0.3s, background-color 0.3s; cursor: pointer; }
.uploader-box.highlight { border-color: var(--primary-color); background-color: rgba(56, 178, 172, 0.1); }
.uploader-box h3 { font-size: 1.2em; margin-top: 0; margin-bottom: 10px; pointer-events: none; }
.upload-btn-main { background-color: var(--primary-color); color: var(--bg-color); padding: 12px 45px; border: none; border-radius: 8px; font-size: 1.2em; font-weight: bold; cursor: pointer; transition: background-color 0.3s; }
.upload-btn-main:hover { background-color: var(--primary-hover-color); }
.uploader-box p { color: #888; margin-top: 15px; pointer-events: none; }
#download-on-server-btn { min-width: 160px; }
.progress-container { margin-top: 20px; width: 100%; background-color: var(--bg-color); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; box-sizing: border-box; display: none; }
.progress-bar-wrapper { width: 100%; height: 15px; background-color: var(--card-bg-color); border-radius: 10px; overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background-color: var(--primary-color); transition: width 0.2s linear; }
.progress-details { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 0.85em; color: #aaa; }
.progress-text { font-weight: bold; color: var(--primary-hover-color); }
label { display: block; margin-bottom: 5px; font-weight: bold; }
input[type="url"], select, input[type="password"], input[type="text"], input[type="number"] { width: 100%; padding: 10px 15px; box-sizing: border-box; border: 1px solid var(--border-color); border-radius: 5px; background-color: var(--bg-color); color: var(--text-color); font-size: 1em; }
button { background-color: var(--primary-color); color: var(--bg-color); padding: 10px 20px; border: none; border-radius: 5px; font-size: 1em; cursor: pointer; font-weight: bold; transition: background-color 0.3s; }
button:hover { background-color: var(--primary-hover-color); }
.form-row { display: flex; align-items: flex-end; gap: 15px; }
.form-row .input-group { flex-grow: 1; }
.file-manager-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 0; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.sort-buttons, .action-buttons { display: flex; align-items: center; gap: 10px; }
.sort-buttons { font-size: 0.9em; }
.sort-buttons a { text-decoration: none; color: var(--secondary-color); padding: 5px 8px; border-radius: 4px; transition: background-color 0.3s; cursor: pointer; }
.sort-buttons a:hover { background-color: var(--hover-gray-color); }
.search-box { flex-grow: 1; display: flex; justify-content: center; }
#file-search-input { padding: 8px 12px; border-radius: 5px; border: 1px solid var(--border-color); background-color: var(--bg-color); color: var(--text-color); width: 220px; transition: width 0.3s ease-in-out; }
#file-search-input:focus { width: 350px; }
#status-message { display: none; padding: 10px 15px; margin-bottom: 15px; margin-top: 15px; border-radius: 5px; font-weight: bold; text-align: center; }
#status-message.success { background-color: var(--success-color); color: #fff; }
#status-message.error { background-color: var(--error-color); color: #fff; }
.file-list { overflow-x: auto; max-height: 60vh; overflow-y: auto; position: relative; }
.file-list table { width: 100%; border-collapse: collapse; margin-top: 0; direction: ltr; font-size: 0.8em; }
.file-list th, .file-list td { border: 1px solid var(--border-color); padding: 12px 15px; word-wrap: break-word; white-space: nowrap; text-align: left; }
.file-list thead th { position: sticky; top: 0; background-color: var(--card-bg-color); z-index: 5; border-top: 1px solid var(--border-color); }
.file-list th { background-color: #2a2a2a; }
tr:nth-child(even) { background-color: #222; }
body.light-theme .file-list tr:nth-child(even) { background-color: #ffffff; }
body.light-theme .file-list tr:hover { background-color: var(--hover-gray-color); }
body.light-theme .file-list tr.selected { background-color: #e8f0fe; }
body.light-theme .file-list td { border-color: var(--border-color); }
body.light-theme .file-list th { background-color: #f8f9fa; color: #5f6368; }
tr.selected { background-color: rgba(56, 178, 172, 0.2); }
.checkbox-col { width: 50px; text-align: center !important; vertical-align: middle; display: table-cell; }
.file-list i { display: inline-block; width: 16px; height: 16px; background-size: contain; vertical-align: middle; margin-left: 10px; margin-right: 0; }
.icon-file { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E0E0E0'%3E%3Cpath d='M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zM13 9V3.5L18.5 9H13z'/%3E%3C/svg%3E"); }
.file-link { color: var(--text-color); text-decoration: none; font-weight: bold; transition: color 0.3s; }
.file-link:hover { color: var(--primary-color); text-decoration: underline; }
.ltr-text { direction: ltr; display: inline-block; }
.server-stats-card { background-color: var(--card-bg-color); padding: 15px; border-radius: 8px; margin-top: 20px; border: 1px solid var(--border-color); font-size: 0.9em; }
.stat-title { font-size: 1.1em; font-weight: bold; color: var(--info-color); margin-top: 0; margin-bottom: 15px; text-align: center; }
.stat-line { display: flex; justify-content: space-between; margin-bottom: 8px; }
.stat-progress-bar-container { width: 100%; height: 12px; background-color: var(--bg-color); border-radius: 6px; overflow: hidden; margin-bottom: 8px; border: 1px solid var(--border-color); }
.stat-progress-bar-fill { height: 100%; border-radius: 6px; transition: width 0.5s ease-in-out, background-color 0.5s ease; }
.stat-progress-bar-fill.is-success { background-color: var(--success-color); }
.stat-progress-bar-fill.is-warning { background-color: var(--warning-color); }
.stat-progress-bar-fill.is-danger { background-color: var(--error-color); }
.stat-divider { border: none; border-top: 1px solid var(--border-color); margin: 10px 0; }
.youtube-leech-box { background: var(--box-bg, #1e1e1e); border: 1px solid var(--box-border, #444); border-radius: 8px; padding: 15px; margin-top: 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.yt-input-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.yt-input-row input[type="text"] { flex: 1; }
#yt_formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#yt_formats button { padding: 6px 12px; background: #333; color: #fff; border: 1px solid #555; border-radius: 4px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s, transform 0.1s; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--card-bg-color); padding: 25px; border-radius: 10px; width: 90%; max-width: 800px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 5px 25px rgba(0,0,0,0.5); border-top: 5px solid var(--primary-color); transform: scale(0.9); transition: transform 0.3s ease; }
.modal-overlay.active .modal-content { transform: scale(1); }
#modal-title { margin-top: 0; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
#modal-body { flex-grow: 1; overflow-y: auto; margin: 15px 0; }
#modal-body img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
#modal-body pre { background-color: var(--bg-color); padding: 15px; border-radius: 5px; white-space: pre-wrap; word-wrap: break-word; color: var(--text-color); }
#modal-body textarea { width: 100%; height: 50vh; padding: 10px; box-sizing: border-box; border: 1px solid var(--border-color); border-radius: 5px; background-color: var(--bg-color); color: var(--text-color); font-family: monospace; font-size: 1em; resize: vertical; }
#modal-footer { padding-top: 15px; border-top: 1px solid var(--border-color); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: var(--border-color); border-radius: 50%; cursor: pointer; transition: background-color 0.3s, transform 0.2s; }
.icon-btn:hover { background-color: var(--primary-color); transform: translateY(-2px); }
.icon-btn[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.icon-btn svg { width: 22px; height: 22px; fill: var(--text-color); }
.icon-btn::after { content: attr(data-tooltip); position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%); background-color: #000; color: #fff; padding: 5px 10px; border-radius: 5px; font-size: 0.85em; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 10; }
.icon-btn:hover::after { opacity: 1; visibility: visible; }
#btn-delete-selected:hover { background-color: #A80404; }
#btn-rename-selected:hover { background-color: #75163F; }
#btn-zip-selected:hover { background-color: #377D22; }
#btn-preview-selected:hover { background-color: #3182ce; }
#btn-edit-selected:hover { background-color: #d69e2e; }
.language-switcher { display: flex; gap: 15px; align-items: center; padding: 10px 0; }
.language-switcher .lang-link { color: var(--text-color); text-decoration: none; font-size: 1.1em; padding: 8px 15px; border-radius: 5px; transition: background-color 0.3s, color 0.3s; }
.language-switcher .lang-link:hover { background-color: var(--hover-gray-color); }
.language-switcher .lang-link.active, .theme-switcher-settings .theme-btn.active { background-color: var(--primary-color); color: var(--bg-color); font-weight: bold; }
.theme-switcher-settings { display: flex; gap: 15px; align-items: center; padding: 10px 0; }
.theme-switcher-settings .theme-btn { color: var(--text-color); text-decoration: none; font-size: 1.1em; padding: 8px 15px; border-radius: 5px; transition: background-color 0.3s, color 0.3s; }
.theme-switcher-settings .theme-btn:hover { background-color: var(--hover-gray-color); }
@media (max-width: 992px) { .file-manager-bar { flex-direction: column; align-items: stretch; } .search-box { order: -1; } #file-search-input, #file-search-input:focus { width: 100%; } .sort-buttons, .action-buttons { justify-content: center; } }

html[dir="ltr"] { direction: ltr; }
html[dir="ltr"] .main-layout { flex-direction: row; }
html[dir="ltr"] .tab-button:not(.active):hover { transform: translateX(5px); }
html[dir="ltr"] .card h2, html[dir="ltr"] .card label, html[dir="ltr"] .stat-line, html[dir="ltr"] .card h3:not(.stat-title) { text-align: left; }
.uploader-box h3 { text-align: center !important; }
html[dir="ltr"] .form-row, html[dir="ltr"] .yt-input-row { direction: ltr; }
html[dir="ltr"] .language-switcher { justify-content: flex-start; }
html[dir="ltr"] #modal-footer { text-align: right; }
html[dir="ltr"] #modal-footer button { margin-left: 0; margin-right: 10px; }
html[dir="ltr"] .file-list td:before { left: 15px; right: auto; padding-left: 15px; padding-right: 0; text-align: left; }
html[dir="ltr"] .file-list td.checkbox-col { padding-right: 15px; padding-left: 0; text-align: center; }
html[dir="rtl"] { direction: rtl; }
html[dir="rtl"] .main-layout { flex-direction: row; }
html[dir="rtl"] .side-column { order: 1; }
html[dir="rtl"] .main-content { order: 2; }
html[dir="rtl"] .tab-button:not(.active):hover { transform: translateX(-5px); }
html[dir="rtl"] .card h2, html[dir="rtl"] .card label, html[dir="rtl"] .stat-line, html[dir="rtl"] .card h3:not(.stat-title) { text-align: right; }
html[dir="rtl"] .form-row, html[dir="rtl"] .yt-input-row { direction: rtl; }
html[dir="rtl"] .language-switcher { justify-content: flex-start; }
html[dir="rtl"] #modal-footer { text-align: left; }
html[dir="rtl"] #modal-footer button { margin-right: 0; margin-left: 10px; }
html[dir="rtl"] .file-list td:before { left: auto; right: 15px; padding-left: 0; padding-right: 15px; text-align: right; }
html[dir="rtl"] .file-list td.checkbox-col { padding-right: 0; padding-left: 15px; text-align: center; }
.file-list .icon-file { display: none; }
.pagination-container { display: flex; justify-content: center; align-items: center; padding-top: 20px; margin-top: 20px; gap: 5px; }
.pagination-container button, .pagination-container span { padding: 8px 12px; border: 1px solid var(--border-color); background-color: var(--card-bg-color); color: var(--text-color); cursor: pointer; border-radius: 5px; font-size: 0.9em; }
.pagination-container button:hover { background-color: var(--primary-color); color: var(--bg-color); }
.pagination-container button:disabled { cursor: not-allowed; opacity: 0.5; }
.pagination-container span.active { background-color: var(--primary-color); color: var(--bg-color); border-color: var(--primary-color); font-weight: bold; }
.CodeMirror { border: 1px solid var(--border-color); height: 60vh; font-family: monospace; font-size: 14px; }
#modal-body.markdown-preview { font-family: sans-serif; line-height: 1.7; }
#modal-body.markdown-preview h1, #modal-body.markdown-preview h2, #modal-body.markdown-preview h3 { border-bottom: 1px solid var(--border-color); padding-bottom: 5px; margin-top: 20px; }
#modal-body.markdown-preview code { background-color: var(--bg-color); padding: 2px 5px; border-radius: 4px; font-family: monospace; }
#modal-body.markdown-preview pre { background-color: var(--bg-color); padding: 15px; border-radius: 5px; overflow-x: auto; }
#modal-body.markdown-preview blockquote { border-left: 4px solid var(--border-color); padding-left: 15px; color: #aaa; margin-left: 0; }
#pdf-canvas { border: 1px solid var(--border-color); width: 100%; height: auto; }
#yt_formats details { margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 6px; padding: 0.5rem; background-color: #262626; display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px !important; }
#yt_formats summary { font-size: 1.1rem; font-weight: bold; cursor: pointer; user-select: none; display: inline-block; padding: 0.3rem 0.5rem; border-radius: 4px; transition: background-color 0.2s ease; padding-right: 10px; flex-shrink: 0; }
#yt_formats summary:hover { background-color: #575757; }
.yt-format-btn { display: block; width: auto !important; margin: 0.3rem 0; padding: 0.4rem 0.6rem; font-size: 0.95rem; text-align: left; border: 1px solid #ddd; border-radius: 4px; background-color: #262626; cursor: pointer; transition: background-color 0.2s ease; display: inline-block !important; flex-grow: 0 !important; }
.yt-format-btn:hover { background-color: #424242; }
.terminal { background-color: #0d1117; border: 1px solid var(--border-color); border-radius: 6px; margin-top: 20px; font-family: monospace; font-size: 0.9em; }
.terminal-header { background-color: #161b22; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); color: #c9d1d9; }
.terminal-header button { background: none; border: none; color: #c9d1d9; font-size: 1.5em; line-height: 1; cursor: pointer; padding: 0 5px; }
.terminal-header button:disabled { opacity: 0.4; cursor: not-allowed; }
.terminal-body { padding: 15px; max-height: 300px; overflow-y: auto; color: #c9d1d9; white-space: pre-wrap; word-wrap: break-word; margin: 0; }
.file-list th:nth-child(2), .file-list td:nth-child(2), .file-list th:nth-child(3), .file-list td:nth-child(3), .file-list th:nth-child(4), .file-list td:nth-child(4) { text-align: center; vertical-align: middle; }
.file-manager-bar { position: sticky; top: 0; background-color: var(--card-bg-color); z-index: 10; padding-top: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.file-list::-webkit-scrollbar { width: 8px; }
.file-list::-webkit-scrollbar-track { background: transparent; }
.file-list::-webkit-scrollbar-thumb { background: #888; border-radius: 8px; opacity: 0; transition: opacity 0.3s; border: 2px solid var(--card-bg-color); }
body.dark-theme .file-list::-webkit-scrollbar-thumb { background: #555; border-color: var(--card-bg-color); }
.file-list::-webkit-scrollbar-button { display: none; height: 0; }
.file-list:hover::-webkit-scrollbar-thumb { opacity: 1; }
.file-list { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.file-list:hover { scrollbar-color: #888 transparent; }
#scroll-to-top-btn { position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; background-color: var(--primary-color); color: white; border: none; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; z-index: 1000; transition: opacity 0.3s, visibility 0.3s; }
#scroll-to-top-btn:hover { background-color: var(--primary-hover-color); }


/* ===== مجموعه اصلاحات جامع ===== */

/* درخواست ۱: هماهنگ‌سازی ستون کناری (با کاهش فاصله از هدر) */
header.main-header {
    margin-bottom: 15px;
}

/* درخواست ۲: کاهش ارتفاع کلی کادرهای بخش آپلود */
#local-upload-card,
#remote-upload-card,
#youtube-download-card {
    padding-top: 10px;
    padding-bottom: 15px;
}

/* درخواست ۳: کاهش اندازه و فاصله بالای عنوان‌ها در بخش آپلود */
#remote-upload-card h2,
#youtube-download-card h2 {
    font-size: 1.1em;   /* اندازه فونت بهینه شده */
    margin-top: 0;      /* حذف فاصله خارجی بالایی */
    padding-top: 0;     /* حذف فاصله داخلی بالایی */
    margin-bottom: 20px;/* تنظیم فاصله مناسب با محتوای زیرین */
}
/* اصلاح فاصله عنوان در تب مدیریت فایل (که قبلا درخواست کرده بودید) */
#files .card h2#file-manager-title {
    margin-top: 0;
    margin-bottom: 12px;
}

/* حذف فاصله بین نوار ابزار و جدول فایل‌ها */
.file-manager-bar {
  margin-bottom: 0 !important;
}
.file-list table {
  margin-top: 0 !important;
}

/* ===== تنظیمات بخش Settings ===== */

/* عنوان تنظیمات بدون خط جداکننده */
#settings h2 {
  border-bottom: none;
  margin-bottom: 10px;
}

/* کاهش اندازه کلی کارت‌ها و فونت‌ها در تنظیمات */
#settings .card {
  padding: 12px;
  font-size: 0.85em;
}

/* کاهش فاصله عنوان‌ها در تب تنظیمات */
#settings .card h2,
#settings .card h3 {
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 1em;
}

/* کانتینر برای باکس‌های افقی (زبان و تم) */
#settings .cards-row {
  display: flex;
  gap: 15px;
}

/* فقط باکس‌های زبان و تم نصف عرض بگیرن */
#settings .half-card {
  flex: 1 1 50%;
  max-width: 50%;
  box-sizing: border-box;
}

/* ایجاد فاصله برای دکمه ذخیره تغییرات رمز عبور */
#settings form button#save-changes-btn {
  margin-top: 15px;
}

/* =================================================================== */
/* ===== START: Mobile Responsive Styles (max-width: 768px) ===== */
/* =================================================================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h2 {
        font-size: 1.5em;
    }

    .card {
        padding: 15px;
    }

    .main-layout {
        flex-direction: column !important;
    }

    /* ===== START: بازچینی هوشمند ستون کناری برای موبایل ===== */
    .side-column {
        width: 100%;
        display: contents;
    }

    .tab-nav {
        order: 1;
        display: flex;
        flex-direction: row;
    }

    .main-content {
        order: 2;
    }

    .server-stats-card {
        order: 3;
        margin-top: 30px;
    }
    /* ===== END: بازچینی هوشمند ===== */

    .tab-button {
        transform: none !important;
        font-size: 0.9em;
        padding: 12px 5px;
        flex-grow: 1;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .form-row button {
        width: 100%;
    }

    header.main-header {
        background-position: 75% 50%;
    }

    /* ===== START: بازطراحی کامل جدول مدیریت فایل برای موبایل ===== */
    .file-list thead { display: none; }
    .file-list table, .file-list tbody, .file-list tr, .file-list td { display: block; width: 100%; }
    .file-list tr { border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 1rem; padding: 15px; display: flex; flex-wrap: wrap; align-items: center; }
    .file-list td { border: none; padding: 0; position: relative; }
    .file-list td.checkbox-col { flex: 0 0 40px; padding-right: 10px; }
    .file-list td.checkbox-col:before { display: none; }
    .file-list td:nth-child(2) { flex: 1; font-size: 1.1em; font-weight: bold; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border-color); }
    .file-list td:nth-child(2):before { display: none; }
    .file-list td:nth-child(2) .file-link { white-space: normal; word-break: break-all; }
    .file-list td:nth-child(3), .file-list td:nth-child(4) { flex: 1 0 100%; display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9em; }
    .file-list td:before { content: attr(data-label); font-weight: bold; color: var(--primary-color); }
    .file-list td:last-child { border-bottom: none; }
    /* ===== END: بازطراحی کامل جدول مدیریت فایل ===== */

    #settings .cards-row { flex-direction: column; }
    #settings .half-card { max-width: 100%; }
}
/* =================================================================== */
/* ===== END: Mobile Responsive Styles                             ===== */
/* =================================================================== */