/* ========================================================
   ZOOM ME WEBINAR - THEME STYLESHEET (ZOOM WORKPLACE LIGHT THEME)
   ======================================================== */

:root {
  /* DARK THEME (MẶC ĐỊNH TỐI CHUẨN ZOOM KINH ĐIỂN) */
  --zoom-bg: #111113;
  --zoom-dark-surface: #1a1a1d;
  --zoom-panel-bg: #232328;
  --zoom-bar-bg: #1c1c1f;
  --zoom-border: #333339;
  --zoom-border-subtle: #29292e;
  --zoom-blue: #0E71EB;
  --zoom-blue-hover: #1b7cf4;
  --zoom-red: #E02828;
  --zoom-red-hover: #f03e3e;
  --zoom-green: #2ecc71;
  --zoom-text-primary: #FFFFFF;
  --zoom-text-secondary: #9E9EA7;
  --zoom-text-muted: #6B6B76;
  --zoom-card-bg: #1a1a1e;
  --zoom-bubble-bg: rgba(255, 255, 255, 0.07);
  --zoom-btn-hover: rgba(255, 255, 255, 0.1);
  --zoom-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  --zoom-sidebar-width: 360px;
  --zoom-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* HỖ TRỢ CHUYỂN SANG LIGHT THEME NẾU BẤM NÚT */
[data-theme="light"] {
  --zoom-bg: #F4F5F7;
  --zoom-dark-surface: #FFFFFF;
  --zoom-panel-bg: #FFFFFF;
  --zoom-bar-bg: #FFFFFF;
  --zoom-border: #E2E4E8;
  --zoom-border-subtle: #EEEEF0;
  --zoom-blue: #0E71EB;
  --zoom-blue-hover: #1b7cf4;
  --zoom-red: #E02828;
  --zoom-red-hover: #f03e3e;
  --zoom-green: #10B981;
  --zoom-text-primary: #18191B;
  --zoom-text-secondary: #5C5E66;
  --zoom-text-muted: #8C8E99;
  --zoom-card-bg: #F9FAFB;
  --zoom-bubble-bg: #F0F2F5;
  --zoom-btn-hover: #F2F4F7;
  --zoom-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: var(--zoom-bg);
  color: var(--zoom-text-primary);
  font-family: var(--zoom-font);
  overflow: hidden;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* CONTAINER TỔNG THỂ (FULL MÀN HÌNH CHUẨN DI ĐỘNG & MÁY TÍNH) */
.zoom-app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background-color: var(--zoom-bg);
}

/* ========================================================
   TOP HEADER (SÁNG LIGHT THEME)
   ======================================================== */
.zoom-header {
  height: 50px;
  background-color: var(--zoom-bar-bg);
  border-bottom: 1px solid var(--zoom-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 20;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.zoom-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meeting-info-btn {
  background: var(--zoom-card-bg);
  border: 1px solid var(--zoom-border);
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #059669;
  transition: all 0.2s;
}

.meeting-info-btn:hover {
  background: var(--zoom-btn-hover);
  border-color: #059669;
}

.rec-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(224, 40, 40, 0.1);
  border: 1px solid rgba(224, 40, 40, 0.25);
  color: #d32f2f;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background-color: #e02828;
  border-radius: 50%;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.zoom-header-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meeting-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--zoom-text-primary);
  max-width: 480px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zoom-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-btn {
  background: var(--zoom-card-bg);
  border: 1px solid var(--zoom-border);
  color: var(--zoom-text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.view-btn:hover {
  background: var(--zoom-btn-hover);
  border-color: #cbd5e1;
}

.theme-toggle-btn {
  background: var(--zoom-card-bg);
  border: 1px solid var(--zoom-border);
  color: var(--zoom-text-primary);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
}

.theme-toggle-btn:hover {
  background: var(--zoom-btn-hover);
}

/* ========================================================
   MAIN STAGE / WEBINAR SCREEN
   ======================================================== */
.zoom-main-body {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
  background-color: #0b0c0e;
}

.zoom-stage-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #0a0b0d;
  overflow: hidden;
}

.speaker-screen-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

/* YouTube Iframe bọc chuẩn - ẨN 100% DẤU VẾT YOUTUBE */
.youtube-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-container iframe {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  border: none;
  /* Phóng to 138% để mép tiêu đề trên và logo More videos dưới phải bị đẩy ra ngoài vùng nhìn thấy */
  transform: scale(1.38);
  transform-origin: center center;
  pointer-events: none !important; /* Chặn hoàn toàn click vào iframe YouTube */
}

/* LỚP KÍNH CHẮN TRONG SUỐT ĐÈ LÊN VIDEO (CHỐNG DỪNG, CHỐNG CLICK, CHỐNG CHUỘT PHẢI) */
.video-click-blocker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: default !important;
  background: transparent;
  user-select: none;
}

/* Active Speaker Border (Đã tắt vĩnh viễn) */
.active-speaker-glow {
  display: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Speaker Badge (Tên Diễn giả góc dưới trái - Phong cách sang trọng) */
.speaker-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .speaker-badge {
  background: rgba(20, 20, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.audio-indicator {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.audio-bar {
  width: 3px;
  background-color: #10b981;
  border-radius: 1px;
  animation: soundBars 1s ease-in-out infinite alternate;
}

.audio-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.audio-bar:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.audio-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.audio-bar:nth-child(4) { height: 14px; animation-delay: 0.4s; }

@keyframes soundBars {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

/* FLOATING DRAGGABLE CAMERA (DI CHUYỂN TỰ DO) */
.floating-participants-strip {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 40;
  pointer-events: none; /* Cho phép sự kiện xuyên qua nếu không trúng card */
}

.user-thumbnail-card {
  width: 210px;
  height: 128px;
  background: #2a2b30;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s;
}

.user-thumbnail-card:hover {
  border-color: var(--zoom-blue);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.user-thumbnail-card.is-dragging {
  cursor: grabbing !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7) !important;
  transform: scale(1.04);
  border-color: #27ae60;
  z-index: 100 !important;
}

/* Thanh Drag Bar ở đầu camera thumbnail */
.camera-drag-handle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  z-index: 15;
  cursor: grab;
}

.drag-grip-dot {
  width: 3px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

/* Cụm nút điều khiển camera (Thu nhỏ & Ẩn) */
.thumbnail-top-controls {
  position: absolute;
  top: 6px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 60;
  pointer-events: auto;
}

.thumbnail-control-btn {
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.15s ease;
  padding: 0;
}

.thumbnail-control-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.thumbnail-close-btn:hover {
  background: #EF4444 !important;
  border-color: #EF4444 !important;
}

.thumbnail-min-btn:hover {
  background: #3B82F6 !important;
  border-color: #3B82F6 !important;
}

/* Chế độ Camera Thu Nhỏ (Minimized) */
.user-thumbnail-card.is-minimized {
  width: 100px !important;
  height: 60px !important;
  min-height: unset !important;
  border-radius: 8px !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
}

.user-thumbnail-card.is-minimized .camera-drag-handle {
  display: none !important;
}

.user-thumbnail-card.is-minimized .thumbnail-name-tag {
  display: none !important;
}

.user-thumbnail-card.is-minimized .avatar-placeholder {
  font-size: 11px !important;
  width: 32px !important;
  height: 32px !important;
}

.user-thumbnail-card.is-minimized .thumbnail-top-controls {
  top: 3px;
  right: 4px;
  gap: 3px;
}

.user-thumbnail-card.is-minimized .thumbnail-control-btn {
  width: 18px;
  height: 18px;
}

/* Nút hiện lại Self Video khi đã ẩn */
.restore-thumb-btn {
  position: absolute;
  top: 64px;
  right: 14px;
  z-index: 45;
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
}

.restore-thumb-btn:hover {
  background: rgba(39, 39, 42, 0.95);
  border-color: #22C55E;
}

.restore-thumb-btn.hidden {
  display: none !important;
}

.floating-participants-strip.hidden {
  display: none !important;
}

.user-thumbnail-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Gương camera */
  pointer-events: none;
}

.user-thumbnail-card .avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0E71EB;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  pointer-events: none;
}

.user-thumbnail-card .thumbnail-name-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 15;
  pointer-events: none;
}

/* ========================================================
   CONTEXT MENU CHUỘT PHẢI (RIGHT CLICK MENU - RENAME)
   ======================================================== */
.zoom-context-menu {
  position: fixed;
  background: var(--zoom-panel-bg);
  border: 1px solid var(--zoom-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 170px;
  padding: 5px 0;
  z-index: 200;
  animation: contextFade 0.15s ease-out;
  display: flex;
  flex-direction: column;
}

.zoom-context-menu.hidden {
  display: none;
}

@keyframes contextFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--zoom-text-primary);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.context-menu-item:hover {
  background: var(--zoom-btn-hover);
  color: var(--zoom-blue);
}

.context-menu-separator {
  height: 1px;
  background: var(--zoom-border-subtle);
  margin: 4px 0;
}

/* ========================================================
   RIGHT SIDEBAR (PARTICIPANTS & CHAT - LIGHT THEME)
   ======================================================== */
.zoom-sidebar {
  width: var(--zoom-sidebar-width);
  background: var(--zoom-panel-bg);
  border-left: 1px solid var(--zoom-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 18;
  transition: transform 0.25s ease;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.04);
}

.zoom-sidebar.hidden {
  display: none;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--zoom-border);
  background: var(--zoom-card-bg);
}

.sidebar-tab-btn {
  flex: 1;
  padding: 13px 10px;
  background: transparent;
  border: none;
  color: var(--zoom-text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.2s;
  border-bottom: 2px solid transparent;
}

.sidebar-tab-btn.active {
  color: var(--zoom-blue);
  border-bottom-color: var(--zoom-blue);
  background: var(--zoom-panel-bg);
}

.sidebar-tab-btn .badge-pill {
  background: rgba(0, 0, 0, 0.08);
  color: var(--zoom-text-secondary);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

[data-theme="dark"] .sidebar-tab-btn .badge-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sidebar-tab-btn.active .badge-pill {
  background: var(--zoom-blue);
  color: #fff;
}

.sidebar-close-btn {
  background: transparent;
  border: none;
  color: var(--zoom-text-secondary);
  padding: 0 14px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}

.sidebar-close-btn:hover {
  color: var(--zoom-text-primary);
}

/* TAB: PARTICIPANTS */
.sidebar-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--zoom-panel-bg);
}

.participants-search-box {
  padding: 10px 14px;
  border-bottom: 1px solid var(--zoom-border-subtle);
  background: var(--zoom-panel-bg);
}

.search-input-wrapper {
  background: var(--zoom-card-bg);
  border: 1px solid var(--zoom-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 7px 12px;
  gap: 8px;
}

.search-input-wrapper:focus-within {
  border-color: var(--zoom-blue);
  background: var(--zoom-panel-bg);
}

.search-input-wrapper input {
  background: transparent;
  border: none;
  color: var(--zoom-text-primary);
  font-size: 13px;
  outline: none;
  width: 100%;
}

.search-input-wrapper input::placeholder {
  color: var(--zoom-text-muted);
}

.participants-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  background: var(--zoom-panel-bg);
}

.participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  transition: background 0.15s;
  border-bottom: 1px solid var(--zoom-border-subtle);
}

.participant-item:hover {
  background: var(--zoom-btn-hover);
}

.participant-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.participant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.participant-name-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.participant-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--zoom-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participant-tag {
  font-size: 11px;
  color: var(--zoom-text-secondary);
}

.participant-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--zoom-text-muted);
}

