/* ────────────────────────────────────────────────────────────────
 * Addlify Split-Pane Interactive Office Simulator Styles
 * Premium dark mode styling, glassmorphism taskpane, and mock Office
 * ──────────────────────────────────────────────────────────────── */

:root {
  --bg-dark: #0a0a0f;
  --panel-bg: rgba(255, 255, 255, 0.02);
  --border-light: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(168, 85, 247, 0.3);
  --text-dim: rgba(255, 255, 255, 0.6);
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --excel-green: #107c41;
  --excel-green-hover: #0d6835;
  --word-blue: #185abd;
  --success-green: #00e87a;
  --warning-yellow: #ffb400;
  --danger-red: #ef4444;
}

body.demo-page {
  background: var(--bg-dark);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  margin: 0;
  padding: 0;
  /* height fix (NU min-height): cu min-height, body-ul crește ca să încapă
     conținutul (ex. foaia Word de 900px → 1038px), depășește ecranul și
     overflow:hidden taie partea de jos fără scroll. height:100vh plafonează
     totul la ecran, iar scroll-ul intern (.word-doc-container / .right-taskpane)
     se activează corect. Pe mobil se relaxează în media query. */
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Forțează tema întunecată pe controalele native (popup-ul <select>,
     scrollbar-e, inputuri). Fără asta, Chrome/Windows randează lista
     dropdown-ului cu fundal alb nativ și ignoră background pe <option>,
     rezultând text alb pe alb = invizibil. */
  color-scheme: dark;
}

/* ══════════ TOP BAR ══════════ */
.demo-header {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  z-index: 100;
}

.demo-logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
}

.demo-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-3px);
}

.demo-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
}

.demo-logo span {
  color: var(--accent-purple);
}

.product-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 4px;
  border-radius: 30px;
  gap: 4px;
}

.prod-tab {
  background: transparent;
  color: var(--text-dim);
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prod-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.prod-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(59, 130, 246, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.demo-lang-btn {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s;
}

.demo-lang-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ══════════ DOCK LAYOUT ══════════ */
.demo-workspace {
  flex: 1;
  display: flex;
  overflow: hidden;
  height: calc(100vh - 65px);
  position: relative;
}

.left-office-pane {
  flex: 1.3;
  min-width: 0;
  background: #1e1e24;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.right-taskpane {
  flex: 0.8;
  background: rgba(10, 10, 15, 0.95);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-left: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
}

/* ══════════ MOCK OFFICE APPLICATION CHASSIS ══════════ */
.office-app-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-height: 0; /* anulează min-height:auto al flex-item-ului, altfel fereastra
                    crește până încape foaia Word de 840px și scroll-ul intern
                    nu se mai activează (conținutul e tăiat de overflow:hidden) */
}

.office-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.office-window-controls {
  display: flex;
  gap: 8px;
}

.win-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.win-dot.red { background: #ff5f56; }
.win-dot.yellow { background: #ffbd2e; }
.win-dot.green { background: #27c93f; }

/* ══════════ MOCK RIBBON ══════════ */
.office-ribbon-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0 12px;
}

.rib-tab {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 11.5px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.rib-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.03);
}

.rib-tab.active-excel {
  color: var(--excel-green);
  border-bottom-color: var(--excel-green);
  font-weight: 700;
}

.rib-tab.active-word {
  color: var(--word-blue);
  border-bottom-color: var(--word-blue);
  font-weight: 700;
}

.rib-tab.addlify-rib-tab {
  background: linear-gradient(0deg, rgba(168,85,247,0.1), transparent);
  color: #c084fc;
  font-weight: 700;
  border-bottom: 2px solid var(--accent-purple);
  text-shadow: 0 0 8px rgba(168,85,247,0.4);
}

/* Ribbon Controls Bar */
.office-ribbon-controls {
  background: rgba(255,255,255,0.01);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  overflow-x: auto;
}

.ribbon-group {
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding-right: 16px;
}

.ribbon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.ribbon-btn:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: rgba(255,255,255,0.05);
}

.ribbon-btn span {
  font-size: 16px;
}

.ribbon-btn-txt {
  font-size: 10px;
  font-weight: 500;
}

/* ══════════ EXCEL GRID SIMULATOR ══════════ */
.excel-grid-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0; /* permite scroll intern în loc să crească peste containerul flex */
  overflow: auto;
  background: #111116;
}

.excel-formula-bar {
  display: flex;
  align-items: center;
  background: #191920;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 4px 12px;
  gap: 12px;
  font-size: 11.5px;
}

