/* ===================== Fonts ===================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===================== Variables ===================== */
:root {
  --sidebar-width: 260px;
  --sidebar-bg: #1a1a2e;
  --sidebar-hover: #16213e;
  --sidebar-active: #0f3460;
  --primary: #1DB446;
  --primary-dark: #0f8a35;
  --primary-light: rgba(29, 180, 70, 0.1);
  --topbar-height: 60px;
  --font-th: 'Noto Sans Thai', 'Inter', sans-serif;
  --font-en: 'Inter', 'Noto Sans Thai', sans-serif;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-th);
  background: var(--bg-page);
  margin: 0;
  overflow-x: hidden;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

/* ===================== Sidebar ===================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  color: #fff;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.sidebar-brand {
  padding: 24px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.sidebar-brand .brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(29,180,70,0.3);
}

.sidebar-brand h4 {
  margin: 4px 0 0;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.sidebar-brand small {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-nav {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  flex: 1;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  padding: 11px 20px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 13.5px;
  font-weight: 400;
  gap: 12px;
  border-left: 3px solid transparent;
  margin: 2px 0;
}

.sidebar-nav li a:hover {
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
}

.sidebar-nav li a.active {
  background: rgba(29, 180, 70, 0.1);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 500;
}

.sidebar-nav li a i {
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav .nav-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.15);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
}

.sidebar-nav li a.active .nav-badge {
  background: var(--primary);
  color: #fff;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.sidebar-footer .server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-footer .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===================== Content Area ===================== */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar {
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-left h6 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-right .user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.topbar-right .user-info i {
  color: var(--primary);
  font-size: 16px;
}

#btnToggleSidebar {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}

#btnToggleSidebar:hover {
  background: #f1f5f9;
}

.content-wrapper {
  padding: 24px;
  max-width: 1400px;
}

.page-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page-section.active {
  display: block;
}

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

