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

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-gradient: linear-gradient(
    135deg,
    #6366f1 0%,
    #8b5cf6 50%,
    #ec4899 100%
  );
  --primary-bg-gradient: linear-gradient(
    180deg,
    #0f172a 0%,
    #1e1b4b 50%,
    #312e81 100%
  );
  --blue: #3b82f6;
  --red: #ef4444;
  --green: #22c55e;
  --orange: #f97316;
  --purple: #a855f7;
  --pink: #ec4899;
  --teal: #14b8a6;
  --bg: #f8fafc;
  --bg-dark: #f1f5f9;
  --card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --sidebar-bg: #0f172a;
  --sidebar-bg-light: #1e293b;
  --sidebar-text: #cbd5e1;
  --sidebar-text-muted: #64748b;
  --sidebar-active: #6366f1;
  --sidebar-hover: rgba(99, 102, 241, 0.1);
  --sidebar-glow: rgba(99, 102, 241, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-full: 50px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --header-h: 64px;
  --sidebar-w: 270px;
  --sidebar-w-collapsed: 72px;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--primary-bg-gradient);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    8px 0 32px rgba(0, 0, 0, 0.3),
    inset 0 0 60px rgba(99, 102, 241, 0.05);
  z-index: 100;
  position: relative;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.sidebar-header .logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow:
    0 8px 24px rgba(99, 102, 241, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-header:hover .logo-icon {
  transform: scale(1.05);
}

.sidebar-header h1 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.nav-group-wrapper {
  position: relative;
}

.nav-group {
  font-size: 13px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.7);
  padding: 18px 20px 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-group:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-group::before {
  content: "";
  width: 2px;
  height: 10px;
  background: linear-gradient(
    180deg,
    var(--primary-light) 0%,
    var(--pink) 100%
  );
  border-radius: 1px;
  position: absolute;
  left: 20px;
  top: 20px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-arrow {
  font-size: 14px;
  color: rgba(148, 163, 184, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: auto;
  transform: rotate(0deg);
}

.nav-group.expanded .group-arrow {
  transform: rotate(180deg);
  color: var(--primary-light);
}

.nav-items {
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  opacity: 0;
}

.nav-items.expanded {
  max-height: 500px;
  opacity: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 12px 36px;
  margin: 2px 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--sidebar-text);
  user-select: none;
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-gradient);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transform: scaleY(0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sidebar-hover);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-item:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.nav-item:hover::before {
  opacity: 1;
  transform: scaleY(0.7);
}

.nav-item:hover::after {
  opacity: 1;
}

.nav-item.active {
  color: #ffffff;
  transform: translateX(4px);
}

.nav-item.active::before {
  opacity: 1;
  transform: scaleY(0.85);
}

.nav-item.active::after {
  opacity: 1;
  background: rgba(99, 102, 241, 0.15);
}

.nav-item.active {
  box-shadow:
    0 4px 16px rgba(99, 102, 241, 0.2),
    inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.nav-item .nav-icon {
  font-size: 19px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.nav-item:hover .nav-icon {
  transform: scale(1.15);
}

.nav-item.active .nav-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.header {
  background: var(--card);
  padding: 0 32px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0.6;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  background: rgba(107, 114, 128, 0.1);
  border-radius: 100px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.status-badge.online {
  background: rgba(82, 196, 26, 0.1);
  color: var(--green);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.dot-green {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(82, 196, 26, 0.2);
}

.dot-red {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.2);
}

.dot-gray {
  background: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
}

.header-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-info-label {
  color: var(--text-muted);
  font-size: 12px;
}

.header-info-value {
  color: var(--text);
  font-weight: 500;
  font-family: "SF Mono", "Consolas", monospace;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

.content::-webkit-scrollbar {
  width: 8px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card:hover::before {
  opacity: 0.8;
}

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

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.3);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 50%,
    var(--pink) 100%
  );
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
  transform: translateY(-3px);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--red) 0%, #ff6b6b 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #d9363e 0%, var(--red) 100%);
  box-shadow: 0 6px 16px rgba(255, 77, 79, 0.4);
}

.btn-info {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-info:hover {
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 8px;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  transition: all 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 16px;
  max-height: 200px;
  overflow-y: auto;
  font-family: "SF Mono", "Consolas", monospace;
  white-space: pre-wrap;
  word-break: break-all;
  border: 1px solid var(--border);
}

.result-box.success {
  border-color: var(--green);
  background: rgba(82, 196, 26, 0.05);
  color: var(--green);
}

.result-box.error {
  border-color: var(--red);
  background: rgba(255, 77, 79, 0.05);
  color: var(--red);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 600px;
}

.table th,
.table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.table th {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-dark) 100%);
  font-weight: 600;
  color: var(--text-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
}

.table th::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
  opacity: 0.5;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover td {
  background: rgba(99, 102, 241, 0.04);
}

.table tbody tr:hover {
  transform: translateY(-1px);
}

.mono {
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.event-list {
  max-height: 500px;
  overflow-y: auto;
}

.event-item {
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--border);
  transition: all 0.2s ease;
}

.event-item:hover {
  transform: translateX(4px);
}

.event-item.text {
  border-left-color: var(--blue);
  background: rgba(24, 144, 255, 0.05);
}

.event-item.image {
  border-left-color: var(--green);
  background: rgba(82, 196, 26, 0.05);
}

.event-item.system {
  border-left-color: var(--orange);
  background: rgba(250, 140, 22, 0.05);
}

.event-item.message {
  border-left-color: var(--blue);
  background: rgba(24, 144, 255, 0.05);
}

.event-item.group {
  border-left-color: var(--purple);
  background: rgba(152, 78, 228, 0.05);
}

.event-item.friend {
  border-left-color: var(--pink);
  background: rgba(255, 86, 132, 0.05);
}

.event-item.error {
  border-left-color: var(--red);
  background: rgba(255, 77, 79, 0.05);
}

.event-item.sync {
  border-left-color: var(--teal);
  background: rgba(0, 191, 165, 0.05);
}

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

.event-type {
  font-size: 13px;
  font-weight: 600;
}

.event-time {
  font-size: 12px;
  color: var(--text-muted);
}

.event-content {
  font-size: 13px;
  color: var(--text-light);
}

.status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  margin-bottom: 24px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.status-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.status-banner-left,
.status-banner-right {
  position: relative;
  z-index: 1;
}

.status-banner-right {
  text-align: right;
}

.status-banner-right h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.status-banner-right p {
  font-size: 14px;
  opacity: 0.9;
}

.status-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
}

.status-badge-lg .dot {
  animation: pulse 2s infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.stat-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.row-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.row-grid .card {
  flex: 1;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.info-item + .info-item {
  border-top: 1px solid var(--border);
}

.info-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.auth-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.auth-label {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.auth-value {
  font-weight: 600;
  color: var(--text);
}

.auth-badge {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 100px;
  font-weight: 600;
}

.auth-badge-active {
  background: rgba(82, 196, 26, 0.1);
  color: var(--green);
}

.auth-badge-expired {
  background: rgba(255, 77, 79, 0.1);
  color: var(--red);
}

.action-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.page-info {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 16px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 13px;
  color: var(--text-light);
}

.filter-group select,
.filter-group input {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.filter-group input {
  min-width: 150px;
}

.stats-row {
  display: flex;
  gap: 24px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-primary);
}

.stat-value.success {
  color: var(--success);
}

.stat-value.error {
  color: var(--error);
}

.stat-value.warning {
  color: var(--warning);
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
}

.log-list {
  max-height: 500px;
  overflow-y: auto;
}

.log-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

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

.log-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.log-type {
  padding: 4px 10px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  border-radius: 4px;
}

.log-status {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
}

.log-status.success {
  background: rgba(72, 187, 120, 0.15);
  color: var(--success);
}

.log-status.error {
  background: rgba(245, 101, 101, 0.15);
  color: var(--error);
}

.log-status.warning {
  background: rgba(250, 173, 20, 0.15);
  color: var(--warning);
}

.log-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-light);
}

.log-content {
  font-size: 13px;
  color: var(--text-secondary);
}

.log-row {
  margin-bottom: 4px;
}

.log-row.error {
  color: var(--error);
}

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

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.btn .spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 11px;
  color: var(--text-light);
  margin-left: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(7, 193, 96, 0.05);
}

.copy-btn.copied {
  border-color: var(--green);
  color: var(--green);
  background: rgba(82, 196, 26, 0.1);
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  pointer-events: auto;
  max-width: 400px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.toast-success {
  border-left: 4px solid var(--green);
  color: var(--green);
}

.toast-error {
  border-left: 4px solid var(--red);
  color: var(--red);
}

.toast-info {
  border-left: 4px solid var(--blue);
  color: var(--blue);
}

.toast-warning {
  border-left: 4px solid var(--orange);
  color: var(--orange);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-box {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-width: 360px;
  max-width: 480px;
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(99, 102, 241, 0.15);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
  position: relative;
}

.modal-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-body {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.message-tabs {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab-nav {
  display: flex;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  padding: 0 16px;
  overflow-x: auto;
}

.tab-nav::-webkit-scrollbar {
  height: 0;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-family: inherit;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--card);
  font-weight: 600;
}

.tab-panel {
  display: none;
  padding: 24px;
}

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

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.schedule-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.schedule-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.schedule-type:hover {
  border-color: var(--primary);
}

.schedule-type.active {
  border-color: var(--primary);
  background: rgba(7, 193, 96, 0.08);
}

.schedule-icon {
  font-size: 24px;
}

.schedule-label {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}

.msg-types {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.msg-type {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.msg-type:hover {
  border-color: var(--primary);
}

.msg-type.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.task-list {
  margin-top: 12px;
}

.task-item {
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.task-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(7, 193, 96, 0.08);
}

.task-item:last-child {
  margin-bottom: 0;
}

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

.task-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.task-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}

.status-active {
  background: rgba(82, 196, 26, 0.1);
  color: var(--green);
}

.status-paused {
  background: rgba(251, 146, 60, 0.1);
  color: var(--orange);
}

.status-completed {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-light);
}

.task-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.task-info > div {
  font-size: 13px;
  color: var(--text-light);
}

.task-group,
.task-schedule,
.task-messages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-times {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 14px;
  background: var(--card);
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-light);
}

.task-logs {
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.task-logs:hover {
  text-decoration: underline;
}

.task-actions {
  display: flex;
  gap: 8px;
}

.task-actions button {
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-actions button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(7, 193, 96, 0.05);
}

.dev-log-list {
  margin-top: 12px;
}

.dev-log-item {
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dev-log-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(7, 193, 96, 0.08);
}

.dev-log-item:last-child {
  margin-bottom: 0;
}

.dev-log-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.dev-log-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  flex: 1;
  margin-right: 12px;
}

.dev-log-type {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.type-feature {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.type-bug {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.type-optimize {
  background: rgba(82, 196, 26, 0.1);
  color: #52c41a;
}

.type-data {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.type-config {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.type-other {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

.dev-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-light);
}

.dev-log-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.6;
}

.dev-log-files {
  font-size: 12px;
  color: var(--text-light);
}

.file-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(7, 193, 96, 0.1);
  color: var(--primary);
  border-radius: 4px;
  margin-right: 6px;
  font-size: 11px;
}

.msg-list {
  max-height: 160px;
  overflow-y: auto;
}

.msg-list-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border-left: 3px solid var(--primary);
}

.msg-list-item:last-child {
  margin-bottom: 0;
}

.msg-list-content {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}

.msg-list-type {
  font-size: 11px;
  color: var(--primary);
  background: rgba(7, 193, 96, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.msg-list-remove {
  margin-left: 12px;
  color: #ef4444;
  cursor: pointer;
  font-size: 16px;
}

.msg-list-remove:hover {
  opacity: 0.7;
}

.week-select {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.week-select label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.week-select label:hover {
  border-color: var(--primary);
}

.week-select input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.week-select input[type="checkbox"]:checked + span {
  color: var(--primary);
  font-weight: 600;
}

.week-select label:has(input:checked) {
  background: rgba(7, 193, 96, 0.1);
  border-color: var(--primary);
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    z-index: 1000;
  }

  .sidebar.open {
    left: 0;
  }

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

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

  .row-grid {
    flex-direction: column;
  }

  .content {
    padding: 16px;
  }

  .header {
    padding: 0 16px;
  }

  .header-right {
    display: none;
  }

  .status-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px;
  }

  .status-banner-right {
    text-align: center;
  }

  .action-bar {
    flex-wrap: wrap;
  }

  .modal-box {
    min-width: auto;
    width: 90%;
    margin: 0 20px;
  }
}

.auto-reply-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auto-reply-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.2s ease;
}

.auto-reply-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.auto-reply-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.auto-reply-keywords {
  font-size: 15px;
  color: var(--text);
}

.auto-reply-meta {
  display: flex;
  gap: 8px;
}

.auto-reply-desc,
.auto-reply-text,
.auto-reply-images {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.auto-reply-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.auto-reply-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.reply-types {
  display: flex;
  gap: 8px;
}

.reply-type {
  padding: 8px 16px;
  border: 2px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.reply-type:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.reply-type.active {
  border-color: var(--primary);
  background: rgba(7, 193, 96, 0.1);
  color: var(--primary);
}

.image-list {
  margin-top: 8px;
}

.image-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text-light);
}

.image-item span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-success:hover {
  background: rgba(34, 197, 94, 0.15);
  transform: scale(1.05);
}

.badge-warning {
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.badge-warning:hover {
  background: rgba(249, 115, 22, 0.15);
  transform: scale(1.05);
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-info:hover {
  background: rgba(59, 130, 246, 0.15);
  transform: scale(1.05);
}

.image-upload-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-preview {
  position: relative;
  max-width: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px dashed var(--border);
}

.image-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.image-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.image-remove-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

.help-toc {
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding: 8px;
}

.help-toc-item {
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: all 0.2s ease;
  font-size: 13px;
}

.help-toc-item:hover {
  background: var(--bg);
}

.help-toc-item.active {
  background: rgba(7, 193, 96, 0.1);
  color: var(--primary);
  font-weight: 500;
}

.help-toc-category {
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 12px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.help-content {
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding: 16px;
  color: #333;
  background: #fff;
  min-height: 300px;
}

.help-content h1 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text);
}

.help-content h2 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.help-content h3 {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.help-content p {
  margin-bottom: 12px;
  line-height: 1.8;
  color: var(--text-light);
}

.help-content ul,
.help-content ol {
  margin-bottom: 12px;
  padding-left: 24px;
}

.help-content li {
  margin-bottom: 6px;
  line-height: 1.8;
}

.help-content code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  color: var(--primary);
}

.help-content pre {
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.help-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

.help-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.help-content th,
.help-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.help-content th {
  background: var(--bg);
  font-weight: 600;
}

.help-content tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.help-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  background: rgba(7, 193, 96, 0.05);
  margin-bottom: 12px;
  color: var(--text-light);
}

.api-method {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 8px;
}

.api-method.get {
  background: rgba(7, 193, 96, 0.1);
  color: var(--primary);
}

.api-method.post {
  background: rgba(24, 144, 255, 0.1);
  color: var(--blue);
}

.api-method.put {
  background: rgba(250, 173, 20, 0.1);
  color: #fbad18;
}

.api-method.delete {
  background: rgba(255, 77, 79, 0.1);
  color: #ff4d4f;
}

.group-select-container {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 4px;
}

.group-select-container::-webkit-scrollbar {
  width: 6px;
}

.group-select-container::-webkit-scrollbar-track {
  background: transparent;
}

.group-select-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.group-select-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.group-select-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  flex-direction: row;
}

.group-select-item:last-child {
  margin-bottom: 0;
}

.group-select-item:hover {
  background: var(--bg);
}

.group-select-item.selected {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.group-select-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}

.group-select-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-light);
  font-weight: 600;
}

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

.group-select-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.group-select-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-select-id {
  font-size: 11px;
  color: var(--text-muted);
  font-family: "SF Mono", "Consolas", monospace;
}

.group-select-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 100px;
  flex-shrink: 0;
  font-weight: 500;
}

.group-select-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.input-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}

.data-table .group-column {
  max-width: 200px;
}

.data-table .group-column span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table .group-column .badge {
  margin-right: 4px;
  margin-bottom: 4px;
}

.status-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.status-tag.enabled {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.status-tag.disabled {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
}

.data-table td.group-column {
  max-width: 220px;
  overflow: hidden;
}

.data-table td {
  vertical-align: middle;
}
