:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-tertiary: #0f0f23;
  --accent-primary: #00bcd4;
  --accent-secondary: #4caf50;
  --accent-danger: #f44336;
  --accent-warning: #ff9800;

  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;

  --border-color: #333344;
  --shadow-color: rgba(0, 0, 0, 0.3);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* ==========================================
   WINDOW TITLE BAR
   ========================================== */
.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  user-select: none;
}

.titlebar-icon {
  font-size: 18px;
}

.titlebar-title {
  font-weight: 600;
  font-size: 14px;
}

.titlebar-controls {
  display: flex;
  gap: 8px;
}

.titlebar-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.titlebar-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background var(--transition-fast);
  background: transparent;
  color: var(--text-secondary);
}

.titlebar-btn:hover {
  background: var(--border-color);
}

.titlebar-btn.close:hover {
  background: var(--accent-danger);
  color: #fff;
}

/* ==========================================
   VIDEO CONTAINERS (inside panels)
   ========================================== */
.video-container {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
    PAGES
    ========================================== */
.page {
  display: none;
  height: calc(100vh - 42px);
  width: 100%;
}

.page.active {
  display: flex;
}

/* Call page: hide titlebar completely */
body.call-page-active .window-titlebar {
  display: flex !important;
}

body.call-page-active #page-call.page.active {
  height: calc(100vh - 42px);
}

/* Lobby page: hide titlebar icon and controls, keep title */
body:not(.call-page-active) .titlebar-icon,
body:not(.call-page-active) .titlebar-controls {
  display: none;
}

/* ==========================================
   PRE-JOIN PANEL
   ========================================== */
.prejoin-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 24px;
}

.app-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-primary);
}

.app-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

.input-group {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-group input {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

.join-hint {
  font-size: 13px;
  color: var(--accent-primary);
  margin-top: 4px;
  padding: 6px 10px;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 4px;
  border-left: 3px solid var(--accent-primary);
}

.room-input-row {
  display: flex;
  gap: 12px;
}

.room-input-row input {
  flex: 1;
}

.divider {
  position: relative;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: var(--border-color);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider span {
  background: var(--bg-primary);
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.wl-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.wl-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.wl-button:active {
  transform: translateY(0);
}

.wl-button.primary {
  background: var(--accent-primary);
  color: #fff;
}

.wl-button.secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.wl-button.small {
  padding: 8px 16px;
  font-size: 12px;
}

/* ==========================================
   CALL CONTAINER
   ========================================== */
.call-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* ==========================================
   VIDEO AREA - NO PADDING
   ========================================== */
.video-area {
  flex: 1;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--bg-primary);
}

/* ==========================================
   VIDEO PANELS
   ========================================== */
.video-panel {
  position: relative;
  background: var(--bg-tertiary);
  overflow: hidden;
  z-index: 1;
  height: 100%;
}

.panel-header {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 20px;
}

.panel-title {
  font-size: 13px;
  font-weight: 500;
}

.panel-status {
  font-size: 11px;
  color: var(--accent-secondary);
}

.video-element {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  position: absolute;
  top: 0;
  left: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
}

.placeholder-icon {
  font-size: 48px;
  opacity: 0.5;
}

.placeholder-icon.large {
  font-size: 72px;
}

/* ==========================================
   SELF VIDEO - DEFAULT (PI P POSITION)
   ========================================== */
.self-video {
  width: 320px;
  height: 240px;
  cursor: move;
  border: 2px solid var(--border-color);
  transition: border-color var(--transition-fast);
  position: absolute;
  right: 20px;
  bottom: 120px;
  z-index: 5;
  border-radius: 0;
  transform: scaleX(-1) !important;
}

.self-video .panel-header {
  transform: scaleX(-1) !important;
}

.self-video:hover {
  border-color: var(--accent-primary);
}

.self-video.pip-mode {
  position: fixed;
  right: 20px;
  bottom: 120px;
  width: 200px;
  height: 150px;
  z-index: 1000 !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  cursor: grab;
  touch-action: none;
  border-radius: 8px;
}

.self-video.pip-mode:active {
  cursor: grabbing;
}

/* ==========================================
   REMOTE VIDEO
   ========================================== */
.remote-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 200px;
}

/* ==========================================
   SPLIT MODE (DEFAULT LAYOUT)
   ========================================== */
.video-area.side-by-side {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.video-area.side-by-side .self-video {
  position: relative;
  width: 40%;
  height: 100%;
  right: auto;
  bottom: auto;
  border-radius: 0;
  border-right: none;
  border-bottom: none;
  border-left: none;
  flex: none;
  cursor: default;
}

.video-area.side-by-side .remote-video {
  flex: 1;
  height: 100%;
  border-radius: 0;
}

/* ==========================================
   SPLIT RESIZER - SIMPLE & VISIBLE
   ========================================== */
.video-area.side-by-side .split-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  z-index: 100;
  cursor: col-resize;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.video-area.side-by-side .split-resizer::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 15%;
  bottom: 15%;
  width: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0, 188, 212, 0.6);
}

.video-area.side-by-side .split-resizer::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  border-radius: 50%;
  font-size: 12px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.video-area.side-by-side .split-resizer:hover {
  background: rgba(0, 188, 212, 0.3);
}

.video-area.side-by-side .split-resizer:hover::before {
  width: 4px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.8);
}

