/* LiveWebinar workspace dashboard and global workspace switcher */

/* Header switcher */
.lw-workspace-switcher {
    position: relative;
    z-index: 40;
    direction: rtl;
    text-align: right;
}

.lw-workspace-switcher-summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 190px;
    max-width: 265px;
    padding: 6px 9px;
    border: 1px solid #E8EDE3;
    border-radius: 12px;
    background: #FFFFFF;
    color: #344238;
    cursor: pointer;
    list-style: none;
}

.lw-workspace-switcher-summary::-webkit-details-marker { display: none; }
.lw-workspace-switcher-summary::marker { content: ""; }

.lw-switcher-symbol,
.lw-switcher-item-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #F0F6E9;
    color: #609D43;
    font-size: 19px;
}

.lw-switcher-current {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    line-height: 1.45;
}

.lw-switcher-current small {
    color: #899187;
    font-size: 9px;
}

.lw-switcher-current strong {
    overflow: hidden;
    color: #344238;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lw-switcher-chevron {
    color: #7D8C76;
    font-size: 16px;
}

.lw-workspace-switcher[open] .lw-workspace-switcher-summary {
    border-color: #B7D6A6;
}

.lw-workspace-switcher-menu {
    position: absolute;
    top: calc(100% + 9px);
    inset-inline-end: 0;
    width: min(340px, calc(100vw - 30px));
    padding: 10px;
    border: 1px solid #E7EBE2;
    border-radius: 15px;
    background: #FFFFFF;
    box-shadow: 0 16px 45px rgba(37, 50, 38, .13);
}

.lw-switcher-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 8px 11px;
    color: #344238;
    font-size: 11px;
}

.lw-switcher-menu-heading span {
    display: grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    border-radius: 8px;
    background: #F1F6EC;
    color: #609D43;
    font-size: 10px;
    font-weight: 800;
}

.lw-workspace-switcher-menu form { margin: 0; }

.lw-switcher-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 9px;
    padding: 9px 8px;
    border: 0;
    border-radius: 10px;
    background: #FFFFFF;
    color: #344238;
    font: inherit;
    text-align: right;
    cursor: pointer;
    transition: background .15s ease;
}

