/*
 * Panel UI: soft icon tiles, status dots and pills for both Filament panels.
 * Linked from the head of every panel page by App\Providers\PanelUiServiceProvider.
 *
 * Filament emits colours as "R, G, B". Use rgb(var(--x)) and rgba(var(--x), .1);
 * the slash form for alpha does not parse with those values.
 */

/* ---- Token contract (shared with settings-ui.css) ------------------------------------- */
[data-tone]{--wm-bg:rgba(var(--gray-500),.10);--wm-fg:rgb(var(--gray-600));--wm-ring:rgba(var(--gray-500),.20)}
[data-tone="indigo"]{--wm-bg:rgba(var(--indigo-500),.10);--wm-fg:rgb(var(--indigo-600));--wm-ring:rgba(var(--indigo-500),.22)}
[data-tone="sky"]{--wm-bg:rgba(var(--sky-500),.10);--wm-fg:rgb(var(--sky-600));--wm-ring:rgba(var(--sky-500),.22)}
[data-tone="emerald"]{--wm-bg:rgba(var(--emerald-500),.10);--wm-fg:rgb(var(--emerald-600));--wm-ring:rgba(var(--emerald-500),.22)}
[data-tone="rose"]{--wm-bg:rgba(var(--rose-500),.10);--wm-fg:rgb(var(--rose-600));--wm-ring:rgba(var(--rose-500),.22)}
[data-tone="violet"]{--wm-bg:rgba(var(--violet-500),.10);--wm-fg:rgb(var(--violet-600));--wm-ring:rgba(var(--violet-500),.22)}
[data-tone="amber"]{--wm-bg:rgba(var(--amber-500),.10);--wm-fg:rgb(var(--amber-600));--wm-ring:rgba(var(--amber-500),.22)}
[data-tone="slate"]{--wm-bg:rgba(var(--slate-500),.10);--wm-fg:rgb(var(--slate-600));--wm-ring:rgba(var(--slate-500),.22)}
[data-tone="teal"]{--wm-bg:rgba(var(--teal-500),.10);--wm-fg:rgb(var(--teal-600));--wm-ring:rgba(var(--teal-500),.22)}
.dark [data-tone]{--wm-bg:rgba(var(--gray-400),.12);--wm-fg:rgb(var(--gray-300));--wm-ring:rgba(var(--gray-400),.22)}
.dark [data-tone="indigo"]{--wm-bg:rgba(var(--indigo-400),.14);--wm-fg:rgb(var(--indigo-300));--wm-ring:rgba(var(--indigo-400),.28)}
.dark [data-tone="sky"]{--wm-bg:rgba(var(--sky-400),.14);--wm-fg:rgb(var(--sky-300));--wm-ring:rgba(var(--sky-400),.28)}
.dark [data-tone="emerald"]{--wm-bg:rgba(var(--emerald-400),.14);--wm-fg:rgb(var(--emerald-300));--wm-ring:rgba(var(--emerald-400),.28)}
.dark [data-tone="rose"]{--wm-bg:rgba(var(--rose-400),.14);--wm-fg:rgb(var(--rose-300));--wm-ring:rgba(var(--rose-400),.28)}
.dark [data-tone="violet"]{--wm-bg:rgba(var(--violet-400),.14);--wm-fg:rgb(var(--violet-300));--wm-ring:rgba(var(--violet-400),.28)}
.dark [data-tone="amber"]{--wm-bg:rgba(var(--amber-400),.14);--wm-fg:rgb(var(--amber-300));--wm-ring:rgba(var(--amber-400),.28)}
.dark [data-tone="slate"]{--wm-bg:rgba(var(--slate-400),.14);--wm-fg:rgb(var(--slate-300));--wm-ring:rgba(var(--slate-400),.28)}
.dark [data-tone="teal"]{--wm-bg:rgba(var(--teal-400),.14);--wm-fg:rgb(var(--teal-300));--wm-ring:rgba(var(--teal-400),.28)}
.wm-tile{display:inline-flex;align-items:center;justify-content:center;flex:none;width:2.25rem;height:2.25rem;border-radius:.625rem;background:var(--wm-bg,rgba(var(--gray-500),.10));color:var(--wm-fg,rgb(var(--gray-600)));box-shadow:inset 0 0 0 1px var(--wm-ring,rgba(var(--gray-500),.20))}
.wm-tile svg{width:1.25rem;height:1.25rem}
.wm-tile--sm{width:1.75rem;height:1.75rem;border-radius:.5rem}.wm-tile--sm svg{width:1rem;height:1rem}
.wm-dot{display:inline-block;flex:none;width:.5rem;height:.5rem;border-radius:9999px;background:rgb(var(--gray-400))}
.wm-dot--ok{background:rgb(var(--success-500))}.wm-dot--warn{background:rgb(var(--warning-500))}.wm-dot--error{background:rgb(var(--danger-500))}.wm-dot--off{background:rgb(var(--gray-400))}
.wm-pill{display:inline-flex;align-items:center;gap:.375rem;padding:.125rem .625rem;border-radius:9999px;font-size:.75rem;font-weight:500;line-height:1.25rem;background:rgba(var(--gray-500),.10);color:rgb(var(--gray-700))}
.wm-pill--ok{background:rgba(var(--success-500),.12);color:rgb(var(--success-700))}.wm-pill--warn{background:rgba(var(--warning-500),.14);color:rgb(var(--warning-700))}.wm-pill--error{background:rgba(var(--danger-500),.12);color:rgb(var(--danger-700))}
.dark .wm-pill{color:rgb(var(--gray-300))}.dark .wm-pill--ok{color:rgb(var(--success-300))}.dark .wm-pill--warn{color:rgb(var(--warning-300))}.dark .wm-pill--error{color:rgb(var(--danger-300))}

