/* RoomH Window Top Bar with Mac Traffic Lights & Upgrade Button */
.zoom-mac-titlebar {
  height: 38px;
  background: #18191e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
  z-index: 1000;
}

.mac-traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.traffic-light.red { background: #ff5f56; }
.traffic-light.yellow { background: #ffbd2e; }
.traffic-light.green { background: #27c93f; }

.btn-upgrade-pro {
  background: #0e72ed;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.btn-upgrade-pro:hover {
  background: #005ce6;
}

/* Split Right Sidebar (Exact RoomH Screenshot) */
.zoom-split-sidebar {
  width: 360px;
  background: #18191e;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 95;
}

/* Top Section: Chat */
.zoom-sidebar-chat-section {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.zoom-panel-header {
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.panel-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9da3af;
}

.panel-icon-btn {
  font-size: 14px;
  color: #9da3af;
  cursor: pointer;
}

.panel-icon-btn:hover {
  color: #ffffff;
}

.chat-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
}

.chat-pill-btn {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.chat-pill-btn.active-blue {
  background: #0e72ed;
  color: #ffffff;
}

.chat-pill-btn.pill-grey {
  background: #2b2e38;
  color: #e5e7eb;
}

.chat-who-can-see-banner {
  padding: 6px 14px;
  font-size: 11px;
  color: #818a99;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.zoom-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zoom-chat-input-box {
  background: #23252d;
  margin: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.zoom-chat-textarea {
  background: transparent;
  border: none;
  padding: 8px 10px;
  font-size: 12px;
  color: #ffffff;
  resize: none;
  min-height: 38px;
}

.zoom-chat-tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.15);
  color: #9da3af;
  font-size: 13px;
}

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

.tool-icon-btn {
  cursor: pointer;
  color: #9da3af;
  font-size: 13px;
}

.tool-icon-btn:hover {
  color: #ffffff;
}

.btn-chat-send-plane {
  color: #0e72ed;
  cursor: pointer;
  font-size: 14px;
}

/* Bottom Section: Participants */
.zoom-sidebar-participants-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.participants-scroll-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zoom-participant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
}

.zoom-participant-row:hover {
  background: #242731;
}

.participant-avatar-red {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.participant-text-col {
  flex: 1;
  margin-left: 10px;
  overflow: hidden;
}

.participant-fullname {
  font-size: 12px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participant-actions-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9da3af;
}

.participants-bottom-pills {
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.zoom-action-pill {
  flex: 1;
  background: #282a33;
  color: #e5e7eb;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.zoom-action-pill:hover {
  background: #343845;
  color: #ffffff;
}

/* Exact RoomH Name Tag on Camera (Bottom Left) */
.zoom-screenshot-nametag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 20;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

:root {
  --bg-app: #121316;
  --bg-surface: #1a1c23;
  --bg-card: #22252e;
  --bg-hover: #2b303c;
  --bg-input: #15171c;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #0e72ed;
  
  --zoom-blue: #0e72ed;
  --zoom-blue-hover: #0b5ed7;
  --zoom-orange: #fe6b00;
  --zoom-orange-hover: #e55e00;
  --zoom-green: #00da75;
  --zoom-green-hover: #00bf67;
  --zoom-red: #f04438;
  --zoom-red-hover: #d92d20;
  --zoom-yellow: #f59e0b;

  --text-primary: #ffffff;
  --text-secondary: #9da3af;
  --text-muted: #646a78;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "SF Pro Text", Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-primary);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  outline: none;
  transition: all 0.15s ease;
}

input, select, textarea {
  font-family: inherit;
  outline: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   ZOOM HOME SCREEN (DASHBOARD)
   ========================================================================== */

#home-view {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: radial-gradient(circle at 85% 20%, #1e2638 0%, #121316 70%);
}

/* Home Header */
.home-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(18, 19, 22, 0.85);
  backdrop-filter: blur(12px);
}

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

.zoom-logo-badge {
  background: var(--zoom-blue);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(14, 114, 237, 0.4);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #0e72ed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-tab.active {
  background: var(--bg-card);
  color: var(--zoom-blue);
  font-weight: 600;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  position: relative;
}

.presence-dot {
  width: 10px;
  height: 10px;
  background: var(--zoom-green);
  border: 2px solid var(--bg-app);
  border-radius: 50%;
  position: absolute;
  bottom: -1px;
  right: -1px;
}

/* Home Main Container */
.home-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.zoom-launchers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 220px));
  gap: 16px;
  justify-content: center;
}