.video-area.side-by-side .split-resizer.dragging {
  background: rgba(0, 188, 212, 0.4);
}

.video-area.side-by-side .split-resizer.dragging::before {
  background: var(--accent-secondary);
  width: 4px;
}

.video-area.side-by-side .split-resizer.dragging::after {
  background: var(--accent-secondary);
}

/* Prevent text selection during split resize */
.video-area.side-by-side .split-resizer.dragging,
.video-area.side-by-side .split-resizer.dragging *,
.video-area.side-by-side.dragging,
.video-area.side-by-side.dragging * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ==========================================
   PI P MODE
   ========================================== */
.video-area.pip-mode {
  display: flex;
  position: relative;
}

.video-area.pip-mode .remote-video {
  flex: 1;
  width: 100%;
  height: 100%;
}

.video-area.pip-mode .self-video {
  position: fixed;
  right: 20px;
  bottom: 120px;
  width: 200px;
  height: 150px;
  z-index: 1000;
  border-radius: 8px;
}

/* Prevent text selection during PiP drag/resize */
.self-video.pip-mode.dragging,
.self-video.pip-mode.dragging *,
.self-video.pip-mode.resizing,
.self-video.pip-mode.resizing * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ==========================================
   EMPTY PLACEHOLDER - Centered in remote video panel
   ========================================== */
.empty-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--text-muted);
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px dashed var(--border-color);
  z-index: 2;
  visibility: visible;
  /* Ensure proper centering within the parent */
  margin: 0;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

/* Hide video when placeholder is visible */
.remote-video:has(.empty-placeholder:not([style*="display: none"])) .video-element,
.remote-video:has(.empty-placeholder:not([style*="display: none"])) video {
  display: none;
}

/* Ensure the remote video panel properly positions its children */
#remoteVideoPanel {
  position: relative;
}

.empty-placeholder .hint-text {
  font-size: 14px;
}

/* ==========================================
   CALL CONTROLS BAR
   ========================================== */
.call-controls-bar {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  gap: 12px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.call-container.controls-visible .call-controls-bar,
.call-container.tapped .call-controls-bar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.control-group {
  display: flex;
  gap: 8px;
}

.control-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

.control-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  min-width: 60px;
  z-index: 1001;
  pointer-events: auto;
}

.control-btn:hover {
  background: var(--accent-primary);
}

.control-btn.end-btn {
  background: var(--accent-danger);
}

.control-btn.end-btn:hover {
  background: #d32f2f;
}

.control-btn.active {
  background: var(--accent-secondary);
}

.control-btn.muted {
  background: var(--accent-warning);
}

.control-btn.small {
  padding: 6px 12px;
  min-width: 48px;
}

.btn-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.btn-label {
  font-size: 10px;
  font-weight: 500;
}

/* ==========================================
   STATUS BAR
   ========================================== */
.call-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px 24px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  margin: 0;
}

.e2ee-badge {
  color: var(--accent-secondary);
  font-weight: 500;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.cbr-badge {
  color: var(--accent-warning);
  font-weight: 500;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.2);
}

.participants-count {
  background: var(--bg-secondary);
  padding: 4px 12px;
  border-radius: 12px;
}

/* ==========================================
   TAP ZONE (MOBILE)
   ========================================== */
.call-tap-zone {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 999;
}

