/* ========================================================================
   People Connect v2 — Theme
   Design system "Human-Centric Professionalism" (palette Stitch)
   tradotto per Bootstrap 5 + FontAwesome 6
   ======================================================================== */

/* --------------------------------------------------------------------
   1. Design tokens (CSS custom properties)
   -------------------------------------------------------------------- */
:root {
  /* Brand */
  --pc-orange:        #FF6900;
  --pc-orange-dark:   #E65F00;
  --pc-orange-darker: #A14000;
  --pc-orange-soft:   #FFDBCC;
  --pc-orange-tint:   #FFEAE1;

  --pc-brown:         #4B3533;
  --pc-brown-dark:    #261812;
  --pc-brown-soft:    #725856;

  /* Surfaces */
  --pc-bg:            #F4F3F3;   /* page background */
  --pc-surface:       #FFFFFF;   /* cards / containers */
  --pc-surface-warm:  #FFF8F6;   /* warm off-white (Stitch surface) */
  --pc-surface-alt:   #FFEAE1;   /* subtle warm tint */
  --pc-input-bg:      #EBEAEA;
  --pc-divider:       #F0EFEF;

  /* Text */
  --pc-text:          #261812;
  --pc-text-muted:    #5A4136;
  --pc-text-faint:    #8E7164;

  /* Semantic */
  --pc-success:       #16A34A;
  --pc-success-soft:  #DCFCE7;
  --pc-warning:       #D97706;
  --pc-warning-soft:  #FEF3C7;
  --pc-danger:        #BA1A1A;
  --pc-danger-soft:   #FFDAD6;
  --pc-info:          #00629F;
  --pc-info-soft:     #CFE4FF;

  /* Spacing scale (8px base, allineato a Stitch) */
  --pc-space-xs: 4px;
  --pc-space-sm: 12px;
  --pc-space-md: 24px;
  --pc-space-lg: 40px;
  --pc-space-xl: 64px;

  /* Radii */
  --pc-radius-sm:   .25rem;
  --pc-radius:      .5rem;
  --pc-radius-md:   .75rem;
  --pc-radius-lg:   1rem;
  --pc-radius-pill: 9999px;

  /* Elevations (ambient shadows, mai bordi netti) */
  --pc-shadow-1: 0 4px 12px rgba(75, 53, 51, 0.04);
  --pc-shadow-2: 0 8px 24px rgba(75, 53, 51, 0.08);
  --pc-shadow-3: 0 16px 40px rgba(75, 53, 51, 0.12);

  /* Sidebar size */
  --pc-sidebar-w: 256px;
  --pc-topbar-h:  64px;

  /* ---- Bootstrap variable overrides (consumati da Bootstrap 5) ---- */
  --bs-primary:        var(--pc-orange);
  --bs-primary-rgb:    255, 105, 0;
  --bs-secondary:      var(--pc-brown);
  --bs-secondary-rgb:  75, 53, 51;
  --bs-success:        var(--pc-success);
  --bs-warning:        var(--pc-warning);
  --bs-danger:         var(--pc-danger);
  --bs-info:           var(--pc-info);

  --bs-body-bg:           var(--pc-bg);
  --bs-body-color:        var(--pc-text);
  --bs-body-font-family:  'Manrope', system-ui, -apple-system, sans-serif;
  --bs-body-font-size:    1rem;
  --bs-body-line-height:  1.6;

  --bs-border-color:        rgba(75, 53, 51, 0.08);
  --bs-border-radius:       var(--pc-radius);
  --bs-border-radius-sm:    var(--pc-radius-sm);
  --bs-border-radius-lg:    var(--pc-radius-md);
  --bs-border-radius-xl:    var(--pc-radius-lg);
  --bs-link-color:          var(--pc-orange);
  --bs-link-hover-color:    var(--pc-orange-dark);
  --bs-form-invalid-color:  var(--pc-danger);
}

