@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #f3f3f3;
    --bg-secondary: #ffffff;
    --bg-tertiary: #fafafa;
    --bg-hover: #f0f0f0;
    --text-primary: #242424;
    --text-secondary: #5d5d5d;
    --text-tertiary: #8a8a8a;
    --accent: #0078d4;
    --accent-hover: #106ebe;
    --accent-light: rgba(0,120,212,0.1);
    --border: #e0e0e0;
    --shadow: rgba(0,0,0,0.08);
    --shadow-lg: rgba(0,0,0,0.15);
    --success: #107c10;
    --error: #d13438;
    --warning: #ffb900;
    --radius: 8px;
    --radius-lg: 12px;
    --sidebar-width: 260px;
    --bottom-nav-height: 60px;
}

[data-theme="dark"] {
    --bg-primary: #202020;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #333333;
    --bg-hover: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #d0d0d0;
    --text-tertiary: #9e9e9e;
    --accent: #4cc2ff;
    --accent-hover: #6ecbfe;
    --accent-light: rgba(76,194,255,0.15);
    --border: #3d3d3d;
    --shadow: rgba(0,0,0,0.3);
    --shadow-lg: rgba(0,0,0,0.5);
}

* { font-family: 'Vazirmatn', Tahoma, sans-serif; box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; transition: background 0.3s; }

/* ===== Login ===== */
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, var(--bg-primary), var(--bg-tertiary)); }
.login-box { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 420px; box-shadow: 0 8px 32px var(--shadow-lg); border: 1px solid var(--border); }
.login-header { text-align: center; margin-bottom: 24px; }
.logo { width: 70px; height: 70px; background: var(--accent); border-radius: var(--radius); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; font-weight: 800; }
.logo-small { width: 42px; height: 42px; background: var(--accent); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.login-header h2 { color: var(--text-primary); margin-bottom: 6px; }
.subtitle { color: var(--text-secondary); font-size: 13px; }
.login-hint { text-align: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-tertiary); }
.link-back { display: block; text-align: center; margin-top: 16px; color: var(--accent); text-decoration: none; font-size: 13px; }

/* ===== Buttons ===== */
.btn-primary { background: var(--accent); color: white; border: none; border-radius: 6px; padding: 10px 18px; cursor: pointer; font-weight: 600; transition: all 0.2s; font-family: inherit; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,120,212,0.3); }
.btn-success { background: var(--success); color: white; border: none; border-radius: 6px; padding: 10px 18px; cursor: pointer; font-weight: 600; transition: all 0.2s; font-family: inherit; }
.btn-danger { background: var(--error); color: white; border: none; border-radius: 6px; padding: 10px 18px; cursor: pointer; font-weight: 600; transition: all 0.2s; font-family: inherit; }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); border-radius: 6px; padding: 10px 18px; cursor: pointer; font-weight: 600; transition: all 0.2s; font-family: inherit; }
.btn-small { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-icon { background: var(--bg-tertiary); border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 6px; cursor: pointer; color: var(--text-primary); transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.btn-icon:hover { background: var(--accent-light); color: var(--accent); }
.btn-icon.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ===== Forms ===== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text-secondary); font-size: 13px; }
.input-field { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; transition: all 0.2s; font-family: inherit; background: var(--bg-secondary); color: var(--text-primary); }
.input-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.color-input { height: 42px; padding: 4px; cursor: pointer; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.flex-2 { flex: 2; }
.flex-3 { flex: 3; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-group label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; }

/* ===== Sidebar ===== */
.sidebar { background: var(--bg-secondary); min-height: 100vh; box-shadow: 2px 0 8px var(--shadow); border-left: 1px solid var(--border); position: fixed; right: 0; top: 0; width: var(--sidebar-width); z-index: 100; overflow-y: auto; transition: transform 0.3s; }
.sidebar-header { padding: 20px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-weight: 700; color: var(--text-primary); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-tertiary); }
.sidebar-close { background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: 18px; display: none; }
.sidebar-nav { padding: 12px 0; }
.nav-item { padding: 12px 16px; margin: 2px 8px; border-radius: 6px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-weight: 500; position: relative; }
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--accent); color: white; }
.nav-item i { width: 20px; text-align: center; }
.nav-item span { flex: 1; }
.nav-item.logout { color: var(--error); }
.nav-section-title { padding: 12px 20px 6px; font-size: 11px; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; }
.badge-count { background: var(--error); color: white; padding: 2px 7px; border-radius: 10px; font-size: 10px; font-weight: 700; }

/* ===== Main Content ===== */
.main-content { margin-right: var(--sidebar-width); padding: 24px; min-height: 100vh; padding-bottom: 80px; }
.page-title { color: var(--text-primary); font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.page-title i { color: var(--accent); }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.view-toggle { display: flex; gap: 6px; }

/* ===== Breadcrumb ===== */
.breadcrumb { background: var(--bg-secondary); padding: 10px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 13px; color: var(--text-secondary); border: 1px solid var(--border); }
.breadcrumb i { color: var(--accent); }

/* ===== Cards ===== */
.card { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 2px 8px var(--shadow); border: 1px solid var(--border); margin-bottom: 16px; }
.card h4 { color: var(--text-primary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card h4 i { color: var(--accent); }

/* ===== Stats ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--border); box-shadow: 0 2px 8px var(--shadow); cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px var(--shadow-lg); border-color: var(--accent); }
.stat-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 22px; margin-bottom: 12px; background: var(--accent); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* ===== Dashboard Grid ===== */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 20px; }

/* ===== Filter Bar ===== */
.filter-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; background: var(--bg-secondary); padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); }
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); }
.search-box input { padding-right: 36px; }
.filter-bar .input-field { min-width: 140px; }