/* NÚT BA CHẤM TRONG DANH SÁCH PARTICIPANTS (TRẮNG NHẸ, KHÔNG NỀN TRẮNG) */
.participant-more-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.45) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.participant-more-btn:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.participant-more-btn svg {
  display: block;
}

/* TAB: CHAT */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--zoom-panel-bg);
}

.chat-bubble-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-sender-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-sender-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--zoom-blue);
}

.chat-sender-name.host {
  color: #d97706; /* Màu vàng đậm Host trên nền sáng */
}

.chat-sender-name.me {
  color: #059669; /* Xanh ngọc Bạn trên nền sáng */
}

.chat-time {
  font-size: 10px;
  color: var(--zoom-text-muted);
}

.chat-target-to {
  font-size: 11px;
  color: var(--zoom-text-secondary);
}

.chat-bubble-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--zoom-text-primary);
  background: var(--zoom-bubble-bg);
  border: 1px solid var(--zoom-border-subtle);
  padding: 9px 13px;
  border-radius: 10px;
  word-break: break-word;
  user-select: text;
}

.chat-input-panel {
  border-top: 1px solid var(--zoom-border);
  padding: 12px 16px;
  background: var(--zoom-card-bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-target-selector {
  font-size: 12px;
  color: var(--zoom-text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-input-box {
  display: flex;
  align-items: center;
  background: var(--zoom-panel-bg);
  border: 1px solid var(--zoom-border);
  border-radius: 8px;
  padding: 6px 10px;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.chat-input-box:focus-within {
  border-color: var(--zoom-blue);
  box-shadow: 0 0 0 3px rgba(14, 113, 235, 0.15);
}

.chat-input-box textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--zoom-text-primary);
  font-family: inherit;
  font-size: 13px;
  resize: none;
  height: 36px;
  line-height: 18px;
  user-select: text;
}

.chat-send-btn {
  background: var(--zoom-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--zoom-blue-hover);
}

/* ========================================================
   BOTTOM CONTROL TOOLBAR (LIGHT THEME)
   ======================================================== */
.zoom-toolbar {
  height: 74px;
  background: var(--zoom-bar-bg);
  border-top: 1px solid var(--zoom-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 25;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.toolbar-group-left,
.toolbar-group-center,
.toolbar-group-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--zoom-text-primary);
  min-width: 66px;
  height: 58px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  padding: 4px 6px;
  gap: 4px;
}

.toolbar-btn:hover {
  background: var(--zoom-btn-hover);
}

.toolbar-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--zoom-text-secondary);
  transition: fill 0.15s;
}

.toolbar-btn:hover svg {
  fill: var(--zoom-text-primary);
}

.toolbar-btn span.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.2px;
  white-space: nowrap;
  color: var(--zoom-text-secondary);
}

