/* ===== עמוד הצ'אט - מורה AI ===== */

/* The global `body { min-height: 100vh }` is taller than the visible viewport
   on mobile (100vh > 100dvh with the address bar), leaving an empty scrollable
   strip below the chat. Pin the chat page to the real viewport so there is no
   page scroll — only the messages area scrolls, via its own overflow. */
html, body {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.chat-main {
  padding-top: var(--header-height);
  height: 100vh; /* fallback for browsers without dvh */
  height: 100dvh; /* avoids iOS Safari cutting off the input bar behind the address bar */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
}

.chat-shell {
  flex: 1;
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 16px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 16px clamp(12px, 3vw, 28px) 16px;
  min-height: 0;
}

/* ===== סיידבר ===== */

.chat-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-sm);
}

.sidebar-section {
  padding: 16px 0;
}

.sidebar-section:first-child {
  padding-top: 0;
}

.sidebar-section + .sidebar-section {
  border-top: 1px solid var(--color-border-soft);
}

.ai-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-text {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.sidebar-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.topic-chip {
  display: block;
  width: 100%;
  text-align: right;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text);
  font-size: 0.85rem;
  margin-bottom: 7px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
  line-height: 1.4;
}

.topic-chip:last-child {
  margin-bottom: 0;
}

.topic-chip:hover {
  background: rgba(59, 130, 246, 0.07);
  border-color: var(--color-primary-light);
  transform: translateX(-2px);
}

.topic-chip:active {
  transform: scale(0.98);
}

.topic-chip--action {
  text-align: center;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.2);
}

.topic-chip--action:hover {
  background: rgba(59, 130, 246, 0.12);
  transform: none;
}

/* ===== ספריית חומרי לימוד ===== */

.materials-hint {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.materials-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.material-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 6px;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  font-size: 0.8rem;
}

.material-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.material-delete {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding: 2px 5px;
  border-radius: 5px;
  cursor: pointer;
}

.material-delete:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.materials-upload-btn {
  display: block;
  cursor: pointer;
}

.materials-upload-btn--disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Keep the file input focusable/keyboard-activatable (Enter/Space opens the
   picker) instead of display:none which drops it from the tab order. */
.visually-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.materials-upload-btn:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.material-status {
  font-size: 0.76rem;
  color: #15803d;
  margin-top: 8px;
  line-height: 1.5;
}

.material-status--error {
  color: #dc2626;
}

/* ===== פאנל הצ'אט ===== */

.chat-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.chat-panel-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-surface-2);
}

.chat-ai-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-ai-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.chat-ai-name {
  font-weight: 700;
  font-size: 1rem;
}

.chat-ai-status {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-ai-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  flex-shrink: 0;
}

/* ===== כיתה: אווטאר + לוח ===== */

.classroom {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-soft);
  background: linear-gradient(160deg, #f0f6ff 0%, var(--color-surface) 100%);
}

.teacher-avatar {
  --track-color: #2563eb;
  flex-shrink: 0;
  width: 150px;
  height: 230px;
  position: relative;
}

.avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-surface-2);
  border: 3px solid rgba(37, 99, 235, 0.45);
  border-color: color-mix(in srgb, var(--track-color) 45%, transparent);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.25), 0 2px 8px rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--track-color) 30%, transparent), 0 2px 8px rgba(15, 23, 42, 0.12);
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform-origin: center 30%;
}

.avatar-frame-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -50px 40px -30px rgba(37, 99, 235, 0.35);
  box-shadow: inset 0 -50px 40px -30px color-mix(in srgb, var(--track-color) 40%, transparent);
}

.avatar-status-dot {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid var(--color-surface);
}

/* מצב מנוחה — "נשימה" עדינה, כמו אדם חי שעומד מולך */
.avatar--idle .avatar-photo {
  animation: avatar-photo-breathe 4.2s ease-in-out infinite;
}

@keyframes avatar-photo-breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.03) translateY(-2px); }
}

/* מצב דיבור — תזוזה קלה מהירה יותר + נקודת סטטוס מהבהבת */
.avatar--talking .avatar-photo {
  animation: avatar-photo-talk 1.1s ease-in-out infinite;
}
.avatar--talking .avatar-status-dot {
  animation: avatar-dot-blink 0.6s ease-in-out infinite;
}