/* ===== Action Bar ===== */
.action-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }

/* ===== Bulk Actions ===== */
.bulk-actions { background: var(--accent-light); border: 1px solid var(--accent); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bulk-actions span { font-weight: 600; color: var(--accent); }

/* ===== Files Grid ===== */
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.files-grid.list-view { grid-template-columns: 1fr; }
.file-card { background: var(--bg-secondary); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 2px 8px var(--shadow); transition: all 0.2s; position: relative; }
.file-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px var(--shadow-lg); }
.file-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.file-checkbox { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; cursor: pointer; z-index: 5; accent-color: var(--accent); }
.file-preview { height: 140px; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.file-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.file-card:hover .file-preview img { transform: scale(1.05); }
.file-preview i { font-size: 50px; color: var(--error); }
.file-info { padding: 12px; }
.file-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.file-meta { font-size: 11px; color: var(--text-tertiary); margin-bottom: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.file-meta i { margin-left: 3px; }
.file-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.tag { background: var(--accent-light); color: var(--accent); padding: 2px 8px; border-radius: 10px; font-size: 10px; }
.file-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.file-actions button { flex: 1; padding: 6px; font-size: 12px; min-width: 0; }

/* List View */
.files-grid.list-view .file-card { display: flex; align-items: center; }
.files-grid.list-view .file-preview { width: 80px; height: 80px; flex-shrink: 0; }
.files-grid.list-view .file-info { flex: 1; padding: 12px 16px; }
.files-grid.list-view .file-actions { flex-shrink: 0; margin-top: 0; }

/* ===== Categories Grid ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.category-card { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 16px; border: 1px solid var(--border); border-right: 5px solid var(--cat-color, var(--accent)); box-shadow: 0 2px 8px var(--shadow); }
.category-card h4 { color: var(--text-primary); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.category-card .meta { font-size: 12px; color: var(--text-tertiary); display: flex; justify-content: space-between; align-items: center; }

/* ===== Users ===== */
.user-row { background: var(--bg-secondary); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border); transition: all 0.2s; flex-wrap: wrap; gap: 10px; }
.user-row:hover { border-color: var(--accent); box-shadow: 0 2px 8px var(--shadow); }
.user-row-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; cursor: pointer; }
.user-avatar { width: 44px; height: 44px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.user-details { flex: 1; min-width: 0; }
.user-details .name { font-weight: 700; color: var(--text-primary); font-size: 14px; }
.user-details .meta { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.user-stats { text-align: left; font-size: 12px; color: var(--text-secondary); }
.user-stats strong { color: var(--accent); font-size: 14px; }

/* ===== Messages ===== */
.tab-bar { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 10px; flex-wrap: wrap; }
.tab-btn { background: none; border: none; padding: 8px 16px; cursor: pointer; color: var(--text-secondary); font-weight: 600; border-radius: 6px 6px 0 0; transition: all 0.2s; font-family: inherit; }
.tab-btn.active { background: var(--accent-light); color: var(--accent); }
.message-item { padding: 12px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; }
.message-item:hover { background: var(--bg-hover); }
.message-item.unread { background: var(--accent-light); border-right: 3px solid var(--accent); }
.message-item .subject { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.message-item .meta { font-size: 11px; color: var(--text-tertiary); }

/* ===== Activity ===== */
.activity-item { padding: 10px 12px; border-right: 3px solid var(--accent); background: var(--bg-tertiary); margin-bottom: 6px; border-radius: 6px; }
.activity-item .action { font-weight: 600; color: var(--text-primary); }
.activity-item .meta { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

/* ===== Notifications ===== */
.notification-bell { position: fixed; top: 20px; left: 20px; width: 44px; height: 44px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-primary); box-shadow: 0 2px 8px var(--shadow); z-index: 99; transition: all 0.2s; font-size: 18px; }
.notification-bell:hover { transform: scale(1.1); color: var(--accent); }
.notification-panel { position: fixed; top: 70px; left: 20px; width: 320px; max-height: 400px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 32px var(--shadow-lg); z-index: 99; display: none; overflow: hidden; }
.notification-panel.active { display: block; }
.notif-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.notif-header h3 { font-size: 14px; color: var(--text-primary); }
.notif-list { overflow-y: auto; max-height: 340px; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; }
.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { background: var(--accent-light); }
.notif-item .title { font-weight: 600; font-size: 13px; color: var(--text-primary); margin-bottom: 4px; }
.notif-item .message { font-size: 12px; color: var(--text-secondary); }
.notif-item .time { font-size: 10px; color: var(--text-tertiary); margin-top: 4px; }

/* ===== Theme Toggle ===== */
.theme-toggle { position: fixed; top: 20px; left: 70px; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-secondary); border: 1px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-primary); box-shadow: 0 2px 8px var(--shadow); z-index: 99; transition: all 0.2s; }
.theme-toggle:hover { transform: scale(1.1); }

/* ===== Mobile Menu ===== */
.mobile-menu-btn { position: fixed; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-secondary); border: 1px solid var(--border); cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 18px; color: var(--text-primary); box-shadow: 0 2px 8px var(--shadow); z-index: 101; }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 98; display: none; }
.mobile-overlay.active { display: block; }