.toolbar-btn:hover span.label {
  color: var(--zoom-text-primary);
}

.toolbar-btn.active-green svg {
  fill: var(--zoom-green);
}

.toolbar-btn.danger svg {
  fill: var(--zoom-red);
}

.toolbar-btn .badge-count {
  position: absolute;
  top: 4px;
  right: 12px;
  background: var(--zoom-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
}

/* Share screen button đặc trưng màu xanh lá */
.share-screen-btn svg {
  fill: #10b981 !important;
}

/* Nút Leave đỏ góc phải */
.leave-btn {
  background: var(--zoom-red);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.leave-btn:hover {
  background: var(--zoom-red-hover);
}

/* ========================================================
   MODALS & POPUPS (LIGHT THEME)
   ======================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.hidden {
  display: none;
}

.zoom-modal-card {
  background: var(--zoom-panel-bg);
  border: 1px solid var(--zoom-border);
  border-radius: 14px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  animation: modalScale 0.2s ease-out;
  color: var(--zoom-text-primary);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--zoom-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--zoom-text-primary);
}

.modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: var(--zoom-text-secondary);
}

.audio-join-box {
  background: var(--zoom-card-bg);
  border: 1px solid var(--zoom-border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-primary-blue {
  background: var(--zoom-blue);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
}

.btn-primary-blue:hover {
  background: var(--zoom-blue-hover);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--zoom-border-subtle);
}

.info-row .label {
  color: var(--zoom-text-secondary);
}

.info-row .val {
  font-weight: 700;
  color: var(--zoom-text-primary);
  user-select: text;
}

.copy-link-btn {
  background: var(--zoom-card-bg);
  border: 1px solid var(--zoom-border);
  color: var(--zoom-text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
  margin-top: 6px;
}

.copy-link-btn:hover {
  background: var(--zoom-btn-hover);
}

/* REACTIONS FLYING ANIMATION */
.reactions-floating-container {
  position: absolute;
  bottom: 85px;
  right: 60px;
  width: 200px;
  height: 400px;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}

.floating-emoji {
  position: absolute;
  bottom: 0;
  font-size: 32px;
  animation: floatUpAndFade 2.5s ease-out forwards;
}

@keyframes floatUpAndFade {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6);
  }
  30% {
    transform: translateY(-80px) scale(1.2) rotate(-5deg);
  }
  70% {
    transform: translateY(-220px) scale(1) rotate(5deg);
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-350px) scale(0.8);
  }
}