@keyframes avatar-photo-talk {
  0%, 100% { transform: scale(1) translateY(0); filter: brightness(1); }
  50% { transform: scale(1.045) translateY(-3px); filter: brightness(1.04); }
}

@keyframes avatar-dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar--idle .avatar-photo,
  .avatar--talking .avatar-photo,
  .avatar--talking .avatar-status-dot {
    animation: none;
  }
}

/* ===== לוח ===== */

.whiteboard {
  flex: 1;
  background: #fffef8;
  border: 5px solid #d4a843;
  border-radius: 12px;
  padding: 14px 18px;
  min-height: 110px;
  max-height: 190px;
  overflow-y: auto;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: max-height 0.25s ease;
}

.whiteboard-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a0765a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.whiteboard-content {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text);
}

.whiteboard-placeholder {
  color: var(--color-text-muted);
  font-style: italic;
  opacity: 0.7;
}

.whiteboard-content p {
  margin-bottom: 8px;
}

.whiteboard-content ul,
.whiteboard-content ol {
  margin: 4px 0 8px;
  padding-inline-start: 22px;
}

.whiteboard-content strong {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.whiteboard-content code {
  background: rgba(59, 130, 246, 0.09);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'Rubik', sans-serif;
  font-size: 0.87em;
  direction: rtl;
  display: inline-block;
  color: var(--color-primary-dark);
}

.whiteboard-content pre {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
  overflow-x: auto;
  font-family: 'Rubik', sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  border-right: 3px solid var(--color-primary);
  direction: ltr;
  text-align: left;
}

/* Whiteboard formula lines */
.wb-line {
  padding: 4px 0;
  font-size: 1rem;
  line-height: 1.9;
  text-align: center;
  direction: ltr;
}

.wb-formula {
  display: inline-block;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.12rem;
  font-style: italic;
  color: #1a2744;
  letter-spacing: 0.03em;
  padding: 1px 8px;
  background: rgba(59,130,246,0.07);
  border-radius: 6px;
}

.whiteboard-content .katex { font-size: 1.1rem; }
.whiteboard-content .katex-display { margin: 6px 0; }

.whiteboard-writing {
  display: block;
  overflow: hidden;
  white-space: normal;
  clip-path: inset(0 0 0 100%);
  animation: whiteboard-reveal linear forwards;
  animation-duration: var(--reveal-duration, 1.2s);
}

@keyframes whiteboard-reveal {
  to { clip-path: inset(0 0 0 0); }
}

@media (max-width: 860px) {
  .classroom {
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
  }

  .teacher-avatar {
    width: 100px;
    height: 150px;
  }

  .whiteboard {
    width: 100%;
    max-height: 130px;
  }
}

/* ===== הודעות ===== */

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, #f0f4fb 0%, #eef2f9 100%);
}

/* ASCII diagrams the teacher draws (circuits, free-body diagrams) */
.chat-code {
  font-family: "Consolas", "Courier New", monospace;
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px 14px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre;
  direction: ltr;
  text-align: left;
  margin: 6px 0;
}

.message {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.7;
  word-break: break-word;
}

.message--user {
  align-self: flex-start;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35), 0 1px 3px rgba(37, 99, 235, 0.2);
}

.message--ai {
  align-self: flex-end;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--color-text);
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 12px rgba(13, 21, 38, 0.08), 0 1px 3px rgba(13, 21, 38, 0.04);
}

