/* Dashboard Styles */
:root {
  --bg: #090a0c;
  --bg-soft: #101115;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --surface-dark: #121318;
  --text: #f3f3f3;
  --muted: #bfbfbf;
  --muted-2: #9f9f9f;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.5);
  --accent: #8ecae6;
  --accent-2: #f4d35e;
  --accent-3: #f4a261;
  --success: #9bc1a3;
  --error: #d97067;
  --warning: #e8b45c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(142, 202, 230, 0.12), transparent 32%),
    radial-gradient(circle at 90% 15%, rgba(244, 211, 94, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #07090d 58%, #020305 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(rgba(120, 90, 90, 0.35) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
}

#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #111;
  box-shadow: none;
  font-size: 15px;
}

.brand__text {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

/* Login Page Styles */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 76px);
  padding: 40px 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.login-header {
  margin-bottom: 30px;
  text-align: center;
}

.login-header h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
}

.login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.login-body {
  margin-bottom: 24px;
}

.btn {
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.btn.small {
  padding: 8px 12px;
  font-size: 12px;
}

.discord-login {
  width: 100%;
  background: #5865f2;
  color: #fff;
  border: none;
  font-weight: 800;
  padding: 14px 20px;
  font-size: 15px;
}

.discord-login:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

.discordIcon {
  width: 18px;
  height: 18px;
}

.login-info {
  margin: 24px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.login-info p {
  margin: 0 0 8px;
}

.login-info p:last-child {
  margin: 0;
}

.login-footer {
  text-align: center;
}

.login-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s ease;
}

.login-link:hover {
  color: var(--text);
}

/* Dashboard Layout */
.dashboard-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
  border-bottom: 1px solid var(--line);
}

.dashboard-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.dashboard-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 16px;
}

.dashboard-logo .brand__mark {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.dashboard-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

#userDisplay {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.logout-btn {
  padding: 8px 14px;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--line);
}

