/* assets/css/profile/analytics-privacy.css
 *
 * Styles for the dashboard "Visitor Analytics" subsection (account/
 * analyticsPrivacy.js). Matches the rest of the account panel — same
 * dark glass card, same Onest font, same accent palette.
 */

.ap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 14px;
}

.ap-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.ap-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ap-title i { color: #a78bfa; font-size: 0.85em; }

.ap-sub {
  font-size: 0.85rem;
  color: #a0a0a8;
  line-height: 1.45;
}

/* Toggle switch (matches the rest of the dashboard) */
.ap-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
}
.ap-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ap-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  transition: background-color 0.18s;
}
.ap-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.ap-switch input:checked + .ap-slider {
  background-color: #6366f1;
}
.ap-switch input:checked + .ap-slider::before {
  transform: translateX(20px);
}
.ap-switch input:disabled + .ap-slider {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Explainer block */
.ap-explain {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}
.ap-explain p { margin: 0 0 8px 0; }
.ap-explain p:last-child { margin-bottom: 0; }
.ap-explain strong { color: #fff; }
.ap-explain ul {
  margin: 4px 0 12px 18px;
  padding: 0;
  color: #cbd5e1;
}
.ap-explain li { margin-bottom: 3px; }
.ap-explain .ap-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Loading skeleton */
.ap-skeleton {
  height: 72px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 100%
  );
  background-size: 200% 100%;
  animation: ap-shimmer 1.6s infinite;
}
@keyframes ap-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
