/* Activity Settings Panel - themed design */
.activity-settings-panel {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  padding: 20px;
}

.activity-settings-panel.open {
  display: flex;
}

.activity-settings-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 400px;
  max-height: 85vh;
  background: var(--panel, rgba(24, 24, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  animation: modalSlide var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.activity-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.10));
  background: var(--panel, rgba(24, 24, 27, 1));
  flex-shrink: 0;
  border-radius: 0;
}

.activity-settings-title {
  font-weight: var(--font-bold);
  font-size: var(--text-xl);
  letter-spacing: 0.3px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.activity-settings-close {
  width: 32px;
  height: 32px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--muted, rgba(239, 239, 241, 0.6));
  cursor: pointer;
  font-size: 22px;
  transition: all var(--transition-smooth);
  line-height: 1;
  padding: 0;
}

.activity-settings-close:hover {
  background: var(--panel2, rgba(255, 255, 255, 0.06));
  color: var(--text, rgba(239, 239, 241, 0.92));
  transform: rotate(90deg);
}

.activity-settings-body {
  padding: var(--space-5);
  background: var(--panel, rgba(24, 24, 27, 1));
  overflow-y: auto;
  flex: 1;
  border-radius: 0;
}

.activity-settings-body::-webkit-scrollbar {
  width: 8px;
}

.activity-settings-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0;
}

.activity-settings-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.settings-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.settings-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-hint {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.settings-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 0;
  transition: background 0.15s;
}

.toggle-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.toggle-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  margin: 0;
}

.toggle-label {
  font-size: 12px;
  color: #fff;
  user-select: none;
  line-height: 1;
}

.settings-refresh {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.refresh-interval {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 22px;
}

.refresh-interval label {
  font-size: 11px;
  color: var(--muted);
}

.refresh-interval select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 4px 8px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  outline: none;
}

.refresh-interval select:focus {
  border-color: rgba(100, 65, 165, 0.6);
}

.refresh-interval select option {
  background: rgba(24, 24, 27, 1);
  color: #fff;
}

.max-activities-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 22px;
}

.max-activities-input label {
  font-size: 11px;
  color: var(--muted);
}

.max-activities-input input[type="number"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 4px 8px;
  color: #fff;
  font-size: 11px;
  width: 70px;
  outline: none;
}

.max-activities-input input[type="number"]:focus {
  border-color: rgba(100, 65, 165, 0.6);
}