.message--error {
  align-self: center;
  max-width: 96%;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  text-align: center;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.message--ai p {
  margin-bottom: 8px;
}

.message--ai p:last-child {
  margin-bottom: 0;
}

.message--ai ul,
.message--ai ol {
  margin: 6px 0 10px;
  padding-inline-start: 22px;
}

.message--ai li {
  margin-bottom: 5px;
}

.message--ai strong {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.message--ai code {
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'Rubik', sans-serif;
  font-size: 0.88em;
  color: var(--color-primary-dark);
  font-weight: 500;
}

.message--ai pre {
  background: rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: 'Rubik', sans-serif;
  font-size: 0.87rem;
  line-height: 1.65;
  border-right: 3px solid var(--color-primary);
  direction: ltr;
  text-align: left;
  margin: 8px 0;
}

.message--ai pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  font-weight: normal;
}

/* ===== Onboarding ===== */

.onboarding-card {
  align-self: center;
  max-width: 92%;
  width: 100%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.onboarding-title {
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
}

.onboarding-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.onboarding-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.onboarding-chip {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}

.onboarding-chip:hover {
  border-color: var(--color-primary-light);
  background: rgba(59, 130, 246, 0.05);
}

.onboarding-chip.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.onboarding-start {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  transition: filter 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}

.onboarding-start:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.onboarding-start:not(:disabled):hover {
  filter: brightness(1.1);
}

.onboarding-hint {
  margin-top: 8px;
  font-size: 0.77rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ===== אינדיקטור הקלדה ===== */

.message--typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 16px 18px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ===== תיבת קלט ===== */

.chat-input-area {
  border-top: 1px solid var(--color-border-soft);
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: #ffffff;
  box-shadow: 0 -2px 12px rgba(13, 21, 38, 0.05);
}

.chat-input-area textarea {
  flex: 1;
  resize: none;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  max-height: 140px;
  min-height: 48px;
  line-height: 1.5;
  background: var(--color-surface-2);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chat-input-area textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.chat-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.chat-send-btn svg {
  transform: scaleX(-1);
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
}

.chat-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Image upload button */
.chat-upload-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  margin-bottom: 4px;
}
.chat-upload-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #eff6ff;
}

/* Image preview bar */
.image-preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #eff6ff;
  border-top: 1px solid #bfdbfe;
  font-size: 0.82rem;
  color: var(--color-primary);
}
.image-preview-bar img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
}
.image-preview-bar span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#image-clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 1rem;
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
}
#image-clear-btn:hover { color: #dc2626; background: #fee2e2; }

/* Image in chat message */
.message-image {
  max-width: 240px;
  max-height: 200px;
  border-radius: 10px;
  margin-bottom: 6px;
  display: block;
  cursor: pointer;
}

.chat-disclaimer {
  text-align: center;
  font-size: 0.74rem;
  color: var(--color-text-muted);
  padding: 0 16px 10px;
  background: var(--color-surface-2);
}

/* ===== רספונסיביות ===== */

@media (max-width: 860px) {
  .chat-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 12px;
  }

  .chat-sidebar {
    max-height: 120px;
    overflow: hidden;
  }

  .sidebar-text,
  .sidebar-title,
  .ai-card {
    display: none;
  }

  .sidebar-section + .sidebar-section {
    padding-top: 0;
    border-top: none;
  }

  .sidebar-section {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
  }

  .topic-chip {
    width: auto;
    margin-bottom: 0;
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  .message {
    max-width: 88%;
  }
}

@media (max-width: 480px) {
  .chat-sidebar {
    display: none;
  }

  .chat-main {
    width: 100%;
  }

  .chat-input-area {
    padding: 8px;
  }

  .chat-input-area textarea {
    font-size: 16px; /* >=16px prevents iOS Safari auto-zoom on focus */
  }

  .message {
    max-width: 95%;
    font-size: 0.88rem;
  }

  .chat-panel-header {
    padding: 8px 12px;
  }
}

/* ===== Action Bar ===== */
.chat-actions-bar {
  display: flex;
  gap: 6px;
  padding: 8px 16px 0;
  flex-wrap: wrap;
}

.chat-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.chat-action-btn:hover {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.4);
  color: #60a5fa;
}

/* ===== Message Actions (copy / download) ===== */
.message-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.15s;
}

.message--ai:hover .message-actions {
  opacity: 1;
}

.message-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.message-copy-btn:hover {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
}

@media (max-width: 600px) {
  .classroom {
    display: block;
    padding: 8px 12px 0;
  }

  .teacher-avatar {
    display: none;
  }

  .whiteboard {
    min-height: 0;
    max-height: 38px;
    padding: 10px 14px;
    overflow: hidden;
    transition: max-height 0.25s ease;
    cursor: pointer;
  }

  .whiteboard.wb-open {
    max-height: 45vh;
    overflow-y: auto;
  }

  .whiteboard-title {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .whiteboard-title::after {
    content: "הצג ▾";
    font-size: 0.68rem;
    color: var(--color-primary);
    text-transform: none;
    letter-spacing: 0;
  }

  .whiteboard.wb-open .whiteboard-title::after {
    content: "הסתר ▴";
  }

  .whiteboard.wb-open .whiteboard-title {
    margin-bottom: 8px;
  }
}
