/**
 * LinkedIn Scan — app-layout (pagina-specifiek)
 * Identity tokens + componenten: igisnext-identity.css (bron: docs/igisnext-identity.css)
 */
@import url('igisnext-identity.css');

*,
*::before,
*::after {
  box-sizing: border-box;
}

#page-shell {
  max-width: 500px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.brand-row .platform-logo {
  flex-shrink: 0;
}

.logout-link {
  margin-left: auto;
  color: var(--ce-beige);
  font-size: 14px;
  text-decoration: none;
}

.logout-link:hover {
  color: var(--ce-blue);
  text-decoration: underline;
}

.page-title {
  margin: 0;
  color: var(--ce-blue);
  font-size: 28px;
  font-weight: 600;
}

.card {
  background: transparent;
  margin-bottom: 24px;
}

.force-refresh-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ce-black);
  font-size: 14px;
}

.list-section-title {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--ce-black);
}

.list-row-title {
  min-width: 0;
  font-weight: 600;
}

.row-title-link-client {
  color: var(--ce-black);
}

.row-title-link-client:hover {
  color: var(--ce-blue);
}

.status-label-muted {
  color: var(--ce-beige);
  font-weight: 600;
}

.list-row-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
}

.action-delete-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.refresh-form {
  display: inline;
  margin: 0;
}

.notice-error {
  background: #fde8e8;
  color: #7a1f1f;
}

.notice-success {
  background: #e8fff3;
  color: #0f5132;
}

.login-box {
  max-width: 420px;
}

#full-report-preview {
  margin-top: 32px;
  padding-top: 8px;
}

#full-report-preview h2 {
  margin: 0 0 12px;
  color: var(--ce-blue);
  font-size: 20px;
}

.report-open-tracker {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 18px;
  color: var(--ce-black);
}

.report-status-open {
  color: var(--ce-green-text);
  font-weight: 600;
}

.report-status-closed {
  color: var(--ce-red);
  font-weight: 600;
}

#report-preview {
  margin-top: 32px;
  padding-top: 8px;
}

#report-preview h2 {
  margin: 0 0 12px;
  color: var(--ce-blue);
  font-size: 20px;
}

#scan-report-email {
  overflow-x: auto;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0 20px;
  font-size: 14px;
  color: var(--ce-beige);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 16px 0 24px;
}

/* ContentFlow Pulldown — zelfde patroon als CE Pulldown.tsx */
.cf-pulldown {
  position: relative;
}

.cf-pulldown-narrow {
  max-width: 420px;
  width: 100%;
}

.cf-pulldown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 30px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--ce-black);
  font-family: var(--igis-font);
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.cf-pulldown-arrow {
  flex-shrink: 0;
  transform: rotate(90deg);
  transition: transform 0.15s ease;
}

.cf-pulldown.is-open .cf-pulldown-arrow {
  transform: rotate(-90deg);
}

.cf-pulldown-options {
  margin: 0;
  padding: 0 30px 14px;
  list-style: none;
}

.cf-pulldown-option {
  display: block;
  width: 100%;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--ce-black);
  font-family: var(--igis-font);
  font-size: 14px;
  line-height: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.cf-pulldown-option.is-selected {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.textarea-field {
  height: auto;
  min-height: 88px;
  padding: 14px 30px;
  resize: vertical;
  line-height: 1.45;
}

.scan-context-form {
  display: flex;
  flex-direction: column;
  gap: var(--igis-form-gap);
  margin: 0 0 20px;
}

.scan-context-form .scan-context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.branche-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
}

/* Scan starten — grijs + denk-animatie tijdens submit */
.pill-primary.is-busy,
.pill-primary.is-busy:disabled {
  background: transparent;
  border-color: var(--ce-beige);
  color: var(--ce-beige);
  cursor: wait;
  opacity: 1;
}

.pill-thinking-dots {
  display: inline-flex;
  margin-left: 1px;
}

.pill-thinking-dots span {
  animation: pill-thinking-dot 1.2s ease-in-out infinite;
}

.pill-thinking-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.pill-thinking-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pill-thinking-dot {
  0%,
  60%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