/* REACTIONS POPUP MENU (ĐẶT CHUẨN XÁC TRÊN ĐỈNH NÚT REACTIONS) */
.reactions-btn-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reactions-popup-menu {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--zoom-panel-bg);
  border: 1px solid var(--zoom-border);
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  white-space: nowrap;
}

/* Mũi tên nhỏ dưới đáy popup chỉ thẳng vào nút Reactions */
.reactions-popup-menu::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--zoom-panel-bg);
  border-right: 1px solid var(--zoom-border);
  border-bottom: 1px solid var(--zoom-border);
}

.reactions-popup-menu.hidden {
  display: none !important;
}

.reaction-pick-btn {
  background: transparent;
  border: none;
  font-size: 26px;
  cursor: pointer;
  transition: transform 0.15s;
  padding: 4px;
}

.reaction-pick-btn:hover {
  transform: scale(1.3);
}

.raise-hand-btn {
  background: var(--zoom-card-bg);
  border: 1px solid var(--zoom-border);
  color: var(--zoom-text-primary);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.raise-hand-btn:hover {
  background: var(--zoom-btn-hover);
}

.raise-hand-btn.raised {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}

/* TOAST NOTIFICATION (LIGHT THEME) */
.zoom-toast {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 120;
  animation: toastFade 0.3s ease;
}

@keyframes toastFade {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ========================================================
   GIAO DIỆN TRÊN ĐIỆN THOẠI (ZOOM MOBILE UI)
/* ========================================================
   GIAO DIỆN TRÊN ĐIỆN THOẠI & MÁY TÍNH (RESPONSIVE CHUẨN ZOOM)
   ======================================================== */

/* Badge số lượng người tham gia trên mobile */
.participants-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-badge-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background: transparent;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* Avatar to ở giữa màn hình khi ở điện thoại (Chuẩn ô nâu chữ K trong ảnh) */
.mobile-center-avatar-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 6;
  pointer-events: none;
}

.mobile-center-avatar-box {
  width: 135px;
  height: 135px;
  background-color: #63473D; /* Màu nâu đất chuẩn Zoom */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 68px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6);
  user-select: none;
}

/* 1. MẶC ĐỊNH TRÊN DESKTOP (MÁY TÍNH) */
.zoom-desktop-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.zoom-mobile-header {
  display: none !important;
}

.zoom-desktop-toolbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  height: 72px;
  background: var(--zoom-bar-bg);
  border-top: 1px solid var(--zoom-border);
  padding: 0 16px;
  z-index: 25;
}