/* ==========================================
   LOADING OVERLAY
   ========================================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: var(--text-primary);
}

.loading-content p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 350px;
}

@media (min-width: 769px) {
  .toast-container {
    left: auto;
    right: 20px;
    transform: none;
    max-width: 300px;
  }
}

.toast {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.3s ease;
  max-width: 100%;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.toast.success { background: var(--accent-secondary); color: #fff; }
.toast.error { background: var(--accent-danger); color: #fff; }
.toast.warning { background: var(--accent-warning); color: #fff; }
.toast.info { background: var(--accent-primary); color: #fff; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}

/* ==========================================
   SPINNER
   ========================================== */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner.large {
  width: 60px;
  height: 60px;
  border-width: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .video-area.side-by-side {
    flex-direction: column;
  }

  .video-area.side-by-side .self-video {
    width: 100%;
    height: 180px;
    border-right: none;
    border-bottom: 2px solid var(--accent-primary);
  }

  .video-area.side-by-side .remote-video {
    flex: 1;
    width: 100%;
    height: calc(100% - 180px);
  }

  .video-area.side-by-side .split-resizer {
    display: none;
  }

  /* Vertical split mode for narrow viewports */
  .video-area.side-by-side.vertical {
    flex-direction: column !important;
  }

  .video-area.side-by-side.vertical .self-video {
    width: 100% !important;
    height: 40% !important;
    border-bottom: 3px solid var(--accent-primary) !important;
    border-right: none !important;
    position: relative;
  }

  /* Horizontal divider line for vertical split */
  .video-area.side-by-side.vertical::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
    z-index: 50;
    pointer-events: none;
  }

  .video-area.side-by-side.vertical .remote-video {
    width: 100% !important;
    height: 60% !important;
  }

  /* Mobile: Controls slide from right side */
  .call-controls-bar {
    bottom: 0;
    left: auto;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 100%;
    flex-direction: column;
    padding: 12px 8px;
    transform: translateX(100%);
    overflow-y: auto;
    max-width: 120px;
    border-top: none;
    border-left: 1px solid var(--border-color);
  }

  .call-container.controls-visible .call-controls-bar,
  .call-container.tapped .call-controls-bar {
    transform: translateX(0);
  }

  .control-group {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .control-divider {
    width: 100%;
    height: 1px;
    margin: 4px 0;
  }

  .control-btn {
    flex-direction: column;
    padding: 8px 4px;
    min-width: 48px;
    width: 100%;
  }

  .btn-icon {
    margin-bottom: 2px;
  }

  .btn-label {
    font-size: 9px;
  }

  .end-btn {
    margin-top: auto;
  }

  .video-area.side-by-side.vertical .split-resizer {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    width: 100%;
    height: 10px;
    cursor: row-resize;
  }

  .video-area.side-by-side.vertical .split-resizer::before {
    top: 50%;
    left: 15%;
    right: 15%;
    width: auto;
    height: 3px;
    transform: none;
  }

  .video-area.side-by-side.vertical .split-resizer::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .video-area.pip-mode .self-video {
    position: relative;
    width: 100%;
    height: 150px;
    right: auto;
    bottom: auto;
    border-radius: 0;
    border-bottom: 2px solid var(--border-color);
  }

  .video-area.pip-mode .remote-video {
    flex: 1;
    height: calc(100% - 150px);
  }

  .control-btn {
    padding: 8px 12px;
    min-width: 50px;
  }

  .btn-label {
    font-size: 9px;
  }

  .call-status-bar {
    font-size: 11px;
    padding: 6px 12px;
    flex-wrap: wrap;
  }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .video-area.side-by-side .self-video {
    width: 35%;
    height: 100%;
    border-bottom: none;
    border-right: 2px solid var(--accent-primary);
  }

  .video-area.side-by-side .remote-video {
    flex: 1;
    width: 65%;
  }

  .call-controls-bar {
    padding: 8px 16px;
  }

  .btn-label {
    display: none;
  }

  .call-status-bar {
    display: none;
  }
}

/* ==========================================
   FILTER MODAL
   ========================================== */
.filter-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.filter-modal-content {
  background: var(--bg-secondary);
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.filter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.filter-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.filter-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.filter-close-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.filter-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-presets h4,
.filter-controls h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.filter-preset-btn {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.filter-preset-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-primary);
}

.filter-preset-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-control-group h4 {
  margin: 0;
}

.slider-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.slider-group input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-tertiary);
  border-radius: 3px;
  outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
}

.slider-group input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  border: none;
}

.color-picker-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-picker-group label {
  font-size: 13px;
  color: var(--text-secondary);
}

.color-picker-group input[type="color"] {
  width: 60px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-tertiary);
  cursor: pointer;
  padding: 4px;
}

/* ==========================================
   FULLSCREEN
   ========================================== */
.call-container:fullscreen {
  background: var(--bg-primary);
}

.call-container:fullscreen .window-titlebar {
  display: none;
}
