/**
 * Onboarding Checklist Styles
 * Sidebar widget showing user progress through onboarding tasks
 */

/* ── Checklist Container ── */
.onboarding-checklist {
  background: var(--bg-secondary, #12121a);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 16px;
  margin: 16px;
  transition: all 0.3s ease;
}

.onboarding-checklist.hidden {
  display: none;
}

.onboarding-checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  cursor: pointer;
}

.onboarding-checklist-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  display: flex;
  align-items: center;
  gap: 8px;
}

.onboarding-checklist-title-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-purple, rgba(139, 92, 246, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.onboarding-checklist-progress {
  font-size: 12px;
  color: var(--text-tertiary, rgba(255,255,255,0.4));
}

/* ── Progress Bar ── */
.onboarding-progress-bar {
  height: 4px;
  background: var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.onboarding-progress-bar-fill {
  height: 100%;
  background: var(--gradient-1, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ── Checklist Items ── */
.onboarding-checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onboarding-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--glass-bg, rgba(255,255,255,0.02));
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.onboarding-checklist-item:hover {
  background: var(--glass-bg, rgba(255,255,255,0.05));
  border-color: var(--glass-border, rgba(255,255,255,0.08));
}

.onboarding-checklist-item.completed {
  opacity: 0.6;
}

.onboarding-checklist-item.active {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

/* ── Checkbox ── */
.onboarding-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--glass-border, rgba(255,255,255,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.onboarding-checklist-item.completed .onboarding-checkbox {
  background: var(--accent-green, #10b981);
  border-color: var(--accent-green, #10b981);
}

.onboarding-checkbox-icon {
  color: #ffffff;
  font-size: 11px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.onboarding-checklist-item.completed .onboarding-checkbox-icon {
  opacity: 1;
  transform: scale(1);
}

/* ── Item Text ── */
.onboarding-checklist-item-text {
  flex: 1;
}

.onboarding-checklist-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary, #ffffff);
  margin-bottom: 2px;
}

.onboarding-checklist-item.completed .onboarding-checklist-item-title {
  color: var(--text-secondary, rgba(255,255,255,0.6));
  text-decoration: line-through;
}

.onboarding-checklist-item-desc {
  font-size: 11px;
  color: var(--text-tertiary, rgba(255,255,255,0.4));
}

.onboarding-checklist-item.completed .onboarding-checklist-item-desc {
  display: none;
}

/* ── Item Action Icon ── */
.onboarding-checklist-item-action {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.onboarding-checklist-item:hover .onboarding-checklist-item-action {
  opacity: 1;
}

.onboarding-checklist-item.completed .onboarding-checklist-item-action {
  display: none;
}

/* ── Completion State ── */
.onboarding-checklist-complete {
  text-align: center;
  padding: 20px;
}

.onboarding-checklist-complete-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-green, rgba(16, 185, 129, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
}

.onboarding-checklist-complete-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  margin-bottom: 4px;
}

.onboarding-checklist-complete-text {
  font-size: 13px;
  color: var(--text-secondary, rgba(255,255,255,0.6));
}

/* ── Collapse Toggle ── */
.onboarding-checklist-toggle {
  background: transparent;
  border: none;
  color: var(--text-tertiary, rgba(255,255,255,0.4));
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.onboarding-checklist-toggle:hover {
  color: var(--text-secondary, rgba(255,255,255,0.6));
}

.onboarding-checklist-toggle-icon {
  transition: transform 0.2s ease;
}

.onboarding-checklist.collapsed .onboarding-checklist-toggle-icon {
  transform: rotate(-90deg);
}

.onboarding-checklist.collapsed .onboarding-checklist-items,
.onboarding-checklist.collapsed .onboarding-progress-bar {
  display: none;
}

/* ── Mini Version (collapsed in sidebar) ── */
.onboarding-checklist-mini {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--glass-bg, rgba(255,255,255,0.03));
  border-radius: 8px;
  margin: 8px 16px;
  cursor: pointer;
}

.onboarding-checklist-mini-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-purple, rgba(139, 92, 246, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--accent-purple, #8b5cf6);
}

.onboarding-checklist-mini.completed .onboarding-checklist-mini-icon {
  background: var(--accent-green, rgba(16, 185, 129, 0.2));
  color: var(--accent-green, #10b981);
}

.onboarding-checklist-mini-text {
  font-size: 12px;
  color: var(--text-secondary, rgba(255,255,255,0.6));
}

.onboarding-checklist-mini-progress {
  font-size: 11px;
  color: var(--text-tertiary, rgba(255,255,255,0.4));
  margin-left: auto;
}

@media (max-width: 900px) {
  .onboarding-checklist-mini {
    display: flex;
  }

  .onboarding-checklist {
    position: fixed;
    top: 0;
    right: -360px;
    width: 360px;
    height: 100%;
    border-radius: 0;
    margin: 0;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .onboarding-checklist.active {
    right: 0;
  }
}