/* ---- Inline icons in hand-built HTML (the compiled panel CSS has no such utilities) ---- */
.wm-ic{display:inline-block;flex:none;vertical-align:text-bottom}
.wm-ic-xs{width:.875rem;height:.875rem}
.wm-ic-sm{width:1rem;height:1rem}
.wm-ic-md{width:1.25rem;height:1.25rem}
.wm-ic-lg{width:2.25rem;height:2.25rem}
.wm-ic-xl{width:3rem;height:3rem}
.wm-ok{color:rgb(var(--success-500))}
.wm-warn{color:rgb(var(--warning-500))}
.wm-error{color:rgb(var(--danger-500))}
.wm-off{color:rgb(var(--gray-400))}

/* The navigation itself (dark column, coloured icons, the active pill) is drawn by panel-theme.css. */

/* ---- Section headers: the icon becomes a tile; the tone comes from the nearest [data-tone] */
.fi-section-header-icon{
  box-sizing:content-box;width:1.25rem!important;height:1.25rem!important;padding:.5rem;
  margin-top:0!important;align-self:center!important;border-radius:.625rem;
  background:var(--wm-bg,rgba(var(--gray-500),.10));color:var(--wm-fg,rgb(var(--gray-600)))!important;
  box-shadow:inset 0 0 0 1px var(--wm-ring,rgba(var(--gray-500),.20));
}
.dark .fi-section-header-icon{color:var(--wm-fg,rgb(var(--gray-300)))!important}

/* ---- Stats widgets: the label icon becomes a tile ---------------------------------------- */
.fi-wi-stats-overview-stat-icon{
  box-sizing:content-box;width:1.125rem!important;height:1.125rem!important;padding:.375rem;
  border-radius:.5rem;background:var(--wm-bg,rgba(var(--gray-500),.10));
  color:var(--wm-fg,rgb(var(--gray-600)))!important;box-shadow:inset 0 0 0 1px var(--wm-ring,rgba(var(--gray-500),.20));
}
.dark .fi-wi-stats-overview-stat-icon{color:var(--wm-fg,rgb(var(--gray-300)))!important}
.fi-wi-stats-overview-stat-description-icon{width:1.125rem;height:1.125rem}

/* ---- Empty states of tables --------------------------------------------------------------- */
.fi-ta-empty-state-icon-ctn{
  background:var(--wm-bg,rgba(var(--gray-500),.10))!important;padding:.875rem!important;
  box-shadow:inset 0 0 0 1px var(--wm-ring,rgba(var(--gray-500),.18));
}
.fi-ta-empty-state-icon{color:var(--wm-fg,rgb(var(--gray-500)))!important}
.dark .fi-ta-empty-state-icon{color:var(--wm-fg,rgb(var(--gray-400)))!important}

/* ---- Form tabs and wizard steps: one icon size --------------------------------------------- */
.fi-tabs-item-icon{width:1.25rem;height:1.25rem}
.fi-fo-wizard-header-step-icon{width:1.5rem;height:1.5rem}

/* ---- Polish --------------------------------------------------------------------------------- */
.fi-icon-btn{transition:background-color .15s ease,color .15s ease}
.fi-btn{transition:background-color .15s ease,box-shadow .15s ease,color .15s ease}
@media (prefers-reduced-motion:reduce){
  .fi-icon-btn,.fi-btn{transition:none}
}