.launcher-card {
  height: 104px;
  border-radius: 10px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.launcher-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.launcher-card:active {
  transform: translateY(0);
}

/* Vintage Soft Color Palette */
.launcher-card.orange {
  background: linear-gradient(135deg, #c4765d, #ab5d45);
}

.launcher-card.blue {
  background: linear-gradient(135deg, #4f7190, #3e5c79);
}

.launcher-card.purple {
  background: linear-gradient(135deg, #5b6989, #485675);
}

.launcher-card.green {
  background: linear-gradient(135deg, #527c69, #406453);
}

.launcher-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.launcher-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.1px;
}

/* Home Right Widget (Clock & Schedule) */
.home-right-widget {
  background: rgba(26, 28, 35, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: var(--shadow-sm);
}

.clock-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clock-time {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 60%, #9da3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.clock-date {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.upcoming-meetings-card {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upcoming-header {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
}

.no-meetings-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
}

.network-badge-box {
  padding: 12px 14px;
  background: rgba(14, 114, 237, 0.08);
  border: 1px solid rgba(14, 114, 237, 0.25);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: #93c5fd;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.network-ip-item {
  font-family: monospace;
  font-size: 12px;
  color: #fff;
  user-select: all;
}

/* ==========================================================================
   ZOOM IN-MEETING VIEW
   ========================================================================== */

#meeting-view {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-app);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Meeting Header */
.meeting-header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(18, 19, 22, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
}

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

.security-shield-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 218, 117, 0.12);
  color: var(--zoom-green);
  font-size: 12px;
  font-weight: 600;
}

.security-shield-btn:hover {
  background: rgba(0, 218, 117, 0.2);
}

.meeting-timer-pill {
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recording-indicator-dot {
  width: 8px;
  height: 8px;
  background: var(--zoom-red);
  border-radius: 50%;
  animation: pulseRecording 1.5s infinite;
}

@keyframes pulseRecording {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

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

.view-mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.view-mode-btn:hover {
  background: var(--bg-hover);
}

/* Meeting Stage & Video Layout */
.meeting-body {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

#main-video-container {
  flex: 1;
  display: flex;
  padding: 0;
  position: relative;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  background: #000;
  width: 100%;
  height: 100%;
}

/* Responsive Gallery Video Grid */
.video-grid {
  display: grid;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-content: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* Multi-participant grid spacing (>= 2 people) */
.video-grid:not(.grid-1):not(.single-user-mode):not(.speaker-mode) {
  padding: 12px;
  gap: 12px;
}

/* 1 Person: 100% Full Viền (Edge-to-Edge, Zero Margins, Zero Black Bars) */
.video-grid.grid-1,
.video-grid.single-user-mode {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  box-sizing: border-box !important;
}

.video-grid.grid-1 .video-card,
.video-grid.single-user-mode .video-card,
.video-grid.single-user-mode.speaker-mode .video-card.active-speaker,
.video-grid.single-user-mode.speaker-mode .video-card.is-host-speaker {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  flex: 1 1 100% !important;
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.video-grid.grid-1 .video-card .video-element,
.video-grid.single-user-mode .video-card .video-element {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  grid-template-rows: minmax(240px, 1fr);
}

.grid-3, .grid-4 {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  grid-template-rows: repeat(2, minmax(180px, 1fr));
}

.grid-5, .grid-6 {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  grid-template-rows: repeat(2, minmax(160px, 1fr));
}

.grid-7, .grid-8, .grid-9 {
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  grid-template-rows: repeat(3, minmax(140px, 1fr));
}

/* Speaker View Layout when multiple participants */
.video-grid.speaker-mode:not(.single-user-mode) {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}

/* Host / Active Speaker fills 95% of screen when multiple participants */
.video-grid.speaker-mode:not(.single-user-mode) .video-card.active-speaker,
.video-grid.speaker-mode:not(.single-user-mode) .video-card.is-host-speaker {
  width: 95% !important;
  height: 95% !important;
  max-width: 95% !important;
  max-height: 95% !important;
  position: absolute !important;
  inset: 0 !important;
  margin: auto !important;
  z-index: 10 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85) !important;
  border: 2px solid var(--zoom-green) !important;
}

/* Other participants in speaker mode: thumbnail strip at top right */
.video-grid.speaker-mode .video-card:not(.active-speaker):not(.is-host-speaker) {
  position: absolute !important;
  top: 16px !important;
  right: calc(16px + (var(--thumb-idx, 0) * 145px)) !important;
  width: 135px !important;
  height: 82px !important;
  z-index: 30 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.7) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
}

/* Floating Draggable Popup Windows (Bung thành popup / Ghim lại) */
.zoom-sidebar-chat-section.floating-popup,
.zoom-sidebar-participants-section.floating-popup {
  position: fixed !important;
  z-index: 1200 !important;
  width: 380px !important;
  height: 520px !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
  background: #18191e !important;
  backdrop-filter: blur(24px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.zoom-sidebar-chat-section.floating-popup .zoom-panel-header,
.zoom-sidebar-participants-section.floating-popup .zoom-panel-header {
  cursor: grab !important;
  background: #252830 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  user-select: none !important;
}

.zoom-sidebar-chat-section.floating-popup .zoom-panel-header:active,
.zoom-sidebar-participants-section.floating-popup .zoom-panel-header:active {
  cursor: grabbing !important;
}

.floating-popup.dragging {
  opacity: 0.95 !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95), 0 0 0 2px var(--zoom-blue) !important;
}

/* Individual Video Tile */
.video-card {
  position: relative;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}

.video-card.speaking {
  border-color: var(--zoom-green);
  box-shadow: 0 0 0 3px rgba(0, 218, 117, 0.4), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-card.screen-share-card .video-element {
  object-fit: contain;
  background: #0d0e12;
}

.video-avatar-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1e222d 0%, #101115 100%);
}

.avatar-initials-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Tile Badges */
.tile-name-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  z-index: 5;
}

.tile-hand-raised {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--zoom-yellow);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.mic-status-icon.muted {
  color: var(--zoom-red);
}

.mic-status-icon.unmuted {
  color: var(--zoom-green);
}

/* ==========================================================================
   ZOOM FLOATING BOTTOM CONTROL BAR
   ========================================================================== */

.meeting-footer-bar {
  flex: none;
  height: 60px;
  background: #14151a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 100;
  box-sizing: border-box;
  user-select: none;
}

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

/* 100% Zoom Tool Column */
.zoom-tool-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}

.zoom-tool-col:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tool-icon-caret-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 28px;
}

.tool-icon-btn {
  background: none;
  border: none;
  color: #f1f5f9;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
}

.tool-icon-btn:hover {
  color: #ffffff;
}

.tool-caret-btn {
  background: none;
  border: none;
  color: #94a3b8;
  padding: 2px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: color 0.15s ease;
}

.tool-caret-btn:hover {
  color: #ffffff;
}

.tool-label-text {
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  margin-top: 1px;
  letter-spacing: -0.1px;
  text-align: center;
  white-space: nowrap;
}

.participants-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.participants-count-val {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-left: 1px;
}

/* End Meeting Red Pill Button */
.btn-end-meeting {
  background: #e0284f;
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-end-meeting:hover {
  background: #c81e3f;
  transform: scale(1.02);
}

/* Zoom Dark Dropdown Context Menus */
.zoom-dropdown-menu {
  position: absolute;
  background: #24272f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px 0;
  min-width: 210px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 250;
  animation: fadeInDropdown 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reactions Popup - Anchored Directly Above React Button */
#reactions-popup {
  position: absolute !important;
  bottom: 64px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-width: 270px !important;
  background: #24272f !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  z-index: 350 !important;
}

#reactions-popup::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #24272f;
}

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

.dropdown-header {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  padding: 6px 14px 4px 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  color: #f1f5f9;
  cursor: pointer;
  transition: background 0.1s ease;
}

.dropdown-item:hover {
  background: #0e72ed;
  color: #ffffff;
}

.dropdown-item.active {
  color: #60a5fa;
}

.dropdown-item .check-mark {
  font-weight: 700;
  width: 14px;
  display: inline-block;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 5px 0;
}

/* Tooltip Badge Count */
.badge-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background: #e0284f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
}

/* ==========================================================================
   REMOTE CONTROL FLOATING TOP BARS & COLLABORATIVE CURSOR
   ========================================================================== */

/* Top Viewer Bar: "You are controlling [Host]'s screen" */
.remote-control-banner {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 114, 237, 0.95);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(14, 114, 237, 0.4);
  z-index: 500;
  animation: slideDownBanner 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.remote-control-banner.host-banner {
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.banner-action-btn {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.banner-action-btn:hover {
  background: rgba(0, 0, 0, 0.45);
}

@keyframes slideDownBanner {
  from { transform: translate(-50%, -100%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* Host Incoming Remote Request Modal */
.host-request-toast {
  position: absolute;
  top: 70px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 600;
  width: 320px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-actions-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-toast-approve {
  background: var(--zoom-green);
  color: #000;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
}

.btn-toast-decline {
  background: var(--bg-hover);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* Collaborative Remote Mouse Cursor */
.roomh-collaborative-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.04s linear;
}

.cursor-pointer-svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.cursor-badge {
  position: absolute;
  left: 18px;
  top: 14px;
  background: var(--zoom-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cursor-clicking .cursor-pointer-svg {
  transform: scale(0.85);
}

/* ==========================================================================
   SIDEBARS: PARTICIPANTS & CHAT
   ========================================================================== */

.meeting-sidebar-drawer {
  width: 340px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 90;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 600;
}

.sidebar-close-btn {
  color: var(--text-muted);
  font-size: 18px;
}

.sidebar-close-btn:hover {
  color: #fff;
}

/* Participants List */
.participants-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

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

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

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

.participant-name-text {
  font-size: 13px;
  font-weight: 500;
}

.participant-role-tag {
  font-size: 11px;
  color: var(--zoom-blue);
  margin-left: 4px;
}

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

.participants-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.btn-sidebar-secondary {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.btn-sidebar-secondary:hover {
  background: var(--bg-hover);
}

/* Chat Messages */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-bubble-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

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

.chat-timestamp {
  font-size: 11px;
  color: var(--text-muted);
}

.chat-target-tag {
  font-size: 11px;
  color: var(--zoom-yellow);
}

.chat-bubble-body {
  background: var(--bg-card);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-target-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.chat-target-select {
  background: transparent;
  border: none;
  color: var(--zoom-blue);
  font-size: 12px;
  font-weight: 600;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.chat-text-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 13px;
  color: #fff;
}

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

/* ==========================================================================
   SETTINGS MODAL & BEAUTY CONTROLS
   ========================================================================== */

.zoom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.zoom-modal-window {
  width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 85vh;
}

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

.modal-title {
  font-size: 16px;
  font-weight: 600;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Settings Tabs */
.settings-tabs-row {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.settings-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.settings-tab-btn.active {
  background: var(--bg-hover);
  color: var(--zoom-blue);
  font-weight: 600;
}

/* Sliders for Beauty & Lighting */
.setting-slider-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
}

.slider-val-tag {
  color: var(--zoom-blue);
  font-weight: 600;
}

input[type="range"] {
  -webkit-appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--zoom-blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Virtual Backgrounds Cards */
.virtual-bg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.virtual-bg-card {
  height: 74px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg-card);
  transition: all 0.15s ease;
  overflow: hidden;
  position: relative;
}

.virtual-bg-card:hover {
  border-color: rgba(14, 114, 237, 0.5);
}

.virtual-bg-card.selected {
  border-color: var(--zoom-blue);
  box-shadow: 0 0 0 2px rgba(14, 114, 237, 0.3);
}

/* Floating Emoji Reactions */
.floating-reaction {
  position: absolute;
  bottom: 80px;
  left: 30px;
  font-size: 38px;
  pointer-events: none;
  z-index: 1000;
  animation: floatReaction 3s forwards cubic-bezier(0.12, 0.8, 0.32, 1);
}

@keyframes floatReaction {
  0% { transform: translate3d(0, 0, 0) scale(0.5); opacity: 0; }
  15% { transform: translate3d(0, -30px, 0) scale(1.2); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate3d(30px, -240px, 0) scale(1.4); opacity: 0; }
}

/* Security Meeting Info Dropdown */
.meeting-info-popover {
  position: absolute;
  top: 48px;
  left: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  width: 320px;
  box-shadow: var(--shadow-lg);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.info-label {
  color: var(--text-muted);
}

.info-val {
  font-weight: 600;
  font-family: monospace;
}

/* Toast Messages */
.roomh-toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 34, 42, 0.95);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 2000;
  animation: fadeInToast 0.25s ease;
}

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