.zoom-desktop-toolbar .toolbar-group-left,
.zoom-desktop-toolbar .toolbar-group-center,
.zoom-desktop-toolbar .toolbar-group-right {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.zoom-desktop-toolbar .toolbar-group-left {
  flex: 0 0 auto;
}

.zoom-desktop-toolbar .toolbar-group-center {
  flex: 0 1 auto;
  justify-content: center;
}

.zoom-desktop-toolbar .toolbar-group-right {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.zoom-mobile-toolbar {
  display: none !important;
}

/* 2. TRÊN MOBILE (ĐIỆN THOẠI: DƯỚI 768px) */
@media (max-width: 768px) {
  body {
    --zoom-bar-bg: #111113;
  }

  /* BỎ HOÀN TOÀN VIỀN MÀU XANH LÁ CÂY TRÊN GIAO DIỆN MOBI */
  .active-speaker-glow {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .zoom-desktop-header {
    display: none !important;
  }

  .zoom-mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 52px;
  }

  .zoom-desktop-toolbar {
    display: none !important;
  }

  .zoom-mobile-toolbar {
    display: flex !important;
    height: 68px;
    background-color: #000000;
    border-top: 1px solid #1f1f23;
    padding: 0 4px;
    align-items: center;
    justify-content: space-around !important;
    width: 100%;
  }

  .zoom-mobile-toolbar .toolbar-btn {
    flex: 1;
    min-width: 0;
    height: 60px;
    padding: 4px 2px;
    gap: 3px;
    background: transparent;
    border-radius: 6px;
  }

  .zoom-mobile-toolbar .toolbar-btn svg {
    width: 24px;
    height: 24px;
  }

  .zoom-mobile-toolbar .toolbar-btn span.label {
    font-size: 10px;
    font-weight: 500;
    color: #FFFFFF;
    opacity: 0.88;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
  }

  /* Nút chia sẻ nội dung màu xanh lá Zoom chuẩn ảnh */
  .zoom-mobile-toolbar .toolbar-btn.share-screen-btn svg {
    fill: #22c55e !important;
  }

  .zoom-mobile-toolbar .toolbar-btn.share-screen-btn span.label {
    color: #22c55e !important;
    opacity: 1;
    font-weight: 600;
  }

  .mobile-speaker-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .mobile-zoom-info-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
  }

  .mobile-zoom-text {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
  }

  .mobile-end-btn {
    background-color: #E02828;
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(224, 40, 40, 0.4);
  }

  /* SIDEBAR TRÊN MOBILE: MẶC ĐỊNH ẨN PARTICIPANTS VÀ CHAT ĐI */
  .zoom-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    z-index: 95;
    background: var(--zoom-panel-bg);
    display: none;
  }

  .zoom-sidebar:not(.hidden) {
    display: flex;
  }

  .zoom-sidebar.hidden {
    display: none !important;
  }

  .floating-participants-strip {
    top: 64px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    width: 80% !important;
    max-width: 320px !important;
    z-index: 50 !important;
  }

  .user-thumbnail-card {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 140px !important;
    background: #1e1f24 !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .user-thumbnail-card .avatar-placeholder {
    width: 60px !important;
    height: 60px !important;
    font-size: 20px !important;
  }

  .user-thumbnail-card .thumbnail-name-tag {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    gap: 6px !important;
  }
}

