/* Toggle */
.fs-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.fs-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.fs-toggle .slider {
  position: absolute;
  inset: 0;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: 0.2s;
}
.fs-toggle .slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}
.fs-toggle input:checked + .slider {
  background: var(--primary);
  border-color: var(--primary);
}
.fs-toggle input:checked + .slider::before { transform: translateX(20px); }

.fs-toggle.lg { width: 44px; height: 24px; }
.fs-toggle.lg .slider::before { width: 18px; height: 18px; }
.fs-toggle.lg input:checked + .slider::before { transform: translateX(20px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: #022a58; }
.btn-outline {
  background: white;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--muted); }
.btn-danger { color: var(--destructive); }
.btn-sm { padding: 6px 10px; font-size: 11px; border-radius: 8px; }
.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
}
.btn-icon:hover { background: var(--muted); color: var(--foreground); }

/* Cards */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}
.card-sub {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

/* Inputs */
.fs-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  color: var(--foreground);
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.fs-input:focus { border-color: var(--primary); }
.fs-input::placeholder { color: var(--muted-foreground); }

/* Labels */
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}
.badge-primary { background: rgba(3, 52, 110, 0.08); color: var(--primary); }
.badge-success { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.badge-muted { background: var(--muted); color: var(--muted-foreground); }

/* Logo */
.fs-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fs-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  flex-shrink: 0;
}

.fs-logo.icon-box svg {
  stroke: white;
}

.fs-wordmark-text .name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.2;
}
.fs-wordmark-text .tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Site avatar */
.site-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

/* Table */
.fs-table { width: 100%; text-align: left; border-collapse: collapse; }
.fs-table thead { border-bottom: 1px solid var(--border); }
.fs-table th {
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.fs-table td {
  padding: 12px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.fs-table tbody tr:last-child td { border-bottom: none; }

/* Progress bar */
.progress-bar {
  height: 6px;
  width: 100%;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.3s;
}

/* KPI card */
.kpi-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(3, 52, 110, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.kpi-value {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-top: 2px;
}

/* Nav sidebar */
.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sidebar-foreground);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: 0.15s;
  min-height: 42px;
}
.sidebar-nav .nav-section {
  padding: 6px 10px 10px;
  font-size: 11px;
}
.sidebar-nav .nav-item:hover { background: var(--muted); }
.sidebar-nav .nav-item.active {
  background: rgba(3, 52, 110, 0.08);
  color: var(--primary);
}

/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--muted-foreground);
  font-size: 13px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* SVG icons */
.fs-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
