/* ==========================================================================
   SW-HERE DESIGN SYSTEM - SHADCN BLACK GLASSY PREMIUM BLUE THEME
   ========================================================================== */

:root {
  /* Colors - Shadcn Zinc/Slate Dark + Premium Blues */
  --bg-space: #09090b; /* Zinc-950 (Pure Black variant) */
  --card-bg: rgba(9, 9, 11, 0.65); /* Zinc-900 with 65% opacity */
  --card-border: rgba(255, 255, 255, 0.05); /* Very thin elegant border */
  --card-border-glow: rgba(59, 130, 246, 0.25); /* Premium blue glow */
  
  --accent-blue: #3b82f6; /* Premium Blue */
  --accent-blue-glow: rgba(59, 130, 246, 0.4);
  --accent-teal: #06b6d4; /* Cyan/Teal accent */
  --accent-teal-glow: rgba(6, 182, 212, 0.3);
  --accent-indigo: #6366f1;
  --accent-pink: #ec4899;
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.2);
  
  --text-primary: #fafafa; /* Zinc-50 */
  --text-secondary: #a1a1aa; /* Zinc-400 */
  --text-muted: #52525b; /* Zinc-600 */
  
  /* Fonts */
  --font-brand: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* System constants */
  --border-radius-lg: 12px; /* Shadcn sleek corners */
  --border-radius-md: 8px;
  --border-radius-sm: 6px;
  --glass-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

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

body {
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Smooth transition for premium theme switching */
body,
body *,
.app-header,
.dashboard-card,
.tab-segment-control,
.tab-glider,
.tab-btn,
.dropzone-container,
.staged-container,
.staged-file-card,
.digit-box,
.pin-char-field,
.history-drawer,
.history-item-card,
.proposed-files-scroller,
.hud-statistics-grid,
.hud-file-transferring-list,
.switch-slider {
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ambient-glow-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Ambient Glowing Background Orbs (Subtle Premium Blur) */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}

.bg-glow-indigo {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
  top: -15%;
  left: 10%;
}

.bg-glow-pink {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  bottom: -10%;
  right: 5%;
}

.bg-glow-teal {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  top: 40%;
  left: 45%;
  transform: translate(-50%, -50%);
}

/* Elegant Slate Scrollbars */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   APP CONTAINER LAYOUT
   ========================================================================== */

.app-container {
  width: 100%;
  max-width: 480px;
  padding: 16px;
  z-index: 10;
  position: relative;
}

/* Top Premium Header */
/* Top Premium Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 20px; /* Spacious horizontal pill padding */
  background: #08080a; /* Pitch black solid premium tone as shown in the image */
  border: 1px solid rgba(255, 255, 255, 0.08); /* Sleek micro-border */
  border-radius: 20px; /* Highly rounded pill corners */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  -webkit-app-region: drag; /* Make custom titlebar draggable */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  -webkit-app-region: no-drag; /* Allow clicks inside custom titlebar */
  cursor: pointer;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; /* Slightly larger, elegant size */
  height: 42px;
  border-radius: 12px; /* Modern square rounded corners */
  padding: 6px; /* Elegant inner spacing showing black background logo cleanly */
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 8px; /* Clean nested square-rounded edges */
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 1.22rem; /* Clean and bold text */
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  color: #ffffff;
}

.brand-badge {
  font-size: 0.6rem;
  font-weight: 800;
  color: #3b82f6; /* Vibrant premium blue/indigo color */
  letter-spacing: 1px;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  -webkit-app-region: no-drag; /* Allow clicking buttons inside titlebar overlay */
}

.icon-btn-premium {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 12px; /* Square-rounded button */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.icon-btn-premium:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2); /* Sleek blue/indigo border */
  height: 38px; /* Matches theme toggle height exactly */
  box-sizing: border-box;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background-color: #3b82f6; /* Premium standard blue dot */
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

