/* NexaScheduler product UI mockup */

.nsc-showcase {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, var(--off-white) 0%, #eef8f6 55%, var(--white) 100%);
  overflow: hidden;
}

.nsc-showcase__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.nsc-showcase__header h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
}

.nsc-showcase__header p {
  margin: 0;
  color: var(--gray-500);
}

.nsc-live-app {
  max-width: 58rem;
  margin: 0 auto;
}

.nsc-live-app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.nsc-live-app__hint {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.nsc-live-app__frame {
  display: block;
  width: 100%;
  height: min(75vh, 52rem);
  min-height: 28rem;
  border: none;
  border-radius: 0;
  background: #f4f6f8;
  box-shadow: none;
}

.nsc-live-app--monitor .nsc-live-app__frame--monitor {
  height: 40.5rem;
  min-height: 40.5rem;
  max-height: 40.5rem;
  overflow: hidden;
}

@media (max-width: 48rem) {
  .nsc-live-app--monitor .nsc-live-app__frame--monitor {
    height: 44rem;
    min-height: 44rem;
    max-height: 44rem;
  }
}

.nsc-ui-frame--embed {
  overflow: hidden;
}

.nsc-ui-frame--embed .nsc-ui-frame__chrome {
  justify-content: center;
}

.nsc-ui-frame--embed .nsc-ui-url {
  flex: 1;
  max-width: 100%;
}

.nsc-ui-frame--embed .nsc-live-app__frame {
  border-top: 1px solid var(--gray-200);
}

.nsc-ui-frame {
  max-width: 58rem;
  margin: 0 auto;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(11 31 58 / 6%);
  overflow: hidden;
}

.nsc-ui-frame__chrome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border-bottom: 1px solid var(--gray-200);
}

.nsc-ui-dots {
  display: none;
}

.nsc-ui-url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.nsc-app {
  display: grid;
  grid-template-columns: 12rem 1fr;
  min-height: 24rem;
  font-size: 0.8125rem;
}

.nsc-sidebar {
  background: var(--navy);
  color: rgb(255 255 255 / 88%);
  padding: 1rem 0.75rem;
}

.nsc-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.nsc-sidebar__brand img {
  width: 2rem;
  height: 2rem;
}

.nsc-sidebar__brand strong {
  display: block;
  color: var(--white);
  font-size: 0.8125rem;
}

.nsc-sidebar__brand span {
  font-size: 0.6875rem;
  color: rgb(255 255 255 / 55%);
}

.nsc-sidebar nav button {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0.5rem 0.55rem;
  border-radius: 0.45rem;
  cursor: pointer;
}

.nsc-sidebar nav button:hover {
  background: rgb(255 255 255 / 8%);
}

.nsc-sidebar nav button.is-active {
  background: rgb(13 148 136 / 35%);
  color: var(--white);
  font-weight: 600;
}

.nsc-main {
  background: #f4f7fb;
  padding: 1rem;
}

.nsc-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nsc-topbar h3 {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--navy);
}