.lw-switcher-item:hover { background: #F8FAF5; }
.lw-switcher-item.is-selected { background: #F5F9F1; cursor: default; }

.lw-switcher-item-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.lw-switcher-item-copy strong {
    overflow: hidden;
    color: #344238;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lw-switcher-item-copy small {
    color: #8A9386;
    font-size: 9px;
}

.lw-switcher-check { color: #5B9D3C; font-weight: 900; }
.lw-switcher-open { color: #8A9B82; font-size: 16px; }

.lw-switcher-all-link {
    display: block;
    margin-top: 7px;
    padding: 10px 9px 5px;
    border-top: 1px solid #EFF1EC;
    color: #5C963F !important;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none !important;
}


/* =========================================================
   LiveWebinar dashboard - Stage 1 visual redesign
   Scoped dashboard styles; preserves existing header switcher.
========================================================= */

.lw-dashboard-body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: #F5F4EF;
}
.lw-dashboard-page {
    --lw-green: #66B83F;
    --lw-green-dark: #438D2C;
    --lw-text: #26352B;
    --lw-muted: #899286;
    --lw-line: #E9EEE5;
    --lw-cream: #F5F4EF;
    --lw-mint: #D9F1E6;
    --lw-sage: #E3EDD9;
    min-height: 100vh;
    width: 100%;
    padding: 28px 24px 55px;
    color: var(--lw-text);
    background:
        radial-gradient(ellipse at 82% 0%, rgba(217,241,230,.38), transparent 32%),
        linear-gradient(180deg, #FBFCF9 0%, #FFFFFF 48%);
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    direction: rtl;
}
.lw-dashboard-page *, .lw-dashboard-page *::before, .lw-dashboard-page *::after { box-sizing: border-box; }
.lw-dashboard-page { overflow-x: clip; }
.lw-dashboard-shell {
    width: min(100%, 1500px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    gap: 25px;
    direction: ltr;
    align-items: start;
}
.lw-sidebar {
    position: sticky;
    top: 18px;
    z-index: 80;
    min-width: 0;
    min-height: 690px;
    padding: 20px 15px 15px;
    display: flex;
    flex-direction: column;
    direction: rtl;
    border: 1px solid #E8EDE4;
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 38px rgba(39,57,38,.055);
}
.lw-sidebar-brand { display:flex; align-items:center; gap:11px; padding:2px 4px 19px; border-bottom:1px solid #EEF1EB; }
.lw-sidebar-brand-mark { width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:14px;background:var(--lw-green);color:#fff;font-size:14px;font-weight:900;direction:ltr;box-shadow:0 6px 15px rgba(102,184,63,.2); }
.lw-sidebar-brand strong { display:block;color:#2D3C30;font-size:14px;font-weight:900;direction:ltr;text-align:right; }
.lw-sidebar-brand small { display:block;margin-top:3px;color:#929B8D;font-size:10px; }
.lw-sidebar-close { display:none;margin-inline-start:auto;border:0;background:transparent;color:#667461;font-size:25px;line-height:1;cursor:pointer; }
.lw-sidebar-workspace { margin:17px 0 19px;padding:14px 13px;border:1px solid #E7EEDF;border-radius:15px;background:linear-gradient(135deg,#F8FBF5,#F1F7EC); }
.lw-sidebar-caption,.lw-sidebar-nav-label { display:block;color:#9AA294;font-size:9px;font-weight:800;letter-spacing:.5px; }
.lw-sidebar-workspace > strong { display:block;margin-top:8px;color:#344238;font-size:12px;line-height:1.9;overflow-wrap:anywhere; }
.lw-sidebar-workspace-meta { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;color:#83917C;font-size:9px; }
.lw-sidebar-status { display:inline-flex;align-items:center;gap:5px;color:#568C3D; }
.lw-sidebar-status i,.lw-details-badge i { width:6px;height:6px;border-radius:50%;background:#69B64B;box-shadow:0 0 0 3px rgba(105,182,75,.13); }
.lw-sidebar-nav { display:flex;flex-direction:column;gap:5px; }
.lw-sidebar-nav-label { padding:0 10px 7px; }
.lw-sidebar-nav-label-spaced { margin-top:21px; }
.lw-sidebar-link { position:relative;display:flex;align-items:center;gap:10px;min-height:43px;padding:8px 10px;border-radius:11px;color:#677263;text-decoration:none!important;font-size:11px;font-weight:650;transition:background .18s ease,color .18s ease,transform .18s ease; }
.lw-sidebar-link:hover { background:#F7F9F4;color:#4E8736;transform:translateX(-2px); }
.lw-sidebar-link.is-active { background:#EDF5E8;color:#438D2C;font-weight:850; }
.lw-sidebar-link-icon { width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;border-radius:9px;background:#F1F5ED;color:#6C9E53;font-size:17px; }
.lw-sidebar-link.is-active .lw-sidebar-link-icon { background:#DDEDD3;color:#438D2C; }
.lw-sidebar-link-indicator { position:absolute;inset-inline-start:0;width:3px;height:19px;border-radius:4px;background:#66B83F; }
.lw-sidebar-link.is-disabled { cursor:default;opacity:.64; }
.lw-sidebar-link.is-disabled:hover { transform:none;background:transparent;color:#677263; }
.lw-sidebar-link small { margin-inline-start:auto;padding:3px 6px;border-radius:6px;background:#F4F4EF;color:#9A9D91;font-size:8px;white-space:nowrap; }
.lw-sidebar-bottom { display:flex;align-items:center;gap:10px;margin-top:auto;padding:16px 4px 2px;border-top:1px solid #EEF1EB;min-width:0; }
.lw-sidebar-user-avatar { width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;border-radius:12px;background:#E8F2E1;color:#548D3C;font-size:14px;font-weight:900; }
.lw-sidebar-user-copy { min-width:0; }
.lw-sidebar-user-copy strong,.lw-sidebar-user-copy small { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.lw-sidebar-user-copy strong { color:#405043;font-size:10px; }
.lw-sidebar-user-copy small { margin-top:3px;color:#9AA194;font-size:9px;direction:ltr;text-align:right; }

.lw-dashboard-main { min-width:0;direction:rtl;display:flex;flex-direction:column;gap:19px; }
.lw-mobile-topbar { display:none; }
.lw-dashboard-topline { display:flex;align-items:center;justify-content:space-between;gap:18px;padding:4px 2px 3px; }
.lw-dashboard-eyebrow,.lw-panel-kicker { display:block;color:#7EA968;font-size:9px;font-weight:900;letter-spacing:.9px; }
.lw-dashboard-topline h1 { margin:6px 0 4px;color:#26382B;font-size:clamp(22px,2.5vw,30px);font-weight:900;line-height:1.55; }
.lw-dashboard-topline p { margin:0;color:#8A9386;font-size:11px;line-height:1.9; }
.lw-topline-actions { display:flex;align-items:center;gap:9px; }
.lw-topline-workspaces { width:40px;height:40px;display:grid;place-items:center;border:1px solid #E4EBDD;border-radius:12px;background:#fff;color:#5B9142!important;text-decoration:none!important;font-size:19px; }

.lw-hero-card { position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:205px;padding:27px 31px;overflow:hidden;border:1px solid #DDEBD5;border-radius:21px;background:linear-gradient(112deg,#F2F8ED 0%,#E7F3E2 56%,#DDF0E4 100%); }
.lw-hero-card::after { content:"";position:absolute;width:340px;height:340px;inset-inline-start:-110px;top:-205px;border:1px solid rgba(103,163,77,.13);border-radius:50%; }
.lw-hero-content { position:relative;z-index:2;min-width:0;max-width:75%; }
.lw-hero-kicker { color:#6F9F58;font-size:9px;font-weight:900; }
.lw-hero-content h2 { margin:8px 0 4px;color:#2D4031;font-size:clamp(17px,2vw,22px);font-weight:900;line-height:1.8;overflow-wrap:anywhere; }
.lw-hero-content > p { margin:0;color:#78916E;font-size:10px;font-weight:750; }
.lw-hero-meta { display:flex;flex-wrap:wrap;gap:24px;margin-top:21px; }
.lw-hero-meta span { display:flex;flex-direction:column;gap:5px; }
.lw-hero-meta small { color:#899783;font-size:9px; }
.lw-hero-meta strong { color:#405640;font-size:10px; }
.lw-hero-art { position:relative;width:165px;height:150px;flex:0 0 165px;display:grid;place-items:center; }
.lw-hero-logo { position:relative;z-index:2;width:78px;height:78px;display:grid;place-items:center;border:8px solid rgba(255,255,255,.55);border-radius:25px;background:#68B947;color:#fff;font-size:22px;font-weight:900;direction:ltr;box-shadow:0 14px 28px rgba(71,133,48,.2);transform:rotate(-7deg); }
.lw-hero-orbit { position:absolute;border:1px solid rgba(103,163,77,.24);border-radius:50%; }
.lw-orbit-one { width:130px;height:130px; }
.lw-orbit-two { width:160px;height:160px;border-style:dashed; }
.lw-hero-spark { position:absolute;color:#86B66A;font-size:18px; }
.lw-spark-one { top:7px;right:13px; }.lw-spark-two { bottom:9px;left:12px;font-size:22px; }

.lw-stat-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px; }
.lw-stat-card { position:relative;display:flex;align-items:center;gap:13px;min-width:0;min-height:104px;padding:17px 16px;overflow:hidden;border:1px solid #E9EEE5;border-radius:16px;background:#fff;box-shadow:0 6px 20px rgba(38,56,43,.025); }
.lw-stat-icon { width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;border-radius:13px;font-size:20px; }
.lw-stat-icon-green { background:#EFF6E9;color:#609B43; }.lw-stat-icon-mint { background:#E8F5EF;color:#579A7A; }.lw-stat-icon-cream { background:#F7F4E9;color:#A18C4E; }
.lw-stat-copy { position:relative;z-index:1;min-width:0; }
.lw-stat-copy span { display:block;color:#899286;font-size:10px; }
.lw-stat-copy strong { display:block;margin:4px 0;color:#344238;font-size:21px;font-weight:900;line-height:1.2; }
.lw-stat-copy small { display:block;color:#A0A69B;font-size:8px;line-height:1.6; }
.lw-stat-decoration { position:absolute;bottom:-12px;left:8px;color:rgba(115,151,96,.07);font-size:45px;font-weight:900;direction:ltr; }

.lw-analytics-grid { display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:14px;align-items:stretch; }
.lw-panel { min-width:0;padding:21px 22px;border:1px solid #E9EEE5;border-radius:18px;background:#fff;box-shadow:0 7px 23px rgba(38,56,43,.027); }
.lw-panel-heading { display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px; }
.lw-panel-heading h2 { margin:5px 0 4px;color:#344238;font-size:14px;font-weight:900; }
.lw-panel-heading p { margin:0;color:#9AA194;font-size:9px;line-height:1.8; }
.lw-panel-kicker { font-size:8px; }
.lw-panel-heading-icon { width:33px;height:33px;flex:0 0 33px;display:grid;place-items:center;border-radius:10px;background:#F1F6EC;color:#659D4A;font-size:19px; }
.lw-chart-layout { display:flex;align-items:center;justify-content:center;gap:clamp(18px,4vw,42px);min-height:155px; }
.lw-donut-wrap { display:grid;place-items:center;flex:0 0 145px; }
.lw-donut-chart { width:142px;height:142px;display:grid;place-items:center;border-radius:50%;position:relative; }
.lw-donut-hole { width:91px;height:91px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #EEF1EA;border-radius:50%;background:#fff;box-shadow:0 4px 14px rgba(37,54,38,.05); }
.lw-donut-hole strong { color:#344238;font-size:23px;font-weight:900;line-height:1.2; }
.lw-donut-hole span { margin-top:4px;color:#929B8E;font-size:8px; }
.lw-chart-legend { flex:1;min-width:0;display:flex;flex-direction:column;gap:11px; }
.lw-legend-row { display:grid;grid-template-columns:9px minmax(0,1fr) auto auto;align-items:center;gap:8px; }
.lw-legend-dot { width:8px;height:8px;border-radius:3px; }
.lw-legend-name { overflow:hidden;color:#707B6E;font-size:9px;text-overflow:ellipsis;white-space:nowrap; }
.lw-legend-row strong { color:#405043;font-size:10px; }
.lw-legend-row small { min-width:34px;color:#9BA396;font-size:8px;text-align:left;direction:ltr; }
.lw-chart-empty { display:flex;align-items:center;gap:9px;color:#9BA396; }
.lw-chart-empty span { color:#78A964;font-size:20px; }
.lw-chart-empty p { margin:0;font-size:9px;line-height:1.9; }
.lw-chart-footnote { display:flex;align-items:center;gap:7px;margin-top:13px;padding-top:12px;border-top:1px solid #F0F2ED;color:#A0A69B;font-size:8px;line-height:1.8; }
.lw-footnote-dot { width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#73B653; }

.lw-quick-list { display:flex;flex-direction:column;gap:7px; }
.lw-quick-item { display:flex;align-items:center;gap:10px;min-width:0;padding:8px 9px;border:1px solid transparent;border-radius:11px;background:#FAFBF8; }
.lw-quick-item.is-current { border-color:#E2EDD9;background:#F6FAF2; }
.lw-quick-icon { width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:10px;background:#EDF4E8;color:#659B4B;font-size:17px; }
.lw-quick-item > span:nth-child(2) { min-width:0;flex:1; }
.lw-quick-item strong,.lw-quick-item small { display:block; }
.lw-quick-item strong { color:#4A584A;font-size:9px; }
.lw-quick-item small { margin-top:3px;color:#A0A69B;font-size:8px; }
.lw-quick-item > b { color:#83A876;font-size:9px; }

.lw-details-panel { padding:20px 22px; }
.lw-details-badge { display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #E6EFE0;border-radius:20px;background:#F8FBF6;color:#6C9560;font-size:8px;white-space:nowrap; }
.lw-details-badge i { display:inline-block;width:6px;height:6px; }
.lw-details-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 22px;margin:0; }
.lw-details-grid div { min-width:0;padding-top:12px;border-top:1px solid #F0F2ED; }
.lw-details-grid dt { margin-bottom:6px;color:#9AA194;font-size:9px; }
.lw-details-grid dd { margin:0;color:#455346;font-size:10px;font-weight:800;line-height:1.8;overflow-wrap:anywhere; }
.lw-dashboard-footer { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px;color:#A0A69B;font-size:8px; }
.lw-dashboard-back-link { display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid #E2EBDD;border-radius:10px;background:#fff;color:#5B9142!important;text-decoration:none!important;font-size:9px;font-weight:800; }
.lw-dashboard-back-link:hover { background:#F5F9F1; }

.lw-sidebar-backdrop { display:none; }
body.lw-sidebar-open { overflow:hidden; }

@media (max-width:1100px) {
    .lw-dashboard-shell { grid-template-columns:230px minmax(0,1fr);gap:17px; }
    .lw-sidebar { padding-inline:12px; }
    .lw-hero-card { padding:23px; }
    .lw-analytics-grid { grid-template-columns:minmax(0,1fr); }
    .lw-chart-layout { justify-content:flex-start; }
}
@media (max-width:900px) {
    .lw-dashboard-page { padding:18px 15px 42px; }
    .lw-dashboard-shell { display:block;direction:rtl; }
    .lw-sidebar { position:fixed;top:0;bottom:0;right:0;width:min(300px,86vw);height:100dvh;min-height:0;overflow-y:auto;border-radius:0 0 0 20px;transform:translateX(105%);transition:transform .25s ease;z-index:120;padding:19px 15px 14px;box-shadow:-15px 0 45px rgba(28,43,30,.13); }
    .lw-sidebar.is-open { transform:translateX(0); }
    .lw-sidebar-close { display:block; }
    .lw-sidebar-backdrop { position:fixed;inset:0;z-index:110;display:block;visibility:hidden;opacity:0;border:0;background:rgba(28,39,29,.34);transition:opacity .2s ease,visibility .2s ease; }
    .lw-sidebar-backdrop.is-visible { visibility:visible;opacity:1; }
    .lw-mobile-topbar { display:flex;align-items:center;gap:12px;min-height:48px;margin-bottom:12px; }
    .lw-sidebar-toggle { width:39px;height:39px;flex:0 0 39px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #E5ECDF;border-radius:12px;background:#fff;cursor:pointer; }
    .lw-sidebar-toggle span { width:16px;height:2px;border-radius:2px;background:#5F9148; }
    .lw-mobile-topbar-title { flex:1;color:#52624F;font-size:11px;font-weight:800; }
    .lw-mobile-topbar-mark { width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#66B83F;color:white;font-size:10px;font-weight:900;direction:ltr; }
    .lw-dashboard-topline { padding:0 1px 5px; }
}
@media (max-width:600px) {
    .lw-dashboard-page { padding:12px 11px 30px; }
    .lw-dashboard-main { gap:13px; }
    .lw-dashboard-topline { align-items:flex-start; }
    .lw-dashboard-topline h1 { font-size:21px; }
    .lw-dashboard-topline p { max-width:260px;font-size:9px; }
    .lw-topline-actions { gap:5px; }
    .lw-topline-workspaces { width:34px;height:34px; }
    .lw-hero-card { min-height:165px;padding:18px 16px;border-radius:17px; }
    .lw-hero-content { max-width:100%; }
    .lw-hero-content h2 { font-size:15px; }
    .lw-hero-art { width:80px;height:100px;flex-basis:80px; }
    .lw-hero-logo { width:53px;height:53px;border-width:5px;border-radius:18px;font-size:15px; }
    .lw-orbit-one { width:75px;height:75px; }.lw-orbit-two { width:95px;height:95px; }
    .lw-hero-spark { font-size:12px; }
    .lw-hero-meta { gap:15px;margin-top:14px; }
    .lw-stat-grid { grid-template-columns:1fr;gap:8px; }
    .lw-stat-card { min-height:76px;padding:11px 13px; }
    .lw-stat-icon { width:37px;height:37px;flex-basis:37px; }
    .lw-stat-copy strong { font-size:18px; }
    .lw-panel { padding:16px 14px;border-radius:15px; }
    .lw-panel-heading { margin-bottom:13px; }
    .lw-chart-layout { gap:15px;min-height:125px; }
    .lw-donut-wrap { flex-basis:112px; }
    .lw-donut-chart { width:110px;height:110px; }
    .lw-donut-hole { width:72px;height:72px; }
    .lw-donut-hole strong { font-size:19px; }
    .lw-chart-legend { gap:9px; }
    .lw-legend-row { gap:6px; }
    .lw-legend-name { font-size:8px; }
    .lw-details-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 13px; }
    .lw-dashboard-footer { align-items:flex-start;flex-direction:column; }
}
@media (max-width:360px) {
    .lw-dashboard-page { padding-inline:8px; }
    .lw-dashboard-topline { gap:7px; }
    .lw-dashboard-topline h1 { font-size:18px; }
    .lw-dashboard-topline p { font-size:8px; }
    .lw-topline-actions .lw-workspace-switcher-summary { max-width:112px;min-width:0;padding:4px; }
    .lw-topline-actions .lw-switcher-current strong { max-width:55px;font-size:8px; }
    .lw-topline-actions .lw-switcher-symbol { width:26px;height:26px;flex-basis:26px; }
    .lw-hero-art { display:none; }
    .lw-hero-content { max-width:100%; }
    .lw-chart-layout { flex-direction:column;align-items:center; }
    .lw-chart-legend { width:100%; }
    .lw-details-grid { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
    .lw-dashboard-page *, .lw-dashboard-page *::before, .lw-dashboard-page *::after { scroll-behavior:auto!important;transition:none!important;animation:none!important; }
}
