/* CoachPascariu - Proiectul de Viata - stiluri scoped sub .cpv-app, ca sa nu
 * intre in conflict cu tema WordPress. */

.cpv-app {
  --cpv-navy: #1d4160;
  --cpv-rust: #b5482a;
  --cpv-muted: #6b7a89;
  --cpv-border: #d7dee5;
  --cpv-bg-soft: #f7f9fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #24303b;
  max-width: 1100px;
  margin: 0 auto;
}

.cpv-app * { box-sizing: border-box; }

.cpv-section {
  border: 1px solid var(--cpv-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
}

.cpv-section-title {
  font-weight: 700;
  font-size: 1.05em;
  color: var(--cpv-navy);
  margin-bottom: 10px;
}

.cpv-label {
  font-weight: 600;
  font-size: 0.85em;
  margin-bottom: 4px;
}

.cpv-input, .cpv-textarea {
  border: 1px solid var(--cpv-border);
  border-radius: 5px;
  padding: 8px 10px;
  font: inherit;
  width: 100%;
  background: #fff;
}

.cpv-textarea { resize: vertical; }

.cpv-global-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.cpv-btn-global { font-weight: 600; }

.cpv-progress {
  font-weight: 600;
  color: var(--cpv-rust);
  background: var(--cpv-bg-soft);
  border: 1px solid var(--cpv-border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.9em;
}

.cpv-nav-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
@media (max-width: 780px) {
  .cpv-nav-row { flex-direction: column; }
}

.cpv-program-box {
  border: 1px solid var(--cpv-border);
  border-radius: 8px;
  padding: 12px;
  background: var(--cpv-bg-soft);
  min-width: 240px;
  flex: 0 0 240px;
}
@media (max-width: 780px) {
  .cpv-program-box { flex: 1 1 auto; width: 100%; }
}

.cpv-program-title {
  font-weight: 700;
  color: var(--cpv-navy);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.cpv-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--cpv-border);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.92em;
}
.cpv-nav-btn:hover { background: #eef3f7; }
.cpv-nav-btn.cpv-nav-sub { font-size: 0.88em; color: #3c4c5a; }

.cpv-content { flex: 1 1 auto; min-width: 0; }

.cpv-placeholder {
  color: var(--cpv-muted);
  font-style: italic;
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--cpv-border);
  border-radius: 8px;
}

.cpv-screen { display: none; }

.cpv-scroll {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.cpv-pattern-row, .cpv-checklist-section {
  border: 1px solid var(--cpv-border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.cpv-pattern-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.cpv-pattern-def {
  color: var(--cpv-muted);
  font-style: italic;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.cpv-checkbox-label, .cpv-radio-label {
  display: block;
  padding: 3px 0;
  cursor: pointer;
}

.cpv-checkbox-label input, .cpv-radio-label input { margin-right: 6px; }

.cpv-field-label { font-weight: 600; font-size: 0.9em; margin-bottom: 4px; }

.cpv-choice-field, .cpv-text-field, .cpv-rosenberg-row {
  border-bottom: 1px solid var(--cpv-border);
  padding: 10px 4px;
}

.cpv-choice-options { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cpv-radio-compact { display: inline-block; }

.cpv-legend {
  color: var(--cpv-muted);
  font-style: italic;
  font-size: 0.88em;
  margin-bottom: 10px;
}

.cpv-sep { border: none; border-top: 1px solid var(--cpv-border); margin: 14px 0; }

.cpv-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cpv-btn {
  padding: 9px 16px;
  border: 1px solid var(--cpv-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.92em;
}
.cpv-btn:hover { background: #eef3f7; }
.cpv-btn-primary {
  background: var(--cpv-navy);
  border-color: var(--cpv-navy);
  color: #fff;
}
.cpv-btn-primary:hover { background: #163349; }
.cpv-btn-right { margin-left: auto; }
.cpv-btn-right:first-of-type { margin-left: auto; }

.cpv-results-section { background: var(--cpv-bg-soft); }

.cpv-results {
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.92em;
  white-space: pre-wrap;
}

.cpv-line { padding: 1px 0; }
.cpv-tag-hit { color: var(--cpv-rust); font-weight: 700; }
.cpv-tag-title { color: var(--cpv-navy); font-weight: 700; margin-top: 6px; }
.cpv-tag-muted { color: var(--cpv-muted); font-style: italic; }
.cpv-spacer { height: 10px; }

.cpv-noscript-warning {
  color: #b5482a;
  font-weight: 600;
  padding: 12px;
  border: 1px solid #f0c0b0;
  background: #fdf2ee;
  border-radius: 6px;
}

.cpv-disclaimer-footer {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid #f0c0b0;
  background: #fdf2ee;
  border-radius: 6px;
  color: var(--cpv-rust);
  font-weight: 600;
  font-size: 0.85em;
  text-align: center;
}