/* --------------------------------------------------------------------
   2. Tipografia
   -------------------------------------------------------------------- */
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background-color: var(--pc-bg);
  color: var(--pc-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  color: var(--pc-text);
  letter-spacing: -0.01em;
}
h1, .h1 { font-size: 2.5rem; line-height: 1.2; letter-spacing: -0.02em; }
h2, .h2 { font-size: 2rem;   line-height: 1.2; }
h3, .h3 { font-size: 1.5rem; line-height: 1.3; font-weight: 600; }

.label-caps {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-muted-warm  { color: var(--pc-text-muted) !important; }
.text-faint       { color: var(--pc-text-faint) !important; }

/* --------------------------------------------------------------------
   3. Bottoni (override Bootstrap)
   -------------------------------------------------------------------- */
.btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: var(--pc-radius);
  padding: .65rem 1.25rem;
  transition: all .2s ease;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background-color: var(--pc-orange);
  border-color: var(--pc-orange);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--pc-orange-dark);
  border-color: var(--pc-orange-dark);
  color: #fff;
}

.btn-outline-secondary {
  background-color: #fff;
  color: var(--pc-brown);
  border-color: rgba(75, 53, 51, 0.15);
}
.btn-outline-secondary:hover {
  background-color: var(--pc-bg);
  color: var(--pc-brown);
  border-color: var(--pc-brown);
}

.btn-ghost {
  background: transparent;
  color: var(--pc-text-muted);
  border: none;
}
.btn-ghost:hover {
  background-color: rgba(75, 53, 51, 0.04);
  color: var(--pc-text);
}

.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--pc-text-muted);
  background: transparent;
  border: none;
  position: relative;
}
.btn-icon:hover {
  background-color: rgba(75, 53, 51, 0.04);
  color: var(--pc-text);
}

/* FAB (floating action button) */
.btn-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--pc-orange);
  color: #fff;
  border: none;
  box-shadow: var(--pc-shadow-3);
  font-size: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 1050;
  transition: transform .2s ease;
}
.btn-fab:hover { transform: scale(1.1); }
.btn-fab:active { transform: scale(.95); }

/* --------------------------------------------------------------------
   4. Cards
   -------------------------------------------------------------------- */
.card {
  background: var(--pc-surface);
  border: none;
  border-radius: var(--pc-radius-md);
  box-shadow: var(--pc-shadow-1);
  transition: box-shadow .2s ease;
}
.card:hover { box-shadow: var(--pc-shadow-2); }
.card-body { padding: 1.5rem; }

.card-stat .stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--pc-radius);
  background: var(--pc-surface-alt);
  color: var(--pc-orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  transition: all .3s ease;
}
.card-stat:hover .stat-icon {
  background: var(--pc-orange);
  color: #fff;
}
.card-stat .stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--pc-text);
  line-height: 1.1;
}
.card-stat .stat-label {
  font-size: .9rem;
  color: var(--pc-text-faint);
}
.card-stat.is-live { border-left: 4px solid var(--pc-success); }

/* --------------------------------------------------------------------
   5. Form controls
   -------------------------------------------------------------------- */
.form-control,
.form-select {
  background-color: var(--pc-input-bg);
  border: 1.5px solid transparent;
  border-radius: var(--pc-radius);
  padding: .85rem 1rem;
  font-size: 1rem;
  color: var(--pc-text);
  transition: border-color .15s ease, background-color .15s ease;
}
.form-control:focus,
.form-select:focus {
  background-color: #fff;
  border-color: var(--pc-orange);
  box-shadow: none;
  outline: none;
}
.form-control::placeholder { color: var(--pc-text-faint); }

.input-group-icon {
  position: relative;
}
.input-group-icon > .form-control { padding-left: 3rem; }
.input-group-icon > .form-control.has-trailing-icon { padding-right: 3rem; }
.input-group-icon > .icon-leading,
.input-group-icon > .icon-trailing {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: var(--pc-text-faint);
  font-size: 1.05rem;
  pointer-events: none;
}
.input-group-icon > .icon-leading  { left: 1rem; }
.input-group-icon > .icon-trailing { right: 1rem; pointer-events: auto; cursor: pointer; background: none; border: none; }
.input-group-icon > .icon-trailing:hover { color: var(--pc-text-muted); }