/* ===================== Section Header ===================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h5 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header .last-updated {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===================== Stat Cards ===================== */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.stat-card.card-blue::after { background: #4A90D9; }
.stat-card.card-green::after { background: var(--primary); }
.stat-card.card-red::after { background: #ef4444; }
.stat-card.card-orange::after { background: #f59e0b; }

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2px 0 0;
  font-family: var(--font-en);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===================== Cards ===================== */
.table-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.table-card .card-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.table-card .card-header h6 {
  font-size: 15px;
  font-weight: 600;
}

.table-card .card-body {
  padding: 0;
}

/* ===================== Table ===================== */
.table-card table {
  margin: 0;
  font-size: 13.5px;
}

.table-card thead th {
  background: #f8fafc;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 12px 16px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.table-card tbody td {
  padding: 10px 16px;
  vertical-align: middle;
  color: var(--text-primary);
  border-bottom: 1px solid #f1f5f9;
}

.table-card tbody tr:hover {
  background: #f8fafc;
}

.table-card tbody tr:last-child td {
  border-bottom: none;
}

.table-responsive {
  overflow-x: auto;
}

/* ===================== Badge ===================== */
.badge-online, .badge-enabled {
  background: rgba(29, 180, 70, 0.1);
  color: #15803d;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.badge-offline, .badge-disabled {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

/* ===================== Search ===================== */
.search-box {
  max-width: 360px;
}

.search-box .form-control {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-color: var(--border-color);
  font-size: 13.5px;
  padding: 8px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 14px;
}

/* ===================== Form ===================== */
.form-control, .form-select {
  font-size: 13.5px;
  border-color: var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ===================== Buttons ===================== */
.btn {
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-sm {
  font-size: 12.5px;
  padding: 5px 10px;
}

.btn-success, .btn-primary-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-success:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===================== Pagination ===================== */
.pagination-wrapper {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border-color);
}

.pagination-info {
  font-size: 12.5px;
  color: var(--text-muted);
}

.page-link {
  font-size: 13px;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===================== Modal ===================== */
.modal-header {
  background: var(--sidebar-bg);
  color: #fff;
  padding: 16px 20px;
}

.modal-header .modal-title {
  font-size: 16px;
  font-weight: 600;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 24px 20px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
}

.modal-content {
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-lg);
}

/* ===================== Chart ===================== */
.chart-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  border: 1px solid var(--border-color);
}

.chart-card h6 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===================== Online Users Widget ===================== */
.online-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.online-widget .widget-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.online-widget .widget-header h6 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.online-widget .widget-body {
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}

.online-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.online-item:hover {
  background: #f8fafc;
}

.online-item:last-child {
  border-bottom: none;
}

.online-item .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.online-item .user-detail {
  flex: 1;
  min-width: 0;
}

.online-item .user-detail .name {
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-item .user-detail .dept {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  animation: pulse-dot 2s ease infinite;
}

/* ===================== Toast ===================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
  max-width: 400px;
  border-left: 4px solid var(--primary);
}

.toast-item.toast-error {
  border-left-color: #ef4444;
}

.toast-item.toast-warning {
  border-left-color: #f59e0b;
}

.toast-item i {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-item.toast-success i { color: var(--primary); }
.toast-item.toast-error i { color: #ef4444; }
.toast-item.toast-warning i { color: #f59e0b; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}

/* ===================== Tabs ===================== */
.nav-tabs {
  border-bottom: 2px solid var(--border-color);
  gap: 4px;
}

.nav-tabs .nav-link {
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-tabs .nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  margin-bottom: -2px;
}

/* ===================== Empty State ===================== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 14px;
  margin: 0;
}

/* ===================== Sidebar Overlay (Mobile) ===================== */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}

/* ===================== Responsive ===================== */
@media (max-width: 991px) {
  .content-wrapper {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .sidebar-overlay.show {
    display: block;
  }
  .main-content {
    margin-left: 0;
  }
  #btnToggleSidebar {
    display: block;
  }
  .content-wrapper {
    padding: 16px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card .stat-value {
    font-size: 22px;
  }
  .stat-card .stat-label {
    font-size: 11.5px;
  }
  .topbar {
    padding: 0 16px;
    height: 54px;
  }
  .topbar-left h6 {
    font-size: 14px;
  }
  .card-header {
    flex-direction: column;
    align-items: stretch !important;
  }
  .search-box {
    max-width: 100%;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .toast-container {
    right: 12px;
    left: 12px;
  }
  .toast-item {
    min-width: auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .stat-card .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* ===================== Inactive Users ===================== */
.stat-card.card-yellow::after { background: #eab308; }
.stat-card.card-dark::after { background: #64748b; }

.inactive-card {
  transition: all 0.25s ease;
}

.inactive-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.inactive-card small {
  font-size: 11px;
  display: block;
  margin-top: 6px;
}

/* Inactive Badges */
.badge-inactive-caution {
  background: rgba(234, 179, 8, 0.12);
  color: #a16207;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.badge-inactive-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.badge-inactive-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.badge-inactive-critical {
  background: rgba(71, 85, 105, 0.12);
  color: #334155;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.badge-inactive-never {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

/* Alert Banner */
.inactive-alert-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #92400e;
  font-size: 13.5px;
}

.inactive-alert-banner i {
  font-size: 20px;
  color: #d97706;
  flex-shrink: 0;
}

/* Dashboard Inactive Alert Card */
.dashboard-inactive-alert {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fbbf24;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #92400e;
}

.dashboard-inactive-alert:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.dashboard-inactive-alert .alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(217, 119, 6, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #d97706;
  flex-shrink: 0;
}

.dashboard-inactive-alert strong {
  font-size: 14px;
  color: #78350f;
}

.dashboard-inactive-alert p {
  font-size: 12.5px;
  color: #92400e;
  margin-top: 2px;
}

.dashboard-inactive-alert > i {
  color: #d97706;
  font-size: 18px;
}

/* ===================== Suspend Modal ===================== */
.modal-header-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  padding: 16px 20px;
}

.modal-header-success {
  background: linear-gradient(135deg, #1DB446, #15803d);
  color: #fff;
  padding: 16px 20px;
}

.modal-header-danger .btn-close,
.modal-header-success .btn-close {
  filter: invert(1);
}

.suspend-user-info {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border-color);
}

.avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.suspend-prev-reason .bg-light {
  font-size: 13px;
  line-height: 1.6;
}

.suspend-reason-text {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 4px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== Bulk Action Bar ===================== */
.bulk-action-bar {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1001;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .bulk-action-bar {
    left: 0;
  }
}

/* ===================== Audit Log Badges ===================== */
.badge-audit {
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.badge-audit-login { background: rgba(29, 180, 70, 0.12); color: #15803d; }
.badge-audit-suspend { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.badge-audit-enable { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.badge-audit-edit { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.badge-audit-export { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.badge-audit-bulk { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.badge-audit-notify { background: rgba(6, 182, 212, 0.12); color: #0891b2; }

/* ===================== User Detail Modal ===================== */
.ud-header {
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ud-contact {
  padding: 10px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

.ud-stats {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.ud-stat-item {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
  border-right: 1px solid var(--border-color);
}

.ud-stat-item:last-child {
  border-right: none;
}

.ud-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-en);
  line-height: 1.2;
}

.ud-stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.clickable-name {
  cursor: pointer;
  transition: color 0.15s;
}

.clickable-name:hover {
  color: var(--primary) !important;
  text-decoration: underline;
}