/* Dashboard Container */
.dashboard-container {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Navigation */
.dashboard-nav {
  width: 220px;
  background: rgba(255, 255, 255, 0.018);
  border-right: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  text-align: left;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
  color: var(--text);
  background: rgba(142, 202, 230, 0.09);
  border-left-color: var(--accent);
}

.tab-icon {
  font-size: 16px;
}

/* Views */
.dashboard-views {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.view-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.panel-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.panel-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.last-update {
  color: var(--muted-2);
  font-size: 12px;
}

.search-input {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 8px;
  font-size: 13px;
  width: 280px;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.search-input.large {
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  font-size: 14px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
}

.stat-card.accent-card {
  border-color: rgba(142, 202, 230, 0.22);
  background: linear-gradient(180deg, rgba(142, 202, 230, 0.08), rgba(255, 255, 255, 0.025));
}

.stat-label {
  color: var(--muted-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-desc {
  color: var(--muted);
  font-size: 12px;
}

/* Charts */
.chart-container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 30px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.chart-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.chart-period {
  color: var(--muted-2);
  font-size: 12px;
}

.mini-chart {
  height: 200px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  height: 100%;
  padding: 22px;
}

.bar {
  flex: 1;
  min-width: 4px;
  max-width: 18px;
  background: linear-gradient(180deg, var(--accent), rgba(142, 202, 230, 0.2));
  border-radius: 4px 4px 0 0;
}

.placeholder {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Filters */
.filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Tables */
.logs-table-container,
.staff-table-container,
.roles-table-container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.logs-table,
.staff-table,
.roles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.logs-table thead,
.staff-table thead,
.roles-table thead {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
}

.logs-table th,
.staff-table th,
.roles-table th {
  padding: 12px 14px;
  text-align: left;
  color: var(--muted-2);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.logs-table tbody tr,
.staff-table tbody tr,
.roles-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}

.logs-table tbody tr:hover,
.staff-table tbody tr:hover,
.roles-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.logs-table td,
.staff-table td,
.roles-table td {
  padding: 12px 14px;
  color: var(--text);
}

.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable:hover {
  background: rgba(255, 255, 255, 0.03);
}

.loading-row td {
  text-align: center;
  color: var(--muted);
  padding: 24px 14px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.page-btn {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  color: var(--muted);
  font-size: 12px;
  min-width: 60px;
  text-align: center;
}

/* User Lookup */
.lookup-search {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.user-result-container {
  min-height: 300px;
}

.user-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  max-width: 500px;
}

.user-card.wide {
  max-width: 860px;
}

.user-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 14px;
  color: var(--muted);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.user-name {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
}

.user-id {
  color: var(--muted);
  font-size: 12px;
  font-family: monospace;
}

.user-info-group {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.user-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}

.user-info-label {
  color: var(--muted);
}

.user-info-value {
  font-weight: 600;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.banned {
  background: rgba(217, 112, 103, 0.2);
  color: #d97067;
}

.status-badge.ok {
  background: rgba(155, 193, 163, 0.2);
  color: #9bc1a3;
}

.user-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.force-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
}

.ban-row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.dashboard-card,
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-top: 20px;
}

.section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.section-title.small {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 8px;
}

.compact-list {
  display: grid;
  gap: 10px;
}

.compact-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 8px;
  padding: 12px;
}

.compact-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  font-size: 13px;
}

.compact-meta,
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.profile-inline img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.profile-inline strong,
.profile-inline small {
  display: block;
}

.profile-inline strong {
  color: var(--text);
}

.detail-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  padding: 12px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}

.metric-card strong {
  font-size: 20px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.user-detail-panel {
  margin-top: 18px;
}

.user-actions .btn {
  flex: 1;
}

/* Group Info */
.group-info-container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.group-header {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.group-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}

.group-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-img {
  filter: opacity(0.3);
}

.group-meta h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.group-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.group-stats {
  display: flex;
  gap: 20px;
}

.group-stat {
  display: flex;
  flex-direction: column;
}

.group-stat .label {
  color: var(--muted-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 4px;
}

.group-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.group-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.group-section h4 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 800;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 12px;
}

.activity-time {
  color: var(--muted-2);
  font-size: 11px;
}

.activity-desc {
  color: var(--text);
  margin-top: 4px;
}

/* Action Rows */
.action-row {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.dashboard-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-field small {
  color: var(--muted-2);
  font-weight: 500;
  text-transform: none;
}

.textarea-input {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.announcement-preview-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.loading-overlay.show {
  display: flex;
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  padding: 14px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 120;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 400px;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast.success {
  background: rgba(155, 193, 163, 0.2);
  border-color: rgba(155, 193, 163, 0.4);
  color: #9bc1a3;
}

.toast.error {
  background: rgba(217, 112, 103, 0.2);
  border-color: rgba(217, 112, 103, 0.4);
  color: #d97067;
}

/* Responsive */
@media (max-width: 1200px) {
  .dashboard-header-inner {
    padding: 0 24px;
  }

  .dashboard-views {
    padding: 30px;
  }

  .dashboard-nav {
    width: 160px;
  }
}

@media (max-width: 900px) {
  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-nav {
    width: 100%;
    height: auto;
    position: static;
    top: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-tab {
    padding: 10px 12px;
    font-size: 12px;
    flex: 1;
    min-width: 100px;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .nav-tab.active {
    border-left: none;
    border-bottom-color: var(--accent);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-input {
    width: 100%;
  }

  .panel-controls {
    flex-direction: column;
    width: 100%;
  }

  .lookup-search {
    flex-direction: column;
  }

  .group-header {
    flex-direction: column;
  }

  .split-grid,
  .force-link-row {
    grid-template-columns: 1fr;
  }

  .group-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 600px) {
  .dashboard-header-inner {
    padding: 0 16px;
    min-height: 60px;
  }

  .dashboard-logo {
    font-size: 14px;
  }

  .dashboard-logo .brand__mark {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  #userDisplay {
    display: none;
  }

  .logout-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .dashboard-views {
    padding: 20px;
  }

  .nav-tab {
    padding: 8px 10px;
    font-size: 11px;
    min-width: 80px;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-header h2 {
    font-size: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 24px;
  }

  .filter-row {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .logs-table,
  .staff-table,
  .roles-table {
    font-size: 11px;
  }

  .logs-table th,
  .staff-table th,
  .roles-table th {
    padding: 10px 8px;
    font-size: 10px;
  }

  .logs-table td,
  .staff-table td,
  .roles-table td {
    padding: 10px 8px;
  }

  .user-card {
    padding: 16px;
  }

  .user-header {
    gap: 12px;
  }

  .user-avatar {
    width: 60px;
    height: 60px;
  }

  .user-name {
    font-size: 14px;
  }

  .group-section h4 {
    font-size: 13px;
  }

  .page-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}