.status-dot.offline {
  background-color: var(--accent-red);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.status-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   SEGMENTED TAB CONTROL
   ========================================================================== */

.tab-segment-control {
  display: flex;
  background: rgba(24, 24, 27, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 3px;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn.active {
  color: var(--text-primary);
}

.tab-glider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  z-index: 1;
  transition: transform var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   CARDS & VIEWPORT
   ========================================================================== */

.dashboard-card-viewport {
  position: relative;
  width: 100%;
}

.dashboard-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  transition: border var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
  position: relative;
}

.dashboard-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(59, 130, 246, 0.03);
}

.tab-content-pane {
  display: none;
}

.tab-content-pane.active {
  display: block;
  animation: slideFadeIn var(--transition-normal) forwards;
}

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

/* Typography */
.section-title {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 20px;
}

/* ==========================================================================
   DRAG AND DROP ZONE (SLATE GLASSY LOOK)
   ========================================================================== */

.dropzone-container {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-lg);
  padding: 30px 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.dropzone-container:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.02);
}

.dropzone-container.dragover {
  border-color: var(--accent-teal);
  background: rgba(6, 182, 212, 0.03);
  transform: scale(0.99);
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropzone-icon-glow {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: var(--transition-normal);
}

.dropzone-container:hover .dropzone-icon-glow {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.dropzone-icon {
  font-size: 1.45rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.dropzone-container:hover .dropzone-icon {
  color: var(--accent-blue);
}

.dropzone-title {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.dropzone-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  max-width: 250px;
  margin-bottom: 18px;
}

.dropzone-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.hidden-input {
  display: none;
}

/* ==========================================================================
   BUTTONS (SHADCN ULTRA PREMIUM GLASSY)
   ========================================================================== */

button {
  outline: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #1e40af); /* Solid clean premium blue gradient */
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
  filter: brightness(1.1);
}

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

.btn-glow {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.btn-glow:hover {
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.45);
}

/* Modern glassy secondary button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 9px 15px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-normal);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px var(--accent-red-glow);
  background: var(--accent-red);
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 9px 18px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--accent-red);
}

.w-full { width: 100% !important; }
.w-half { width: calc(50% - 6px) !important; }
.mt-lg { margin-top: 20px !important; }
.hidden { display: none !important; }

/* ==========================================================================
   STAGED FILES COMPONENT
   ========================================================================== */

.staged-container {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 14px;
  animation: slideFadeIn var(--transition-normal) forwards;
}

.staged-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.staged-header h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.clear-btn:hover {
  color: var(--accent-red);
}

.staged-files-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.staged-file-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 8px 10px;
  gap: 10px;
  transition: var(--transition-fast);
}

.staged-file-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.file-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.staged-file-card:hover .file-icon-box {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-blue);
}

.file-details {
  flex: 1;
  min-width: 0;
}

.file-name-txt {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size-txt {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.remove-file-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.remove-file-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--accent-red);
}

.staged-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
}

.staged-total-info {
  display: flex;
  flex-direction: column;
}

