/* MAPED Plugin Styles - Navy Blue Theme */
#maped-app, #maped-app * { box-sizing: border-box; }
#maped-app { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }

.mp-wrap { max-width: 720px; margin: 0 auto; padding: 16px; }

/* ── INTRO ── */
.mp-intro-header {
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  color: #fff;
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 16px;
}
.mp-intro-brand { font-size: 11px; letter-spacing: 3px; opacity: .75; margin-bottom: 8px; }
.mp-intro-title { font-size: 28px; font-weight: 800; margin: 0 0 8px; color:#fff; }
.mp-intro-title sup { font-size: 14px; }
.mp-intro-sub { font-size: 13px; opacity: .9; margin: 0; line-height: 1.5; }

.mp-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.mp-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 12px;
}
.mp-feature-icon { font-size: 22px; }
.mp-feature strong { font-size: 13px; color: #1a1a2e; }

/* ── CARD ── */
.mp-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(15,23,42,.06);
}
.mp-card-info {
  background: #f0fdf4;
  border-color: #86efac;
  text-align: center;
  color: #065f46;
}

/* ── FORM ── */
.mp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.mp-full { grid-column: 1 / -1; }
.mp-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #374151; }
.mp-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.mp-input:focus {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30,58,95,.15);
}

/* ── BUTTONS ── */
.mp-btn {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.mp-btn:hover:not(:disabled) { background: #f3f4f6; }
.mp-btn:disabled { opacity: .45; cursor: not-allowed; }
.mp-btn-primary { background: linear-gradient(135deg, #1e3a5f, #0f172a); color: #fff; border: none; }
.mp-btn-primary:hover:not(:disabled) { opacity: .9; }
.mp-btn-success { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; border: none; }
.mp-btn-block { width: 100%; }
.mp-btn-link { background: none; border: none; color: #9ca3af; font-size: 12px; cursor: pointer; margin-top: 10px; }

/* ── HEADER (test) ── */
.mp-header {
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  color: #fff;
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 12px;
}
.mp-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mp-header-title { font-weight: 800; font-size: 17px; }
.mp-header-count { font-size: 12px; opacity: .85; }
.mp-progress { background: rgba(255,255,255,.2); border-radius: 6px; height: 8px; }
.mp-progress-bar { background: #fff; height: 8px; border-radius: 6px; transition: width .3s; }

/* ── TABS ── */
.mp-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 4px; }
.mp-tab {
  flex: none;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #e5e7eb;
  color: #374151;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.mp-tab:hover { background: #d1d5db; }
.mp-tab-active { background: #1e3a5f; color: #fff; }
.mp-tab-done { background: #d1fae5; color: #065f46; }

/* ── AREA TITLE ── */
.mp-area-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 4px solid;
}

/* ── QUESTION ── */
.mp-question {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.mp-question:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mp-q-text { font-size: 13px; font-weight: 600; color: #1a1a2e; margin: 0 0 10px; line-height: 1.5; }
.mp-scale { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-scale-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.mp-scale-btn:hover { border-color: #9ca3af; }
.mp-scale-sel { border-color: currentColor; }
.mp-scale-label { font-size: 11px; font-style: italic; margin-top: 6px; }

/* ── RAF SECTION ── */
.mp-raf-section {
  background: #f0f9ff;
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}
.mp-raf-title {
  font-size: 14px;
  font-weight: 800;
  color: #0ea5e9;
  margin: 0 0 4px;
  padding-left: 12px;
  border-left: 4px solid #0ea5e9;
}

/* ── NAV ── */
.mp-nav { display: flex; gap: 10px; margin-top: 16px; }
.mp-nav .mp-btn { flex: 1; }

/* ── RESULT ── */
.mp-result-header {
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  color: #fff;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 14px;
  text-align: center;
}
.mp-result-brand { font-size: 12px; font-weight: 700; opacity: .8; margin-bottom: 4px; }
.mp-result-company { font-size: 13px; opacity: .9; margin-bottom: 16px; }
.mp-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mp-kpi {
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 12px 8px;
}
.mp-kpi-label { font-size: 10px; opacity: .8; }
.mp-kpi-val { font-size: 26px; font-weight: 800; line-height: 1.1; }
.mp-kpi-sub { font-size: 9px; opacity: .8; }
.mp-profilo {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 13px;
}

/* ── SCORE BARS ── */
.mp-score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mp-score-label { width: 36px; font-weight: 700; font-size: 13px; color: #6b7280; }
.mp-score-bar-wrap { flex: 1; background: #e5e7eb; border-radius: 6px; height: 12px; }
.mp-score-bar { height: 12px; border-radius: 6px; transition: width .4s; }
.mp-score-val { width: 36px; text-align: right; font-weight: 700; font-size: 14px; }

/* ── SECTION TITLE ── */
.mp-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

/* ── COMMENTS ── */
.mp-comm {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.mp-comm-neg { background: #fef2f2; border-left: 4px solid #dc2626; }
.mp-comm-pos { background: #f0fdf4; border-left: 4px solid #16a34a; }

/* ── UTILITIES ── */
.mp-muted { color: #6b7280; }
.mp-small { font-size: 12px; }
.mp-footer { text-align: center; color: #9ca3af; font-size: 11px; margin-top: 20px; padding-bottom: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .mp-form-grid { grid-template-columns: 1fr; }
  .mp-features { grid-template-columns: 1fr; }
  .mp-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-nav { flex-direction: column; }
  .mp-tabs { flex-wrap: nowrap; }
}

/* ── PRINT ── */
@media print {
  .mp-nav, .mp-btn-link { display: none !important; }
}