.excel-cell-address {
  font-weight: bold;
  color: var(--excel-green);
  background: rgba(16, 124, 65, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

.excel-fx-icon {
  font-style: italic;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
}

.excel-formula-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-family: monospace;
}

.excel-grid-wrapper {
  flex: 1;
  display: grid;
  grid-template-columns: 40px repeat(8, 1fr);
  grid-auto-rows: 28px;
  overflow: auto;
  position: relative;
}

.excel-hdr {
  background: #1b1b22;
  border-right: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  font-family: monospace;
}

.excel-hdr.top-left-corner {
  background: #15151b;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
}

.excel-cell {
  background: #131318;
  border-right: 1px dotted rgba(255,255,255,0.04);
  border-bottom: 1px dotted rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
  position: relative;
  transition: background 0.15s;
}

.excel-cell[contenteditable="true"] {
  outline: none;
}

.excel-cell[contenteditable="true"]:focus {
  background: rgba(16, 124, 65, 0.05);
  border: 1px solid var(--excel-green) !important;
  box-shadow: inset 0 0 4px rgba(16,124,65,0.2);
  z-index: 2;
}

.excel-cell.align-right { justify-content: flex-end; }
.excel-cell.align-center { justify-content: center; }

.excel-cell.hdr-row {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.excel-cell.danger-highlight {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  font-weight: 700;
}

.excel-cell.warning-highlight {
  background: rgba(251, 191, 36, 0.12);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.25) !important;
}

.excel-cell.success-highlight {
  background: rgba(0, 232, 122, 0.12);
  color: #86efac;
  border: 1px solid rgba(0, 232, 122, 0.25) !important;
}

/* Active row highlight border */
.excel-grid-wrapper .active-selection {
  border: 2px solid var(--excel-green) !important;
  z-index: 5;
}

/* Bottom Sheet Tabs bar */
.excel-sheet-tabs {
  background: #17171e;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
}

.excel-sheet-btn {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: none;
  padding: 6px 12px;
  border-right: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.2s;
}

.excel-sheet-btn.active {
  background: #111116;
  color: var(--excel-green);
  font-weight: 700;
  border-top: 2px solid var(--excel-green);
}

/* ══════════ WORD DOCUMENT SIMULATOR ══════════ */
.word-doc-container {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0; /* permite scroll intern al foii Word (canvas 840px+) */
  overflow: auto;
  background: #25252b;
  align-items: center;
  padding: 30px 10px;
}

.word-canvas-sheet {
  background: #ffffff;
  color: #1a1a1a;
  width: 100%;
  max-width: 680px;
  min-height: 840px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-radius: 4px;
  padding: 50px;
  box-sizing: border-box;
  font-family: Georgia, serif;
  line-height: 1.5;
  font-size: 13.5px;
  position: relative;
  transition: all 0.3s;
}

.word-canvas-sheet.dark-mode-doc {
  background: #121214;
  color: #e5e7eb;
}

.word-header-letterhead {
  border-bottom: 2px solid var(--accent-purple);
  padding-bottom: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.letterhead-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent-purple);
  margin: 0;
}

.letterhead-subtitle {
  font-size: 11px;
  color: #71717a;
  margin: 4px 0 0 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.word-canvas-sheet h2 {
  font-size: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 6px;
  color: #3b0764;
  font-weight: 700;
  margin-top: 24px;
}
.word-canvas-sheet.dark-mode-doc h2 {
  color: #d8b4fe;
  border-bottom-color: rgba(255,255,255,0.1);
}

.word-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 12px;
}

.word-table th {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  padding: 8px;
  text-align: left;
  font-weight: 700;
  color: #581c87;
}

.word-canvas-sheet.dark-mode-doc .word-table th {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

.word-table td {
  border: 1px solid #f3e8ff;
  padding: 8px;
}

.word-canvas-sheet.dark-mode-doc .word-table td {
  border-color: rgba(255,255,255,0.06);
}

.word-placeholder-block {
  border: 2px dashed rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.02);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: #71717a;
  font-size: 12.5px;
  margin: 20px 0;
  font-style: italic;
}

/* togglable dark/light visual switch for paper */
.doc-style-switcher {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 50;
}

.doc-style-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  transition: all 0.3s;
}

.doc-style-btn:hover {
  background: rgba(255,255,255,0.1);
}

/* ══════════ TASKPANE GLASS SIDEBAR ══════════ */
.taskpane-header {
  border-bottom: 1px solid var(--border-light);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.taskpane-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.taskpane-brand span {
  color: var(--accent-purple);
}

.taskpane-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  background: rgba(0,232,122,0.08);
  border: 1px solid rgba(0,232,122,0.15);
  color: var(--success-green);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.taskpane-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.taskpane-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 13.5px;
  color: #fff;
  margin: 0 0 12px 0;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
}

.taskpane-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.taskpane-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.taskpane-select, .taskpane-input, .taskpane-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  outline: none;
  transition: all 0.3s;
}