/* ---- Choice cards (availability of a Live webinar): a radio group drawn as two cards ------------------ */
.wm-choice-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
@media (max-width:40rem){.wm-choice-cards{grid-template-columns:minmax(0,1fr)}}
.wm-choice-card{
  position:relative;display:flex;align-items:flex-start;gap:.875rem;padding:1rem 2.75rem 1rem 1rem;cursor:pointer;
  border-radius:.875rem;background:rgb(255 255 255);box-shadow:0 0 0 1px rgba(var(--gray-950),.1);
  transition:box-shadow .15s ease,background-color .15s ease;
}
.dark .wm-choice-card{background:rgba(255,255,255,.04);box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.wm-choice-card:hover:not(.is-disabled){box-shadow:0 0 0 1px rgba(var(--primary-500),.55)}
.wm-choice-card.is-selected,.wm-choice-card:has(.wm-choice-input:checked){
  background:rgba(var(--primary-500),.06);box-shadow:0 0 0 2px rgb(var(--primary-600));
}
.dark .wm-choice-card.is-selected,.dark .wm-choice-card:has(.wm-choice-input:checked){background:rgba(var(--primary-400),.1);box-shadow:0 0 0 2px rgb(var(--primary-400))}
.wm-choice-card:has(.wm-choice-input:focus-visible){outline:2px solid rgb(var(--primary-500));outline-offset:2px}
.wm-choice-card.is-disabled{cursor:not-allowed}
.wm-choice-card.is-locked{opacity:.6}
.wm-choice-card.is-disabled:not(.is-locked){cursor:default}
.wm-choice-input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
.wm-choice-icon{
  flex:none;display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:.75rem;
  background:var(--wm-bg);color:var(--wm-fg);box-shadow:inset 0 0 0 1px var(--wm-ring);
}
.wm-choice-body{display:flex;flex-direction:column;gap:.125rem;min-width:0}
.wm-choice-title{font-size:1rem;font-weight:600;line-height:1.4;color:rgb(var(--gray-950))}
.dark .wm-choice-title{color:#fff}
.wm-choice-subtitle{font-size:.875rem;font-weight:500;line-height:1.4;color:rgb(var(--primary-600))}
.dark .wm-choice-subtitle{color:rgb(var(--primary-400))}
.wm-choice-text{margin-top:.25rem;font-size:.8125rem;line-height:1.5;color:rgb(var(--gray-600))}
.dark .wm-choice-text{color:rgb(var(--gray-400))}
.wm-choice-locknote{position:relative;z-index:1;display:inline-flex;align-items:center;gap:.375rem;margin-top:.5rem;font-size:.8125rem;color:rgb(var(--gray-700))}
.dark .wm-choice-locknote{color:rgb(var(--gray-300))}
.wm-choice-locknote a{text-decoration:underline}
.wm-choice-check{
  position:absolute;top:.875rem;right:.875rem;display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;
  border-radius:9999px;background:rgb(var(--primary-600));color:#fff;opacity:0;transform:scale(.8);transition:opacity .15s ease,transform .15s ease;
}
.wm-choice-card.is-selected .wm-choice-check,.wm-choice-card:has(.wm-choice-input:checked) .wm-choice-check{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.wm-choice-card,.wm-choice-check{transition:none}}

/* ---- Link card (the room address of a Live webinar available right away) ------------------------------ */
.wm-link-card{
  padding:1rem 1.125rem;border-radius:.875rem;background:var(--wm-bg);box-shadow:inset 0 0 0 1px var(--wm-ring);
}
.wm-link-card-head{display:flex;align-items:flex-start;gap:.75rem}
.wm-link-card-icon{
  flex:none;display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:.625rem;
  background:rgb(255 255 255);color:var(--wm-fg);box-shadow:inset 0 0 0 1px var(--wm-ring);
}
.dark .wm-link-card-icon{background:rgba(255,255,255,.06)}
.wm-link-card-title{font-size:.9375rem;font-weight:600;line-height:1.4;color:rgb(var(--gray-950))}
.dark .wm-link-card-title{color:#fff}
.wm-link-card-desc{margin-top:.125rem;font-size:.8125rem;line-height:1.5;color:rgb(var(--gray-700))}
.dark .wm-link-card-desc{color:rgb(var(--gray-300))}
.wm-link-card-row{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}
.wm-link-card-input{
  flex:1 1 16rem;min-width:0;padding:.5rem .75rem;border:0;border-radius:.5rem;font-size:.875rem;
  background:rgb(255 255 255);color:rgb(var(--gray-950));box-shadow:0 0 0 1px rgba(var(--gray-950),.12);
}
.dark .wm-link-card-input{background:rgba(255,255,255,.06);color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.16)}
.wm-link-card-input:focus{outline:2px solid rgb(var(--primary-500));outline-offset:1px}
.wm-link-card-button{
  display:inline-flex;align-items:center;justify-content:center;gap:.375rem;min-height:2.25rem;padding:.5rem .875rem;
  border-radius:.5rem;border:0;cursor:pointer;font-size:.875rem;font-weight:600;color:#fff;background:rgb(var(--primary-600));
  transition:background-color .15s ease;
}
.wm-link-card-button:hover{background:rgb(var(--primary-500))}
.wm-link-card-button:focus-visible{outline:2px solid rgb(var(--primary-500));outline-offset:2px}
@media (max-width:40rem){.wm-link-card-button{flex:1 1 100%}}
.wm-link-card-note{margin-top:.625rem;font-size:.8125rem;line-height:1.5;color:rgb(var(--gray-700))}
.dark .wm-link-card-note{color:rgb(var(--gray-300))}

/* ---- Webinar lists: a little tighter, so the table fits a laptop screen without sideways scrolling ---------- */
.fi-resource-webinars .fi-ta-header-cell{padding-left:.5rem;padding-right:.5rem}
.fi-resource-webinars .fi-ta-text{padding-left:.5rem;padding-right:.5rem}
.fi-resource-webinars .fi-ta-actions{gap:.5rem}