/* 3. CHẾ ĐỘ GIẢ LẬP ĐIỆN THOẠI TRÊN MÁY TÍNH KHI BẬT BODY.MOBILE-FRAME-PREVIEW */
body.mobile-frame-preview {
  background-color: #09090b !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.mobile-frame-preview .zoom-app {
  width: 390px !important;
  height: 844px !important;
  max-height: 96vh;
  margin: auto;
  border-radius: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 0 10px #27272a;
  overflow: hidden;
}

body.mobile-frame-preview .zoom-desktop-header {
  display: none !important;
}

body.mobile-frame-preview .zoom-mobile-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 52px;
}

body.mobile-frame-preview .zoom-desktop-toolbar {
  display: none !important;
}

body.mobile-frame-preview .zoom-mobile-toolbar {
  display: flex !important;
  height: 68px;
  background-color: #000000;
  border-top: 1px solid #1f1f23;
  padding: 0 4px;
  align-items: center;
  justify-content: space-around !important;
  width: 100%;
}

body.mobile-frame-preview .zoom-mobile-toolbar .toolbar-btn {
  flex: 1;
  min-width: 0;
  height: 60px;
  padding: 4px 2px;
  gap: 3px;
}

body.mobile-frame-preview .zoom-mobile-toolbar .toolbar-btn span.label {
  font-size: 10px;
  color: #FFFFFF;
  opacity: 0.88;
}

