/*
 * Showcase chrome — index page, example pages and the variant bar.
 * Prototype-specific styling belongs in the prototype itself or in mijn-shell.css.
 */
@import url('/vendor/roboto/400.css');
@import url('/vendor/roboto/500.css');
@import url('/vendor/roboto/700.css');

:root {
  --sc-primary: #1565c0;
  --sc-text: #2c2c2c;
  --sc-text-medium: #616161;
  --sc-border: #e0e0e0;
  --sc-bg: #fafafa;
  --sc-bar-bg: #263238;
  --sc-bar-height: 48px;
}

body.sc {
  margin: 0;
  font-family: 'Roboto', system-ui, sans-serif;
  color: var(--sc-text);
  background: var(--sc-bg);
  line-height: 1.5;
}

.sc-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.sc-page h1 {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 500;
}

.sc-page h2 {
  margin: 32px 0 8px;
  font-size: 1.25rem;
  font-weight: 500;
}

.sc-lead {
  margin: 0 0 24px;
  color: var(--sc-text-medium);
}

.sc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-brand img {
  width: 40px;
  height: 40px;
}

.sc-links {
  margin: 0;
  padding-left: 20px;
}

.sc-links li {
  margin: 4px 0;
}

.sc-links a {
  color: var(--sc-primary);
}

.sc-links small {
  color: var(--sc-text-medium);
}

.sc-back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--sc-primary);
  text-decoration: none;
}

.sc-card {
  margin: 16px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 8px;
}

.sc-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 500;
}

.sc-card p {
  margin: 0 0 12px;
  color: var(--sc-text-medium);
  font-size: 0.875rem;
}

.sc-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.sc-grid .sc-card {
  margin: 0;
}

.sc-chart {
  position: relative;
  height: 280px;
}

.sc-note {
  padding: 8px 12px;
  border-left: 3px solid var(--sc-primary);
  background: rgba(21, 101, 192, 0.06);
  font-size: 0.875rem;
}

code {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.85em;
}

/* ---------- Variant bar ---------- */
.sc-variant-bar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--sc-bar-height);
  padding: 0 12px;
  background: var(--sc-bar-bg);
  color: #eceff1;
  font: 400 0.8125rem/1 'Roboto', system-ui, sans-serif;
  overflow-x: auto;
  white-space: nowrap;
}

.sc-variant-bar a {
  color: #90caf9;
  text-decoration: none;
}

.sc-variant-bar__title {
  font-weight: 500;
}

.sc-variant-bar__options {
  display: flex;
  gap: 4px;
}

.sc-variant-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.sc-variant-bar button.is-active {
  background: #eceff1;
  color: var(--sc-bar-bg);
  border-color: #eceff1;
}

.sc-variant-bar kbd {
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  font: 500 0.6875rem/1.4 ui-monospace, monospace;
}

.sc-variant-bar button.is-active kbd {
  background: rgba(0, 0, 0, 0.1);
}

.sc-variant-bar__description {
  flex: 1;
  color: #b0bec5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-variant-bar-hidden .sc-variant-bar {
  display: none;
}

/* Prototypes that fill the viewport shrink to make room for the bar. */
.sc-has-variants .mijn-app {
  height: calc(100vh - var(--sc-bar-height));
}

.sc-has-variants.sc-variant-bar-hidden .mijn-app {
  height: 100vh;
}

/* ---------- "Welke data heeft dit scherm nodig?" (data-needs.js) ---------- */
.dn {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #d81b60;
  border-radius: 6px;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.dn summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
}

.dn summary i {
  color: #d81b60;
}

.dn__count {
  margin-left: auto;
  font-weight: 400;
  color: #757575;
}

.dn__intro {
  margin: 0;
  padding: 0 14px 6px;
  color: #616161;
}

.dn__list {
  margin: 0;
  padding: 0 14px 12px;
  list-style: none;
  display: grid;
  gap: 10px;
}

.dn__list li {
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
}

.dn__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dn__head a {
  margin-left: auto;
  color: #1565c0;
  text-decoration: none;
}

.dn__what {
  margin: 4px 0;
  color: #424242;
}

.dn__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dn__fields code {
  background: #fce4ec;
  color: #880e4f;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dn__meta {
  margin-top: 4px;
  color: #9e9e9e;
  font-size: 0.75rem;
}

/* ---------- Phone mock-ups ---------- */
[hidden] {
  display: none !important;
}

.sc-browser {
  flex: 1 1 900px;
  max-width: 1280px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.sc-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: #e0e0e0;
  font-size: 0.75rem;
  color: #616161;
}

.sc-browser__bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sc-browser__url {
  flex: 1;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #fff;
}

.sc-stage .sc-browser .mijn-app {
  height: 740px;
}
body.sc-device-stage {
  margin: 0;
  background: #cfd8dc;
  font-family: 'Roboto', system-ui, sans-serif;
}

.sc-stage {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 24px;
}

.sc-phone {
  flex: 0 0 auto;
  width: 380px;
  height: 780px;
  border: 12px solid #1c1c1c;
  border-radius: 40px;
  background: #f5f5f5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.sc-phone__status {
  display: flex;
  justify-content: space-between;
  padding: 8px 20px;
  font-size: 0.75rem;
  background: #fff;
}

.sc-phone__body {
  flex: 1;
  overflow-y: auto;
}

.sc-phone__nav {
  display: flex;
  flex: 0 0 60px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}

.sc-phone__nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #757575;
  font-size: 0.6875rem;
  text-decoration: none;
}

.sc-phone__nav a.is-active {
  color: #1565c0;
}

.sc-phone__nav i {
  font-size: 1.1rem;
}

.sc-app-head {
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #1565c0, #42a5f5);
  color: #fff;
}

.sc-app-head h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.sc-app-head p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.sc-app-card {
  margin: 10px 12px;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.sc-app-card h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.sc-big-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sc-big-buttons button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 92px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font: 500 0.9rem 'Roboto', sans-serif;
  cursor: pointer;
}

.sc-big-buttons button i {
  font-size: 1.6rem;
}

.sc-big-buttons button:active {
  transform: scale(0.97);
}

.sc-side {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-side .sc-card {
  margin: 0;
}

.sc-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(38, 50, 56, 0.95);
  color: #fff;
  font-size: 0.875rem;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.sc-toast.is-visible {
  opacity: 1;
}