.total-label {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.total-val {
  font-family: var(--font-brand);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-top: 1px;
}

/* ==========================================================================
   ACTIVE PAIRING SESSION COMPONENT (futuristic custom)
   ========================================================================== */

.pairing-code-showcase {
  background: rgba(59, 130, 246, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pairing-digits {
  display: flex;
  gap: 8px;
}

.digit-box {
  width: 44px;
  height: 48px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  font-family: var(--font-brand);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.btn-copy-pin {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-copy-pin:hover {
  color: var(--text-primary);
}

.qr-canvas-holder {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.qr-glow-frame {
  padding: 10px;
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.qrcode-wrapper {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1426;
  border-radius: var(--border-radius-md);
  padding: 6px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.qrcode-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

.pairing-waiting-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.waiting-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

/* Pulsing beacon */
.pulsing-beacon {
  position: relative;
  width: 20px;
  height: 20px;
}

.beacon-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: var(--accent-blue);
}

.beacon-circle.inner {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.beacon-circle.middle {
  width: 14px;
  height: 14px;
  opacity: 0.35;
  animation: beaconPulse 1.6s infinite ease-out;
}

.beacon-circle.outer {
  width: 20px;
  height: 20px;
  opacity: 0.15;
  animation: beaconPulse 1.6s infinite ease-out 0.5s;
}

@keyframes beaconPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

/* ==========================================================================
   PIN INPUT BOARD STYLING (RECEIVER)
   ========================================================================== */

.pin-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.pin-char-field {
  width: 44px;
  height: 48px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  font-family: var(--font-brand);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  outline: none;
  transition: var(--transition-fast);
}

.pin-char-field:focus {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.03);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.pin-divider {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 2px;
}

.pin-error-hint {
  font-size: 0.75rem;
  color: var(--accent-red);
  text-align: center;
  margin-top: 10px;
}

/* Instruction board */
.quick-instruction-card {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ins-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ins-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-family: var(--font-brand);
  font-size: 0.68rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ins-item p {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ins-item p strong {
  color: var(--text-primary);
}

/* ==========================================================================
   PROPOSED TRANSFER HUD (modal style)
   ========================================================================== */

.proposed-transfer-hud {
  display: flex;
  flex-direction: column;
  animation: slideFadeIn var(--transition-normal) forwards;
}

.proposed-summary {
  text-align: center;
  margin-bottom: 16px;
}

.proposed-peer-name {
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.proposed-files-title {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 4px;
}

.proposed-files-weight {
  font-size: 0.78rem;
  color: var(--accent-teal);
  font-weight: 600;
  margin-top: 1px;
}

.proposed-files-scroller {
  max-height: 140px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 8px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proposed-decisions {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   UNIVERSAL ACTIVE TRANSFER HUD (MODAL STATE OVERLAY)
   ========================================================================== */

.hud-connection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.hud-peer-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hud-transfer-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.2px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.05);
}

.hud-transfer-badge.fallback-badge {
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.15);
  color: var(--accent-teal);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.05);
}

.hud-visual-progress-block {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.progress-ring-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
}

.progress-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-ring-circle-bar {
  transition: stroke-dashoffset var(--transition-fast) linear;
  filter: drop-shadow(0 0 6px var(--accent-blue-glow));
}

.progress-ring-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.progress-ring-percentage {
  font-family: var(--font-brand);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.progress-ring-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 2px;
}

.hud-statistics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 10px;
  margin-bottom: 18px;
  text-align: center;
}

.hud-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-stat-box:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.hud-stat-label {
  font-size: 0.6rem;
  color: var(--text-secondary);
}

.hud-stat-value {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 700;
}

.hud-linear-status-bar {
  margin-bottom: 18px;
}

.linear-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
  overflow: hidden;
}

.linear-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
  border-radius: 2px;
  transition: width var(--transition-fast) linear;
}

.hud-file-transferring-list {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-md);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.hud-action-controls {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   HISTORY DRAWER COMPONENT
   ========================================================================== */

.history-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 4, 0.8);
  backdrop-filter: blur(8px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.history-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.history-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--card-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-slow) cubic-bezier(0.16, 1, 0.3, 1);
}

.history-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.drawer-header h3 {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 700;
}

.close-drawer-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-drawer-btn:hover {
  color: var(--text-primary);
  transform: scale(1.05);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 1.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.history-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: var(--transition-fast);
}

.history-item-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.history-status-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  position: absolute;
  top: 10px;
  right: 12px;
}

.history-status-badge.success {
  background: rgba(59, 130, 246, 0.06);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.history-status-badge.failed {
  background: rgba(239, 68, 68, 0.06);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.1);
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   TOAST NOTIFICATION COMPONENT (sleek shadcn style)
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  width: auto;
  min-width: 220px;
  max-width: 280px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s, transform 0.25s;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toast.removing {
  opacity: 0;
  transform: translateX(30px) scale(0.95);
}

.toast-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.toast.success { border-color: rgba(96, 165, 250, 0.22); }
.toast.info { border-color: rgba(20, 184, 166, 0.22); }
.toast.error { border-color: rgba(239, 68, 68, 0.22); }

.toast.success .toast-icon { color: var(--accent-blue); }
.toast.info .toast-icon { color: var(--accent-teal); }
.toast.error .toast-icon { color: var(--accent-red); }

.toast-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.toast-title {
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 650;
  color: #ffffff;
  line-height: 1.25;
}

.toast-message {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.25;
  margin-top: 1px;
}

/* ==========================================================================
   UTILITY HELPER CLASSES
   ========================================================================== */

.text-teal { color: var(--accent-teal) !important; }
.text-indigo { color: var(--accent-blue) !important; }
.text-pink { color: var(--accent-pink) !important; }
.text-danger { color: var(--accent-red) !important; }
.mr-xs { margin-right: 4px; }
.mr-sm { margin-right: 8px; }
.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-5px);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.w-half {
  width: calc(50% - 6px);
}

/* Responsive fixes */
@media (max-width: 480px) {
  .app-container {
    padding: 8px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .app-header {
    padding: 8px 10px !important;
    margin-bottom: 12px !important;
    gap: 6px !important;
  }
  
  .brand {
    gap: 6px !important;
  }
  
  .brand-logo {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    padding: 4px !important;
  }
  
  .brand-logo-img {
    border-radius: 5px !important;
  }
  
  .brand-name {
    font-size: 0.95rem !important;
  }
  
  .brand-badge {
    font-size: 0.55rem !important;
    letter-spacing: 0.5px !important;
  }
  
  .header-actions {
    gap: 6px !important;
  }
  
  .icon-btn-premium {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important; /* Square-rounded theme toggle on mobile */
  }
  
  .server-status {
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important; /* Square rounded connection dot wrapper */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .server-status .status-text {
    display: none !important;
  }
  
  .dashboard-card {
    padding: 18px 14px;
    width: 100%;
    border-radius: var(--border-radius-lg);
  }
  
  .digit-box, .pin-char-field {
    width: 32px !important;
    height: 40px !important;
    font-size: 1.15rem !important;
  }
  
  .pin-inputs {
    gap: 4px !important;
  }
  
  .hud-statistics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
  }
  
  .hud-stat-box:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 4px;
  }
  
  .proposed-decisions {
    flex-direction: column-reverse;
  }
  
  .proposed-decisions button {
    width: 100% !important;
  }

  /* Toast notification responsiveness - centered and compact on mobile viewports */
  .toast-container {
    left: 50% !important;
    right: auto !important;
    top: 10px !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    min-width: 180px !important;
    max-width: 240px !important; /* Extremely elegant and narrow */
    gap: 4px !important;
  }

  .toast {
    width: auto !important;
    padding: 6px 12px !important; /* Ultra-compact padding */
    border-radius: 16px !important;
    gap: 6px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  }

  .toast-icon {
    font-size: 0.82rem !important;
  }

  .toast-body {
    gap: 0px !important;
  }

  .toast-title {
    font-size: 0.72rem !important;
  }

  .toast-message {
    font-size: 0.64rem !important;
    margin-top: 0px !important;
  }
  
  @keyframes toastSlideIn {
    from {
      opacity: 0;
      transform: translateY(-20px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* ==========================================================================
   ACTIVE ROOM HUB & OVERLAY STYLING ADDITIONS (SHADCN GLASS)
   ========================================================================== */

#pane-room-hub.active {
  display: block;
  animation: slideFadeIn var(--transition-normal) forwards;
}

.room-hub-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.room-hub-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Float transfer HUD as a high-end centered overlay modal */
#transfer-hud {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1050 !important;
  width: 90% !important;
  max-width: 440px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
}

/* ==========================================================================
   GLASSY LIGHT MODE THEME & PREMIUM SWITCH TOGGLER
   ========================================================================== */

body.light-mode {
  --bg-space: #f8fafc; /* Slate-50 (Pure Light variant) */
  --card-bg: rgba(255, 255, 255, 0.7); /* Zinc-50 with 70% opacity */
  --card-border: rgba(15, 23, 42, 0.08); /* Dark slate thin elegant border */
  --card-border-glow: rgba(59, 130, 246, 0.15); /* Soft premium blue glow */
  
  --text-primary: #0f172a; /* Slate-900 */
  --text-secondary: #475569; /* Slate-600 */
  --text-muted: #94a3b8; /* Slate-400 */
  
  --glass-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.04);
}

/* Light mode specific element adjustments */
body.light-mode .dashboard-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 30px 60px -10px rgba(15, 23, 42, 0.06), 0 0 30px rgba(59, 130, 246, 0.02);
}

body.light-mode .ambient-glow {
  opacity: 0.15;
}

body.light-mode .bg-glow-indigo {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, transparent 70%);
}

body.light-mode .bg-glow-pink {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
}

body.light-mode .bg-glow-teal {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

body.light-mode ::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.08);
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.2);
}

body.light-mode .app-header {
  background: rgba(255, 255, 255, 0.92); /* Sleek light slate pill background */
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.light-mode .brand-name {
  color: #0f172a !important;
}

body.light-mode .brand-logo {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02) !important;
}

body.light-mode .icon-btn-premium {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
}

body.light-mode .icon-btn-premium:hover {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: #0f172a !important;
}

/* White and thin outline theme switcher button for light mode */
body.light-mode #theme-toggle-btn {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode #theme-toggle-btn:hover {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .server-status {
  background: rgba(59, 130, 246, 0.05) !important;
  border-color: rgba(59, 130, 246, 0.15) !important;
}

