/* KidTrack — Interactive Demo styles. The real Flutter/Owner-Portal app,
   compiled for the web on fictional demo data, shown in a role picker plus
   one framed viewport whose iframe src swaps per role. */

.demo-disclaimer {
  display: inline-block; margin-top: var(--space-3); font-size: 13px; font-weight: 700;
  color: #96731a; background: rgba(255,200,87,.18); padding: 6px 16px; border-radius: var(--radius-pill);
}

.role-label { text-align: center; font-weight: 700; color: var(--navy); margin-bottom: var(--space-3); }
.role-tabs { display: flex; justify-content: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-7); }
.role-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border: 2px solid var(--border); background: #fff; border-radius: var(--radius-md);
  padding: 12px 20px; min-width: 140px; transition: var(--transition-fast);
}
.role-tab strong { font-size: 14px; color: var(--navy); }
.role-tab span { font-size: 11px; color: var(--ink-soft); }
.role-tab.active { border-color: var(--blue); background: rgba(25,48,84,.06); box-shadow: var(--shadow-sm); }
.role-tab[disabled] { opacity: .5; cursor: not-allowed; }

@media (max-width: 480px) {
  .role-tab { min-width: 120px; padding: 10px 14px; }
}

/* Real App demo panel */
.real-demo-frame {
  max-width: 420px; margin: 0 auto var(--space-4); border: 10px solid var(--navy); border-radius: 28px;
  overflow: hidden; box-shadow: var(--shadow-lg); background: #fff;
}
#realDemoFrame { display: block; width: 100%; height: 760px; border: 0; }
#demoRealWrap { text-align: center; }
#demoRealWrap #realDemoOpenNewTab { display: inline-block; margin-top: var(--space-2); }

/* Owner is a real desktop web dashboard, not a phone screen — give it a
   wider, shorter frame instead of the phone chrome used for the other three
   roles. */
.real-demo-frame.is-browser { max-width: 100%; border-width: 6px; border-radius: 14px; }
.real-demo-frame.is-browser #realDemoFrame { height: 640px; }

@media (max-width: 480px) {
  #realDemoFrame { height: 600px; }
}