.form-check-input:checked {
  background-color: var(--pc-orange);
  border-color: var(--pc-orange);
}
.form-check-input:focus {
  border-color: var(--pc-orange);
  box-shadow: 0 0 0 .25rem rgba(255, 105, 0, .15);
}

/* Search field nella topbar */
.search-input {
  background: var(--pc-input-bg);
  border: 1.5px solid transparent;
  border-radius: var(--pc-radius);
  padding: .55rem 1rem .55rem 2.5rem;
  width: 24rem;
  max-width: 100%;
  font-size: .9rem;
}
.search-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--pc-orange);
}

/* --------------------------------------------------------------------
   6. Sidebar e Topbar
   -------------------------------------------------------------------- */
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--pc-sidebar-w);
  background: var(--pc-brown);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  z-index: 1040;
  box-shadow: var(--pc-shadow-2);
}
.app-sidebar .brand {
  padding: 0 1.5rem 2rem;
  display: flex; align-items: center; gap: .75rem;
}
.app-sidebar .brand .brand-mark {
  width: 40px; height: 40px;
  background: var(--pc-orange);
  border-radius: var(--pc-radius);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.app-sidebar .brand .brand-name {
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1.05rem;
  line-height: 1;
}
.app-sidebar .brand .brand-tagline {
  color: rgba(255,255,255,.55);
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.app-sidebar .nav { flex: 1; gap: 0; padding: 0; }
.app-sidebar .nav-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.5rem;
  border-left: 4px solid transparent;
  color: rgba(255,255,255,.6);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s ease;
}
.app-sidebar .nav-link i { width: 20px; text-align: center; font-size: 1rem; }
.app-sidebar .nav-link:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.app-sidebar .nav-link.active {
  background: rgba(255,255,255,.05);
  border-left-color: var(--pc-orange);
  color: #fff;
  font-weight: 600;
}
.app-sidebar .sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.app-topbar {
  position: fixed;
  top: 0; right: 0; left: var(--pc-sidebar-w);
  height: var(--pc-topbar-h);
  background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  box-shadow: var(--pc-shadow-1);
  z-index: 1030;
}
.app-topbar .user-chip {
  display: flex; align-items: center; gap: .75rem;
}
.app-topbar .user-chip .user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--pc-surface-alt);
  object-fit: cover;
}
.app-topbar .divider-vertical {
  width: 1px; height: 32px;
  background: rgba(75,53,51,.1);
  margin: 0 .5rem;
}
.app-topbar .notification-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: var(--pc-orange);
  border-radius: 50%;
}

.app-content {
  margin-left: var(--pc-sidebar-w);
  padding-top: var(--pc-topbar-h);
  min-height: 100vh;
}
.app-content > .container-fluid {
  max-width: 1440px;
  padding: 2rem;
}

/* Mobile: sidebar collassata */
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .app-sidebar.is-open { transform: translateX(0); }
  .app-topbar { left: 0; padding: 0 1rem; }
  .app-content { margin-left: 0; }
  .app-content > .container-fluid { padding: 1rem; }
  .search-input { width: 100%; }
}

/* --------------------------------------------------------------------
   7. Tabelle (style Stitch)
   -------------------------------------------------------------------- */