body.light-mode .status-text {
  color: #334155 !important;
}

body.light-mode #theme-toggle-btn i {
  font-weight: 300 !important; /* Thin styling for outline moon icon */
}

body.light-mode .tab-segment-control {
  background: rgba(241, 245, 249, 0.8);
}

body.light-mode .tab-glider {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.04);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

body.light-mode .tab-btn {
  color: var(--text-secondary);
}

body.light-mode .tab-btn.active {
  color: var(--text-primary);
}

body.light-mode .dropzone-container {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(0, 0, 0, 0.005);
}

body.light-mode .dropzone-container:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.02);
}

body.light-mode .dropzone-icon-glow {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .staged-container {
  background: rgba(0, 0, 0, 0.005);
}

body.light-mode .staged-file-card {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.03);
}

body.light-mode .staged-file-card:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .file-icon-box {
  background: rgba(0, 0, 0, 0.01);
}

body.light-mode .digit-box,
body.light-mode .pin-char-field {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .pin-char-field:focus {
  background: rgba(59, 130, 246, 0.04);
}

body.light-mode .qr-glow-frame {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 30px rgba(15, 23, 42, 0.05);
}

body.light-mode .qrcode-wrapper {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.05);
}

body.light-mode .history-drawer {
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.05);
}

body.light-mode .history-item-card {
  background: rgba(0, 0, 0, 0.005);
  border-color: rgba(0, 0, 0, 0.03);
}