.taskpane-select:focus, .taskpane-input:focus, .taskpane-textarea:focus {
  border-color: var(--accent-purple);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 8px rgba(168,85,247,0.2);
}

/* Lista nativă a dropdown-ului folosește fundal alb pe Windows → opțiunile
   moșteneau color:#fff (alb pe alb, invizibil). Forțăm fundal închis + text alb. */
.taskpane-select option {
  background: #1b1b22;
  color: #fff;
}

.taskpane-btn-action {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 4px 15px rgba(168,85,247,0.3);
}

.taskpane-btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168,85,247,0.45);
}

.taskpane-btn-action:active {
  transform: translateY(0);
}

.taskpane-results-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.4s ease;
}

/* ══════════ DYNAMIC SIMULATION WIDGETS ══════════ */

/* Dental Odontogram */
.odontogram-visual {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 16px 0;
  background: rgba(0,0,0,0.2);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.tooth-node {
  width: 32px;
  height: 42px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.3s;
}

.tooth-node.active-tooth-selected {
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--accent-purple);
  color: #fff;
}

.tooth-node.caries {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger-red);
  color: #fca5a5;
  animation: toothPulseDanger 1.5s infinite alternate;
}

.tooth-node.implant {
  background: rgba(0, 212, 170, 0.2);
  border-color: #00d4aa;
  color: #86efac;
  animation: toothPulseSuccess 1.5s infinite alternate;
}

.tooth-node.crown {
  background: rgba(255, 180, 0, 0.2);
  border-color: var(--warning-yellow);
  color: #fef08a;
  animation: toothPulseWarning 1.5s infinite alternate;
}

.tooth-node.missing {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.25);
}

@keyframes toothPulseDanger {
  from { box-shadow: 0 0 2px rgba(239, 68, 68, 0.4); }
  to { box-shadow: 0 0 10px rgba(239, 68, 68, 0.8); }
}
@keyframes toothPulseSuccess {
  from { box-shadow: 0 0 2px rgba(0, 212, 170, 0.4); }
  to { box-shadow: 0 0 10px rgba(0, 212, 170, 0.8); }
}
@keyframes toothPulseWarning {
  from { box-shadow: 0 0 2px rgba(255, 180, 0, 0.4); }
  to { box-shadow: 0 0 10px rgba(255, 180, 0, 0.8); }
}

/* Progress depletion bar */
.depletion-risk-container {
  margin: 8px 0;
}

.depletion-bar-outer {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 4px;
}

.depletion-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--warning-yellow), var(--danger-red));
  width: 0%;
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Badge Styling */
.badge-severe { background: rgba(239,68,68,0.15); border: 1px solid var(--danger-red); color: var(--danger-red); }
.badge-mod { background: rgba(251,191,36,0.12); border: 1px solid var(--warning-yellow); color: var(--warning-yellow); }
.badge-safe { background: rgba(0,232,122,0.12); border: 1px solid var(--success-green); color: var(--success-green); }
.badge-info { background: rgba(59,130,246,0.12); border: 1px solid var(--accent-blue); color: #93c5fd; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Daily Schedule Grid */
.pharm-schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.schedule-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
}

.schedule-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

/* EU Passport scan graphic */
.passport-nfc-card {
  background: linear-gradient(135deg, rgba(24, 90, 189, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(24, 90, 189, 0.3);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}

.passport-nfc-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  animation: nfcScanLine 2s infinite linear;
}

@keyframes nfcScanLine {
  0% { top: -2px; }
  100% { top: calc(100% + 2px); }
}

/* Somatic Trigger Points Body Chart CSS representation */
.somatic-map-canvas {
  width: 100%;
  height: 180px;
  background: #111116;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin: 12px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.somatic-silhouette {
  height: 90%;
  opacity: 0.25;
}

.somatic-hotspot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--danger-red);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--danger-red);
  cursor: pointer;
  animation: hotspotPulse 1.2s infinite;
}

@keyframes hotspotPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.3); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Spinner de încărcare (🔄) și puls pentru badge-urile de transmitere —
   folosite inline din demo.js (animation:spin / animation:pulse). */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ══════════ RESPONSIVE STACKING FOR MOBILE ══════════ */
@media (max-width: 1024px) {
  body.demo-page {
    height: auto;       /* pe mobil pagina curge natural, nu plafonată la ecran */
    overflow-y: auto;
  }
  .demo-workspace {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
  }
  .left-office-pane {
    flex: none;
    height: 480px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .right-taskpane {
    flex: none;
    height: auto;
    min-height: 500px;
  }
  .demo-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    text-align: center;
  }
  .demo-logo-section {
    justify-content: space-between;
  }
  .product-selector {
    justify-content: center;
    overflow-x: auto;
    white-space: nowrap;
  }
}