.table-pc {
  width: 100%;
  border-collapse: collapse;
}
.table-pc thead th {
  background: #fafaf9;
  color: var(--pc-text-faint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 1rem 1.5rem;
  text-align: left;
  border: none;
}
.table-pc tbody tr {
  border-top: 1px solid var(--pc-divider);
  transition: background .15s ease;
}
.table-pc tbody tr:hover { background: rgba(255, 247, 240, .5); }
.table-pc tbody td {
  padding: 1rem 1.5rem;
  vertical-align: middle;
  font-size: .9rem;
}

/* --------------------------------------------------------------------
   8. Badge (status pill)
   -------------------------------------------------------------------- */
.pc-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .75rem;
  border-radius: var(--pc-radius-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.4;
}
.pc-badge--neutral  { background: var(--pc-input-bg); color: var(--pc-brown); }
.pc-badge--prep     { background: #FAD8D4; color: var(--pc-brown-soft); }
.pc-badge--success  { background: var(--pc-success-soft); color: #15803D; }
.pc-badge--warning  { background: var(--pc-warning-soft); color: #92400E; }
.pc-badge--danger   { background: var(--pc-danger-soft); color: #93000A; }
.pc-badge--info     { background: var(--pc-info-soft);   color: #003355; }
.pc-badge--live     { background: var(--pc-success-soft); color: #15803D; }
.pc-badge--live::before {
  content: ""; width: 6px; height: 6px;
  background: var(--pc-success); border-radius: 50%;
  animation: pcPulse 1.5s infinite;
}
@keyframes pcPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* --------------------------------------------------------------------
   9. Avatar / participant chip
   -------------------------------------------------------------------- */
.pc-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--pc-surface-alt);
  color: var(--pc-orange-darker);
  font-weight: 700;
  font-size: .7rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --------------------------------------------------------------------
   10. Activity timeline
   -------------------------------------------------------------------- */
.pc-activity {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}
.pc-activity::before {
  content: '';
  position: absolute;
  left: 11px; top: 8px;
  bottom: -1.5rem;
  width: 2px;
  background: var(--pc-divider);
}
.pc-activity:last-child::before { display: none; }
.pc-activity .pc-activity-marker {
  position: absolute;
  left: 0; top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .7rem;
}
.pc-activity .pc-activity-marker--orange { background: var(--pc-orange); }
.pc-activity .pc-activity-marker--info   { background: var(--pc-info); }
.pc-activity .pc-activity-marker--success{ background: var(--pc-success); }
.pc-activity .pc-activity-marker--neutral{ background: var(--pc-text-faint); }
.pc-activity-text { font-size: .9rem; color: var(--pc-text); }
.pc-activity-time { font-size: .75rem; color: var(--pc-text-faint); }

/* --------------------------------------------------------------------
   11. Spotlight banner (focus group live)
   -------------------------------------------------------------------- */
.pc-spotlight {
  background: var(--pc-brown);
  color: #fff;
  border-radius: var(--pc-radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.pc-spotlight::after {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 33%; height: 120%;
  background: radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 65%);
  pointer-events: none;
}

/* --------------------------------------------------------------------
   12. Auth split layout
   -------------------------------------------------------------------- */
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .auth-split { grid-template-columns: 1fr 1fr; }
}
.auth-split .auth-pane-brand {
  display: none;
  background: var(--pc-brown);
  color: #fff;
  padding: 4rem;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 992px) { .auth-split .auth-pane-brand { display: flex; } }
.auth-split .auth-pane-brand::before,
.auth-split .auth-pane-brand::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .12;
  pointer-events: none;
}
.auth-split .auth-pane-brand::before {
  top: -10%; right: -10%;
  width: 600px; height: 600px;
  background: var(--pc-orange);
}
.auth-split .auth-pane-brand::after {
  bottom: -10%; left: -10%;
  width: 400px; height: 400px;
  background: #FAD8D4;
}
.auth-split .auth-pane-form {
  background: #fff;
  padding: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.auth-split .auth-pane-form .auth-form-wrap { width: 100%; max-width: 420px; }

/* --------------------------------------------------------------------
   13. Utility extra
   -------------------------------------------------------------------- */
.fa-fw { width: 1.25em; text-align: center; }
.shadow-soft { box-shadow: var(--pc-shadow-1); }
.shadow-soft-lg { box-shadow: var(--pc-shadow-2); }
.bg-warm { background-color: var(--pc-surface-warm); }
.bg-warm-tint { background-color: var(--pc-surface-alt); }
.rounded-md { border-radius: var(--pc-radius-md); }
.rounded-lg { border-radius: var(--pc-radius-lg); }

/* --------------------------------------------------------------------
   14. Toggle switch (iOS style) — usato in form impostazioni
   -------------------------------------------------------------------- */
.pc-switch {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
}
.pc-switch input { opacity: 0; width: 0; height: 0; }
.pc-switch .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #d6d3d1;
  border-radius: 24px;
  transition: background-color .2s;
}
.pc-switch .slider::before {
  content: "";
  position: absolute;
  height: 20px; width: 20px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.pc-switch input:checked + .slider { background: var(--pc-orange); }
.pc-switch input:checked + .slider::before { transform: translateX(20px); }
.pc-switch input:focus + .slider { box-shadow: 0 0 0 3px rgba(255,105,0,.2); }

.pc-switch-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .25rem 0;
}
.pc-switch-row .pc-switch-info .pc-switch-title {
  font-weight: 600; color: var(--pc-text); font-size: .95rem;
  margin-bottom: 2px;
}
.pc-switch-row .pc-switch-info .pc-switch-desc {
  font-size: .75rem; color: var(--pc-text-faint);
}

/* --------------------------------------------------------------------
   15. Vertical timeline (dettaglio evento)
   -------------------------------------------------------------------- */
.pc-vtimeline {
  position: relative;
  padding-left: 0;
}
.pc-vtimeline-step {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 1.75rem;
}
.pc-vtimeline-step::before {
  content: '';
  position: absolute;
  left: 11px; top: 22px;
  width: 2px; bottom: 0;
  background: var(--pc-divider);
}
.pc-vtimeline-step:last-child::before { display: none; }
.pc-vtimeline-step .pc-vtimeline-bullet {
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--pc-divider);
  background: var(--pc-divider);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .65rem;
}
.pc-vtimeline-step.is-done   .pc-vtimeline-bullet { background: var(--pc-success); }
.pc-vtimeline-step.is-active .pc-vtimeline-bullet { background: var(--pc-orange); }
.pc-vtimeline-step.is-future                       { opacity: .45; }
.pc-vtimeline-step .pc-vtimeline-title { font-weight: 700; font-size: .9rem; }
.pc-vtimeline-step .pc-vtimeline-meta  { font-size: .75rem; color: var(--pc-text-faint); font-style: italic; margin: 1px 0 4px; }
.pc-vtimeline-step .pc-vtimeline-desc  { font-size: .8rem; color: var(--pc-text-muted); }
.pc-vtimeline-step.is-active .pc-vtimeline-title { color: var(--pc-orange-darker); }

/* --------------------------------------------------------------------
   16. Breadcrumb
   -------------------------------------------------------------------- */
.pc-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--pc-text-faint);
}
.pc-breadcrumb a {
  color: var(--pc-text-faint); text-decoration: none; transition: color .15s;
}
.pc-breadcrumb a:hover { color: var(--pc-orange); }
.pc-breadcrumb .pc-breadcrumb-current { color: var(--pc-orange); font-weight: 700; }
.pc-breadcrumb i { font-size: .65rem; color: var(--pc-text-faint); }

/* --------------------------------------------------------------------
   17. Live observer view (tema scuro, layout fullscreen)
   -------------------------------------------------------------------- */
.live-page {
  height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: #1a1514;
  color: #f5f5f4;
}
.live-topbar {
  height: 64px;
  background: var(--pc-brown);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  flex-shrink: 0;
}
.live-pill-live {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .75rem;
  background: rgba(220,38,38,.2);
  border: 1px solid rgba(220,38,38,.4);
  color: #fca5a5;
  border-radius: 9999px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.live-pill-live::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; animation: pcPulse 1.2s infinite;
}
.live-timer {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .75rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--pc-radius);
  font-family: 'Consolas', monospace;
  font-weight: 700; font-size: .85rem; color: #f5f5f4;
}
.live-main {
  flex: 1; display: flex; overflow: hidden;
}
.live-stage {
  flex: 1; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.live-grid {
  flex: 1;
  display: grid; grid-template-columns: 3fr 1fr;
  gap: 1rem;
  background: rgba(28,25,23,.6);
  border: 1px solid rgba(120,113,108,.3);
  border-radius: var(--pc-radius-md);
  padding: 1rem;
}
.live-tile {
  position: relative; overflow: hidden;
  background: #0c0a09;
  border: 1px solid rgba(120,113,108,.4);
  border-radius: var(--pc-radius);
}
.live-tile-main { aspect-ratio: 16/9; }
.live-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.live-tile-name {
  position: absolute; bottom: .5rem; left: .5rem;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  padding: .15rem .55rem;
  border-radius: .25rem;
  font-size: .65rem; color: #fff;
}
.live-thumbs {
  display: flex; flex-direction: column; gap: 1rem;
  overflow-y: auto;
}
.live-thumbs .live-tile { aspect-ratio: 16/9; }
.live-controls {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--pc-radius-md);
  flex-shrink: 0;
}
.live-controls .live-btn {
  width: 40px; height: 40px;
  background: #292524;
  color: #fff;
  border: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.live-controls .live-btn:hover { background: #44403c; }
.live-stack-avatars {
  display: flex;
}
.live-stack-avatars > * {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #1a1514;
  background: #44403c;
  color: #fff;
  font-size: .65rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: -8px;
}
.live-stack-avatars > *:first-child { margin-left: 0; }
.live-sidepanel {
  width: 380px;
  background: #fff;
  color: var(--pc-text);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,.3);
}
.live-sidepanel .nav-tabs {
  border-bottom: 1px solid var(--pc-divider);
}
.live-sidepanel .nav-tabs .nav-link {
  flex: 1;
  text-align: center;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--pc-text-faint);
  font-weight: 600; font-size: .85rem;
  padding: 1rem;
  display: flex; align-items: center; justify-content: center; gap: .35rem;
}
.live-sidepanel .nav-tabs .nav-link.active {
  border-bottom-color: var(--pc-orange);
  color: var(--pc-orange);
  background: transparent;
}

/* Chat bubbles */
.pc-chat-area {
  flex: 1; overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--pc-surface-warm);
}
.pc-chat-system {
  align-self: center;
  font-size: .65rem; color: var(--pc-text-faint);
  background: var(--pc-divider);
  padding: .25rem .75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pc-chat-msg { max-width: 85%; display: flex; flex-direction: column; gap: .25rem; }
.pc-chat-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.pc-chat-msg .pc-chat-meta { font-size: .65rem; }
.pc-chat-msg .pc-chat-author { font-weight: 700; text-transform: uppercase; color: var(--pc-text-muted); }
.pc-chat-msg .pc-chat-time   { color: var(--pc-text-faint); }
.pc-chat-msg .pc-chat-bubble {
  background: #f5f5f4;
  padding: .75rem 1rem;
  border-radius: 1rem;
  border-top-left-radius: .25rem;
  font-size: .85rem; color: var(--pc-text);
}
.pc-chat-msg.is-mine .pc-chat-bubble {
  background: var(--pc-orange);
  color: #fff;
  border-top-left-radius: 1rem;
  border-top-right-radius: .25rem;
  box-shadow: 0 2px 8px rgba(255,105,0,.25);
}
.pc-chat-input-wrap {
  border-top: 1px solid var(--pc-divider);
  padding: 1rem;
  background: #fff;
}
.pc-chat-input {
  width: 100%;
  background: var(--pc-input-bg);
  border: 1.5px solid transparent;
  border-radius: var(--pc-radius-md);
  padding: .75rem 3rem .75rem 1rem;
  resize: none;
  font-size: .85rem;
}
.pc-chat-input:focus { outline: none; background: #fff; border-color: var(--pc-orange); }
.pc-chat-send {
  position: absolute; right: 1.5rem; bottom: 1.5rem;
  width: 32px; height: 32px;
  background: var(--pc-orange);
  color: #fff;
  border: none; border-radius: var(--pc-radius);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.pc-chat-send:hover { transform: scale(1.05); }

/* --------------------------------------------------------------------
   18. Transcript viewer
   -------------------------------------------------------------------- */
.pc-transcript-block {
  display: flex; gap: 1.25rem;
  padding: 1rem 0;
}
.pc-transcript-block.is-highlight {
  background: rgba(255, 247, 240, .8);
  border-left: 4px solid var(--pc-orange);
  margin-left: -2rem; margin-right: -2rem;
  padding-left: 2rem; padding-right: 2rem;
  border-radius: 0 var(--pc-radius) var(--pc-radius) 0;
}
.pc-transcript-time {
  width: 5rem; flex-shrink: 0;
  font-family: 'Consolas', monospace;
  font-size: .75rem; color: var(--pc-text-faint);
  padding-top: .25rem;
}
.pc-transcript-speaker {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-size: .7rem; font-weight: 700;
  margin-bottom: .5rem;
}
.pc-transcript-speaker--moderator { background: rgba(0,98,159,.1);   color: #00629f; }
.pc-transcript-speaker--patient   { background: rgba(161,64,0,.1);   color: var(--pc-orange-darker); }
.pc-transcript-speaker--nurse     { background: rgba(22,163,74,.1);  color: #15803d; }
.pc-transcript-speaker--rep       { background: rgba(124,58,237,.1); color: #7c3aed; }
.pc-transcript-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--pc-text);
}

/* --------------------------------------------------------------------
   19. Client card (gestione clienti)
   -------------------------------------------------------------------- */
.pc-client-card { display: flex; flex-direction: column; height: 100%; padding: 1.5rem; }
.pc-client-card .pc-client-logo {
  width: 64px; height: 64px;
  border-radius: var(--pc-radius-md);
  background: var(--pc-surface-alt);
  border: 1px solid var(--pc-divider);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1.5rem; color: var(--pc-orange-darker);
  overflow: hidden;
}
.pc-client-card .pc-client-logo img { width: 100%; height: 100%; object-fit: contain; }
.pc-client-card .pc-client-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--pc-divider);
  border-bottom: 1px solid var(--pc-divider);
  margin: 1rem 0;
}
.pc-client-card .pc-client-cta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem;
  border: 1px solid var(--pc-divider);
  border-radius: var(--pc-radius);
  text-decoration: none;
  font-weight: 700;
  color: var(--pc-brown);
  transition: all .2s;
}
.pc-client-card:hover .pc-client-cta {
  background: var(--pc-orange);
  color: #fff;
  border-color: transparent;
}

/* --------------------------------------------------------------------
   20. Pagination
   -------------------------------------------------------------------- */
.pc-pagination {
  display: flex; align-items: center; gap: .5rem;
}
.pc-pagination .pc-page-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--pc-divider);
  background: #fff;
  color: var(--pc-text);
  border-radius: var(--pc-radius);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .85rem;
  text-decoration: none;
  transition: all .15s;
}
.pc-pagination .pc-page-btn:hover { background: var(--pc-bg); }
.pc-pagination .pc-page-btn.is-active {
  background: var(--pc-orange);
  color: #fff;
  border-color: transparent;
}
.pc-pagination .pc-page-btn.is-disabled {
  color: var(--pc-text-faint); cursor: not-allowed; pointer-events: none;
}

/* --------------------------------------------------------------------
   21. Form sections (creazione evento)
   -------------------------------------------------------------------- */
.pc-form-section { padding: 1.5rem; }
.pc-form-section .pc-form-section-title {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.5rem;
}
.pc-form-section .pc-form-section-title i { color: var(--pc-orange); font-size: 1.15rem; }
.pc-form-section .pc-form-section-title h3 { margin: 0; color: var(--pc-brown); }

.pc-add-row {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: .85rem;
  border: 2px dashed var(--pc-divider);
  border-radius: var(--pc-radius);
  color: var(--pc-text-faint);
  background: transparent;
  font-weight: 600; font-size: .9rem;
  gap: .5rem;
  transition: all .2s;
}
.pc-add-row:hover { border-color: var(--pc-orange); color: var(--pc-orange); }

.pc-list-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  background: var(--pc-bg);
  border: 1px solid var(--pc-divider);
  border-radius: var(--pc-radius);
}