/* ===== Bottom Nav (Mobile) ===== */
.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom-nav-height); background: var(--bg-secondary); border-top: 1px solid var(--border); display: none; justify-content: space-around; align-items: center; z-index: 100; box-shadow: 0 -2px 8px var(--shadow); }
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px; cursor: pointer; color: var(--text-tertiary); transition: all 0.2s; font-size: 11px; }
.nav-btn i { font-size: 18px; }
.nav-btn.active { color: var(--accent); }

/* ===== Drop Zone ===== */
.drop-zone { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.3s; background: var(--bg-tertiary); margin-bottom: 20px; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--accent); background: var(--accent-light); }
.drop-zone i { font-size: 48px; color: var(--accent); margin-bottom: 12px; }
.drop-zone h3 { color: var(--text-primary); margin-bottom: 8px; }
.drop-zone p { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }

/* ===== Upload List ===== */
.upload-item { background: var(--bg-tertiary); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.upload-item .info { flex: 1; min-width: 0; }
.upload-item .name { font-weight: 600; font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-item .size { font-size: 11px; color: var(--text-tertiary); }
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; background: var(--accent); transition: width 0.3s; }
.upload-item .status { font-size: 12px; font-weight: 600; }
.upload-item .status.success { color: var(--success); }
.upload-item .status.error { color: var(--error); }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; color: var(--text-primary); transition: all 0.2s; font-family: inherit; }
.page-btn:hover { background: var(--accent-light); color: var(--accent); }
.page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Modals ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 24px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 32px var(--shadow-lg); border: 1px solid var(--border); position: relative; animation: modalIn 0.2s; }
.modal-box.large { max-width: 800px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-close { position: absolute; top: 12px; left: 12px; background: var(--error); color: white; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; z-index: 10; }
.modal-box h3 { color: var(--text-primary); margin-bottom: 16px; padding-left: 40px; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.lightbox-close { position: absolute; top: 20px; left: 20px; background: rgba(255,255,255,0.2); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px; z-index: 10; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 20px; z-index: 10; }
.lightbox-nav.prev { right: 20px; }
.lightbox-nav.next { left: 20px; }
.lightbox-content { max-width: 90%; max-height: 85vh; transition: transform 0.3s; }
.lightbox-content img { max-width: 100%; max-height: 85vh; }
.lightbox-content iframe { width: 90vw; height: 85vh; border: none; border-radius: 8px; }
.lightbox-controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; background: rgba(0,0,0,0.5); padding: 10px; border-radius: 30px; }
.lightbox-controls .btn-icon { background: rgba(255,255,255,0.2); color: white; border: none; }

/* ===== Toast ===== */
.toast { position: fixed; top: 20px; left: 20px; padding: 12px 20px; border-radius: 8px; color: white; font-weight: 600; z-index: 3000; animation: toastIn 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.3); max-width: 300px; }
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.warning { background: var(--warning); color: #000; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-100px); } to { opacity: 1; transform: translateX(0); } }

/* ===== Loading Skeleton ===== */
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: 6px; }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 200px; border-radius: var(--radius-lg); }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }

/* ===== Badge ===== */
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-admin { background: var(--error); color: white; }
.badge-user { background: var(--accent); color: white; }
.badge-editor { background: var(--warning); color: #000; }

/* ===== Color Dot ===== */
.color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 6px; vertical-align: middle; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .sidebar { transform: translateX(100%); }
    .sidebar.active { transform: translateX(0); }
    .sidebar-close { display: block; }
    .mobile-menu-btn { display: flex; }
    .main-content { margin-right: 0; padding: 70px 16px 80px; }
    .mobile-bottom-nav { display: flex; }
    .theme-toggle { left: 70px; top: 20px; }
    .notification-bell { left: 120px; }
    .notification-panel { left: 10px; right: 10px; width: auto; top: 130px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .files-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .file-preview { height: 110px; }
    .modal-box { padding: 16px; margin: 10px; }
    .page-title { font-size: 18px; }
    .filter-bar { flex-direction: column; }
    .filter-bar .input-field { min-width: 100%; }
    .action-bar { flex-direction: column; align-items: stretch; }
    .bulk-actions { flex-direction: column; align-items: stretch; }
    .bulk-actions button { width: 100%; }
}

/* ===== Print ===== */
@media print {
    .sidebar, .mobile-bottom-nav, .theme-toggle, .notification-bell, .mobile-menu-btn { display: none !important; }
    .main-content { margin-right: 0; }
}