body.light-mode .history-item-card:hover {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .toast {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .toast-title {
  color: #0f172a;
}

body.light-mode .toast-message {
  color: rgba(15, 23, 42, 0.65);
}

body.light-mode .toast.success { border-color: rgba(96, 165, 250, 0.25); }
body.light-mode .toast.info { border-color: rgba(20, 184, 166, 0.25); }
body.light-mode .toast.error { border-color: rgba(239, 68, 68, 0.25); }

body.light-mode .proposed-files-scroller {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light-mode .hud-statistics-grid {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light-mode .hud-file-transferring-list {
  background: rgba(0, 0, 0, 0.005);
  border-color: rgba(0, 0, 0, 0.03);
}

/* Float transfer HUD overlay rules in light mode */
body.light-mode #transfer-hud,
body.light-mode #proposal-modal {
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Premium Switch Slider Custom Styling */
.switch-container {
  display: inline-block;
  vertical-align: middle;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 20px;
}

.switch-slider::before {
  content: "";
  position: absolute;
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: rgba(6, 182, 212, 0.15) !important;
  border-color: var(--accent-teal) !important;
}

input:checked + .switch-slider::before {
  transform: translateX(14px);
  background-color: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal-glow);
}

body.light-mode .switch-slider {
  background-color: rgba(0, 0, 0, 0.03);
}

/* ──────────────────────────────────────────────────────────────────────────
   Pairing QR Scanner UI Additions
   ────────────────────────────────────────────────────────────────────────── */
.btn-qr-scan {
  background: rgba(59, 130, 246, 0.08);
  color: #60a5fa;
  border: 1px dashed rgba(59, 130, 246, 0.35);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: var(--transition-normal);
  margin-top: 14px;
  margin-bottom: 14px;
}

.btn-qr-scan:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.btn-qr-scan:active {
  transform: translateY(0);
}

body.light-mode .btn-qr-scan {
  background: rgba(37, 99, 235, 0.05);
  color: #2563eb;
  border: 1px dashed rgba(37, 99, 235, 0.3);
}

body.light-mode .btn-qr-scan:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
}

#qr-reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: var(--border-radius-md) !important;
}

@keyframes scanLaser {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

