/**
 * TaskBuilder - guidance for new users.
 *  .wppm-gs        Dashboard "Getting Started with Taskbuilder" panel (wppm_dashboard_get_started.php)
 *  .wppm-gs-empty  "You need access to a project" instead of the Add New Task form (wppm_add_task_no_project.php)
 *  .wppm-perm-help "Who can create projects?" note in Settings > Co-workers Permission
 */
.wppm-gs,
.wppm-gs-empty,
.wppm-perm-help {
  --gs-primary: #4f46e5;
  --gs-primary-dark: #4338ca;
  --gs-primary-light: #eef2ff;
  --gs-ink: #111827;
  --gs-muted: #6b7280;
  --gs-border: #e5e7eb;
  --gs-soft: #f8fafc;
  --gs-done: #16a34a;
  --gs-done-light: #dcfce7;
  box-sizing: border-box;
  color: var(--gs-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wppm-gs *,
.wppm-gs-empty * {
  box-sizing: border-box;
}
.wppm-gs .dashicons,
.wppm-gs-empty .dashicons,
.wppm-perm-help .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
}

/* Buttons */
.wppm-gs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--gs-border);
  border-radius: 9px;
  background: #fff;
  color: #374151 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.wppm-gs-btn:hover {
  border-color: var(--gs-primary);
  background: var(--gs-primary-light);
  color: var(--gs-primary) !important;
}
.wppm-gs-btn.is-primary {
  border-color: var(--gs-primary);
  background: var(--gs-primary);
  color: #fff !important;
}
.wppm-gs-btn.is-primary:hover {
  border-color: var(--gs-primary-dark);
  background: var(--gs-primary-dark);
  color: #fff !important;
}
.wppm-gs-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79,70,229,.30);
}

/* ===================== Dashboard panel ===================== */
.wppm-gs {
  margin: 0 0 20px;
  padding: 20px 22px 16px;
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 55%);
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -16px rgba(79,70,229,.35);
}
.wppm-gs-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-right: 36px;
}
.wppm-gs .wppm-gs-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: 21px;
  box-shadow: 0 6px 14px -6px rgba(79,70,229,.55);
}
.wppm-gs-heading {
  flex: 1 1 260px;
  min-width: 0;
}
.wppm-gs-heading h2 {
  margin: 0;
  padding: 0;
  color: var(--gs-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.wppm-gs-heading p {
  margin: 3px 0 0;
  color: var(--gs-muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.wppm-gs-heading .wppm-gs-actions {
  margin-top: 12px;
}
.wppm-gs-progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 170px;
}
.wppm-gs-progress-text {
  color: #374151;
  font-size: 12.5px;
  font-weight: 600;
}
.wppm-gs-bar {
  display: block;
  width: 170px;
  height: 6px;
  border-radius: 999px;
  background: #e0e7ff;
  overflow: hidden;
}
.wppm-gs-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #4f46e5);
  transition: width .3s ease;
}
.wppm-gs .wppm-gs-close {
  position: absolute;
  top: -4px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}
.wppm-gs .wppm-gs-close:hover {
  background: #eef0f3;
  color: #374151;
}
.wppm-gs .wppm-gs-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79,70,229,.30);
}

/* Steps */
.wppm-gs-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.wppm-gs-step {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--gs-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wppm-gs-step.is-next {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px var(--gs-primary-light);
}
.wppm-gs-step.is-done {
  border-color: #bbf7d0;
  background: #f7fef9;
}
.wppm-gs-step.is-locked {
  background: var(--gs-soft);
}
.wppm-gs-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gs-primary-light);
  color: var(--gs-primary);
  font-size: 13px;
  font-weight: 700;
}
.wppm-gs-step.is-done .wppm-gs-check {
  background: var(--gs-done);
  color: #fff;
}
.wppm-gs-step.is-locked .wppm-gs-check {
  background: #eef0f3;
  color: #9ca3af;
}
.wppm-gs-step-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wppm-gs-step-label {
  color: var(--gs-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.wppm-gs-step-title {
  margin: 1px 0 4px;
  color: var(--gs-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.wppm-gs-step.is-done .wppm-gs-step-title {
  color: #15803d;
}
.wppm-gs-step-text {
  color: var(--gs-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.wppm-gs-step .wppm-gs-actions {
  margin-top: 10px;
}
.wppm-gs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wppm-gs-step .wppm-gs-btn {
  height: 30px;
  padding: 0 11px;
  font-size: 12.5px;
}
.wppm-gs-locked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
}
.wppm-gs-locked .dashicons {
  width: 13px !important;
  height: 13px !important;
  font-size: 13px !important;
}

/* Helpful links */
.wppm-gs-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef0f6;
  font-size: 12.5px;
}
.wppm-gs-links .dashicons {
  color: #9ca3af;
}
.wppm-gs-links a {
  color: var(--gs-primary);
  font-weight: 600;
  text-decoration: none;
}
.wppm-gs-links a:hover {
  text-decoration: underline;
}

/* Single-message panel (users who cannot create projects) */
.wppm-gs.is-message {
  padding-bottom: 18px;
}
.wppm-gs.is-message .wppm-gs-links {
  margin-top: 16px;
}

/* ===================== Add New Task: no project ===================== */
.wppm-gs-empty {
  max-width: 560px;
  margin: 40px auto;
  padding: 34px 28px 28px;
  border: 1px solid var(--gs-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -16px rgba(16,24,40,.18);
  text-align: center;
}
.wppm-gs-empty .wppm-gs-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--gs-primary-light);
  box-shadow: 0 0 0 8px #f5f7ff;
  color: var(--gs-primary);
  font-size: 26px;
}
.wppm-gs-empty .wppm-gs-empty-title {
  margin: 0 0 8px;
  padding: 0;
  color: var(--gs-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.wppm-gs-empty .wppm-gs-empty-text {
  max-width: 440px;
  margin: 0 auto;
  color: var(--gs-muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.wppm-gs-empty .wppm-gs-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.wppm-gs-empty .wppm-gs-empty-actions:empty {
  display: none;
}

/* ===================== Settings > Co-workers Permission note ===================== */
.wppm-perm-help {
  display: flex;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  background: #f5f7ff;
}
.wppm-perm-help .wppm-perm-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff;
  color: var(--gs-primary);
  font-size: 17px;
}
.wppm-perm-help-body {
  min-width: 0;
  font-size: 13px;
  line-height: 1.55;
}
.wppm-perm-help-body strong {
  display: block;
  margin-bottom: 2px;
  color: var(--gs-ink);
  font-size: 13.5px;
}
.wppm-perm-help-body p {
  margin: 0 0 6px;
  color: #4b5563;
}
.wppm-perm-help-body a {
  color: var(--gs-primary);
  font-weight: 600;
  text-decoration: none;
}
.wppm-perm-help-body a:hover {
  text-decoration: underline;
}

/* ===================== Small screens ===================== */
@media (max-width: 1100px) {
  .wppm-gs-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .wppm-gs {
    padding: 16px 14px 14px;
  }
  .wppm-gs-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .wppm-gs-progress {
    align-items: flex-start;
    width: 100%;
  }
  .wppm-gs-bar {
    width: 100%;
  }
  .wppm-gs-empty {
    margin: 20px 0;
    padding: 26px 16px 20px;
  }
}