/* SIDEBAR TRONG CHẾ ĐỘ GIẢ LẬP ĐIỆN THOẠI TRÊN MÁY TÍNH */
body.mobile-frame-preview .zoom-sidebar {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1000 !important;
  background: var(--zoom-panel-bg) !important;
  display: none;
  flex-direction: column !important;
}

body.mobile-frame-preview .zoom-sidebar:not(.hidden) {
  display: flex !important;
}

body.mobile-frame-preview .zoom-sidebar.hidden {
  display: none !important;
}

/* BỎ HOÀN TOÀN VIỀN XANH TRONG PREVIEW */
body.mobile-frame-preview .active-speaker-glow {
  display: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* ========================================================
   BOTTOM ACTION SHEET (POPUP KHI BẤM 'KHÁC' TRÊN MOBILE)
   ======================================================== */
.mobile-action-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}

.mobile-action-sheet-overlay.hidden {
  display: none;
}

.mobile-action-sheet {
  background: #1c1c20;
  width: 100%;
  max-width: 440px;
  border-radius: 20px 20px 0 0;
  padding: 12px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.action-sheet-handle {
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin: 4px auto 10px;
}

.action-sheet-title {
  font-size: 14px;
  font-weight: 700;
  color: #9E9EA7;
  text-align: center;
  margin-bottom: 6px;
}

.action-sheet-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #25252b;
  border-radius: 12px;
  overflow: hidden;
}

.sheet-item-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sheet-item-btn:last-child {
  border-bottom: none;
}

.sheet-item-btn:active,
.sheet-item-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sheet-icon {
  font-size: 18px;
  width: 24px;
  display: inline-block;
  text-align: center;
}

.sheet-cancel-btn {
  background: #2b2b32;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s;
}

.sheet-cancel-btn:hover {
  background: #36363e;
}

/* ========================================================
   WAITING ROOM SCREEN (PHÒNG CHỜ CHUẨN ZOOM CHO WEBINAR ĐÚNG GIỜ)
   ======================================================== */
.waiting-room-overlay {
  position: fixed;
  inset: 0;
  background: #111113;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.waiting-room-overlay.hidden {
  display: none !important;
}

.waiting-room-card {
  background: #1c1c20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.waiting-room-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.waiting-room-brand {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.waiting-room-spinner {
  margin: 6px 0;
}

.spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(14, 113, 235, 0.2);
  border-top-color: #0E71EB;
  border-radius: 50%;
  animation: spinRing 0.8s linear infinite;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.waiting-room-heading {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
}

.waiting-room-subheading {
  font-size: 13px;
  color: #9E9EA7;
  margin-top: -10px;
}

.waiting-room-meeting-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 100%;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.waiting-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}

.waiting-host {
  font-size: 13px;
  color: #9E9EA7;
}

.waiting-host strong {
  color: #f1c40f;
}

.waiting-time-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9E9EA7;
}

.waiting-time-badge strong {
  color: #2ecc71;
}

.countdown-container {
  margin-top: 8px;
  background: rgba(14, 113, 235, 0.1);
  border: 1px dashed rgba(14, 113, 235, 0.4);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.countdown-label {
  font-size: 11px;
  font-weight: 700;
  color: #0E71EB;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.countdown-display {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.waiting-room-footer-actions {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-test-audio {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #9E9EA7;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-test-audio:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ========================================================
   TÍNH NĂNG THU NHỎ & ẨN CÔNG CỤ (TOOLS HIDDEN)
   ======================================================== */
.zoom-toolbar,
.zoom-desktop-header,
.zoom-mobile-header {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease !important;
}

body.tools-hidden .zoom-toolbar {
  transform: translateY(120%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.tools-hidden .zoom-desktop-header,
body.tools-hidden .zoom-mobile-header {
  transform: translateY(-120%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.tools-hidden .toggle-tools-floating-btn {
  display: flex !important;
}

/* Nút bấm nổi khôi phục thanh công cụ */
.toggle-tools-floating-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 85;
  background: rgba(24, 24, 27, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
  pointer-events: auto;
}

.toggle-tools-floating-btn:hover {
  background: #0E71EB;
  border-color: #0E71EB;
  transform: translateX(-50%) translateY(-2px);
}


