/* Admin styles */
.admin-badge { background: var(--accent-bg); color: var(--accent); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--accent); }
.admin-layout { display: flex; min-height: calc(100vh - 56px); }
.admin-nav { width: 200px; background: var(--bg-card); border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.nav-item { background: none; border: none; border-radius: var(--radius-sm); padding: 9px 12px; font-size: 14px; color: var(--text-2); cursor: pointer; text-align: left; transition: all .15s; }
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--accent-bg); color: var(--accent); font-weight: 500; }
.admin-content { flex: 1; padding: 28px 32px; overflow-y: auto; }
.tab-panel { max-width: 1000px; }
.tab-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.tab-desc { font-size: 13px; color: var(--text-2); margin-bottom: 16px; margin-top: -12px; }
.tab-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tab-header .tab-title { margin-bottom: 0; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat-label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); }

/* Tables */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--border); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }
.cell-name { font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-mono { font-family: monospace; font-size: 11px; color: var(--text-3); }

/* Recent activity */
.recent-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.audit-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* Settings */
.settings-form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.setting-row { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.setting-info { flex: 1; }
.setting-label { font-size: 14px; font-weight: 500; }
.setting-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.setting-control input, .setting-control select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 13px; background: var(--bg-input); color: var(--text); outline: none; width: 120px; }
.setting-control input:focus, .setting-control select:focus { border-color: var(--accent); }
.setting-save { background: none; border: none; color: var(--accent); font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm); }
.setting-save:hover { background: var(--accent-bg); }

/* Storage */
.storage-info { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.storage-bar-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.storage-bar-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.storage-bar { background: var(--border); border-radius: 4px; height: 10px; overflow: hidden; }
.storage-bar-fill { background: var(--accent); height: 100%; border-radius: 4px; transition: width .5s; }
.storage-numbers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 14px; }
.storage-num { text-align: center; }
.storage-num-val { font-size: 17px; font-weight: 700; }
.storage-num-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }

@media (max-width: 700px) {
  .admin-nav { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 8px; }
  .admin-layout { flex-direction: column; }
}