.nsc-topbar p {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.nsc-stat-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nsc-stat-pill {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.nsc-stat-pill--warn {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.nsc-panel {
  display: none;
  animation: nscFade 0.3s ease;
}

.nsc-panel.is-active {
  display: block;
}

@keyframes nscFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nsc-week-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.nsc-cal-day {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.65rem;
  padding: 0.55rem;
  min-height: 5.5rem;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.nsc-cal-day:hover,
.nsc-cal-day.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgb(13 148 136 / 20%);
}

.nsc-cal-day strong {
  display: block;
  font-size: 0.75rem;
  color: var(--navy);
}

.nsc-cal-day span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  color: var(--gray-500);
}

.nsc-visit-chip {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.625rem;
  font-weight: 600;
}

.nsc-visit-chip--due { background: #dbeafe; color: #1e40af; }
.nsc-visit-chip--risk { background: #fef3c7; color: #92400e; }
.nsc-visit-chip--ok { background: #dcfce7; color: #166534; }

.nsc-filters {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.nsc-filter {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.nsc-filter.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.nsc-window-list {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
}

.nsc-window-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
}

.nsc-window-row:last-child {
  border-bottom: none;
}

.nsc-window-row:hover,
.nsc-window-row.is-selected {
  background: #f0fdfa;
}

.nsc-window-row strong {
  color: var(--navy);
}

.nsc-window-row span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.nsc-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.nsc-badge--due { background: #dbeafe; color: #1e40af; }
.nsc-badge--risk { background: #fef3c7; color: #92400e; }
.nsc-badge--late { background: #fee2e2; color: #991b1b; }
.nsc-badge--ok { background: #dcfce7; color: #166534; }

.nsc-subj-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.nsc-subj-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
}

.nsc-subj-search {
  font: inherit;
  font-size: 0.75rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.45rem;
  background: var(--white);
  min-width: 10rem;
  color: var(--gray-500);
}

.nsc-subject-table {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.65rem;
  overflow: hidden;
}

.nsc-subject-head,
.nsc-subject-row {
  display: grid;
  grid-template-columns: 3.5rem 4.5rem 1fr 5.5rem auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  text-align: left;
}

.nsc-subject-head {
  background: #f8fafc;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
}

.nsc-subject-row {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: background 0.12s;
}

.nsc-subject-row:last-child {
  border-bottom: none;
}

.nsc-subject-row:hover,
.nsc-subject-row.is-selected {
  background: #f0fdfa;
}

.nsc-subject-row strong {
  color: var(--navy);
  font-size: 0.8125rem;
}

.nsc-subject-row span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.nsc-mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6875rem !important;
}

.nsc-subj-note {
  margin: 0.75rem 0 0;
  font-size: 0.6875rem;
  color: var(--gray-500);
  line-height: 1.45;
}

.nsc-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nsc-alert {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--teal);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
}

.nsc-alert--warn {
  border-left-color: #f59e0b;
}

.nsc-alert strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--navy);
}

.nsc-alert p {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.nsc-detail {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: #ecfdf5;
  border: 1px solid rgb(13 148 136 / 25%);
  border-radius: 0.65rem;
  display: none;
}

.nsc-detail.is-visible {
  display: block;
}

.nsc-detail strong {
  display: block;
  color: var(--navy);
  font-size: 0.8125rem;
}

.nsc-detail p {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--gray-700);
}

.nsc-ui-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.nsc-ui-tab {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.nsc-ui-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ---------- Reports preview ---------- */
.nsc-report-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.nsc-report-view {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.nsc-report-view.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.nsc-report-pane {
  display: none;
  animation: nscFade 0.25s ease;
}

.nsc-report-pane.is-active {
  display: block;
}

.nsc-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.nsc-kpi {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.55rem;
  padding: 0.55rem 0.65rem;
}

.nsc-kpi span {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  font-weight: 600;
}

.nsc-kpi strong {
  display: block;
  font-size: 1.125rem;
  color: var(--navy);
  margin-top: 0.15rem;
}

.nsc-insight {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--teal);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
}

.nsc-insight--warn {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.nsc-insight--ok {
  border-left-color: #10b981;
  background: #ecfdf5;
}

.nsc-insight strong {
  display: block;
  font-size: 0.75rem;
  color: var(--navy);
}

.nsc-insight p {
  margin: 0.2rem 0 0;
  font-size: 0.6875rem;
  color: var(--gray-500);
}

.nsc-chart-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.65rem;
}

.nsc-chart-card h4 {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--navy);
}

.nsc-chart-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr 2.25rem;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  padding: 0.35rem 0.25rem;
  border-radius: 0.4rem;
  cursor: pointer;
}

.nsc-chart-row:hover,
.nsc-chart-row.is-selected {
  background: #f0fdfa;
}

.nsc-chart-lbl {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-600);
}

.nsc-chart-track {
  height: 0.85rem;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}

.nsc-chart-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.nsc-fill-stall { background: linear-gradient(90deg, #e8b35c, #b4690e); }
.nsc-fill-done { background: linear-gradient(90deg, #3cb878, #15803d); }
.nsc-fill-rate { background: linear-gradient(90deg, #7cc4a8, #0f7b56); }
.nsc-fill-load { background: linear-gradient(90deg, #5ecfc4, #0d6e6e); }
.nsc-fill-late { background: linear-gradient(90deg, #e88a5f, #c2410c); }

.nsc-chart-val {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}

.nsc-status-bar {
  display: flex;
  height: 1.25rem;
  border-radius: 0.45rem;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  margin-bottom: 0.45rem;
}

.nsc-status-bar span {
  min-width: 2px;
}

.nsc-sb-done { background: #15803d; }
.nsc-sb-due { background: #1d63d8; }
.nsc-sb-risk { background: #b4690e; }
.nsc-sb-late { background: #c2410c; }
.nsc-sb-dev { background: #c41f2e; }

.nsc-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.625rem;
  color: var(--gray-500);
}

.nsc-status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nsc-status-legend i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  display: inline-block;
}

@media (max-width: 720px) {
  .nsc-app {
    grid-template-columns: 1fr;
  }

  .nsc-sidebar {
    display: block;
    padding: 0.65rem 0.5rem;
  }

  .nsc-sidebar__brand {
    display: none;
  }

  .nsc-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .nsc-sidebar nav button {
    width: auto;
    font-size: 0.6875rem;
    padding: 0.35rem 0.5rem;
  }

  .nsc-week-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nsc-kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
