/* ==========================================================================
   LOFI BLOCK PARTY - RETRO 3D RETRO-CHILL STYLESHEET
   ========================================================================== */

:root {
  --bg-dark: #12131a;
  --bg-card: rgba(26, 28, 40, 0.88);
  --bg-card-hover: rgba(38, 41, 58, 0.95);
  --border-color: #3b3f58;
  --border-pixel: 3px solid #1a1c28;
  --text-main: #fbfbfd;
  --text-muted: #a3a8cc;
  --accent-orange: #ff7043;
  --accent-gold: #ffca28;
  --accent-pink: #ec407a;
  --accent-mint: #26a69a;
  --accent-purple: #ab47bc;
  --accent-cyan: #26c6da;
  --font-retro: 'Press Start 2P', monospace, system-ui;
  --font-ui: 'Silkscreen', 'Courier New', monospace;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-block: 0 4px 0 #0e1017;
  --shadow-block-lg: 0 6px 0 #0a0b10;
  --shadow-active: 0 1px 0 #0e1017;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
}

/* 3D Canvas Container */
#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(circle at 50% 30%, #2b2342 0%, #11121a 100%);
  cursor: grab;
}

#canvas-container:active {
  cursor: grabbing;
}

/* ==========================================================================
   LOBBY OVERLAY
   ========================================================================== */

.overlay-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 18, 0.75);
  backdrop-filter: blur(10px);
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

.overlay-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lobby-container {
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  border: 4px solid #ff7043;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 112, 67, 0.25);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.lobby-header {
  text-align: center;
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 20px;
}

.logo-badge {
  display: inline-block;
  background: #ff7043;
  color: #12131a;
  font-family: var(--font-retro);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.lobby-title {
  font-family: var(--font-retro);
  font-size: 28px;
  letter-spacing: -1px;
  color: #fff;
  text-shadow: 3px 3px 0 #ec407a, 6px 6px 0 #12131a;
  margin-bottom: 8px;
}

.lobby-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.lobby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .lobby-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: rgba(18, 19, 28, 0.85);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-title {
  font-family: var(--font-retro);
  font-size: 13px;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pixel-input {
  background: #101118;
  border: 2px solid var(--border-color);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  user-select: text;
  -webkit-user-select: text;
}

.pixel-input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 10px rgba(255, 112, 67, 0.3);
}

.theme-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.theme-pill {
  background: #181924;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  transition: all 0.2s;
}

.theme-pill:hover {
  background: #232535;
  border-color: #555b7c;
}

.theme-pill.active {
  border-color: var(--accent-orange);
  background: rgba(255, 112, 67, 0.15);
  font-weight: bold;
  color: #fff;
}

.theme-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Retro Buttons */
.pixel-btn {
  background: #ff7043;
  color: #12131a;
  border: none;
  border-radius: 6px;
  padding: 12px 18px;
  font-family: var(--font-retro);
  font-size: 11px;
  cursor: pointer;
  box-shadow: var(--shadow-block);
  transition: transform 0.1s, box-shadow 0.1s, background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.pixel-btn:hover {
  background: #ff855f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-block-lg);
}

.pixel-btn:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-active);
}

.pixel-btn.secondary {
  background: #2b2e42;
  color: #fff;
  border: 2px solid #434766;
}

.pixel-btn.secondary:hover {
  background: #373b54;
}

.pixel-btn.mint {
  background: var(--accent-mint);
  color: #101b19;
}

.pixel-btn.purple {
  background: var(--accent-purple);
  color: #fff;
}

.pixel-btn.orange {
  background: #ff7043;
  color: #12131a;
}

.pixel-btn.orange.active {
  background: #ffab40;
  box-shadow: 0 0 10px rgba(255, 171, 64, 0.6);
  color: #12131a;
}

/* Party List in Lobby */
.parties-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.party-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #181926;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 14px;
}

.party-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.party-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

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

/* ==========================================================================
   IN-GAME HUD
   ========================================================================== */

#game-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#game-hud.hidden {
  display: none;
}

/* Top Navigation Bar */
.top-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(16, 17, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  gap: 12px;
  flex-wrap: wrap;
}

.party-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.party-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-party-name {
  font-family: var(--font-retro);
  font-size: 12px;
  color: #fff;
}

.hud-theme-tag {
  background: rgba(255, 112, 67, 0.2);
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.player-count-pill {
  background: #252838;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4ade80;
}

/* Boombox Controller */
.boombox-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #181926;
  border: 2px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 8px;
}

.boombox-icon {
  font-size: 18px;
  animation: pulse-boombox 1.2s infinite ease-in-out alternate;
}

@keyframes pulse-boombox {
  0% { transform: scale(1); }
  100% { transform: scale(1.15) rotate(-3deg); }
}

.boombox-track {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--accent-gold);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-btn-mini {
  background: #2b2e40;
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.1s;
}

.hud-btn-mini:hover {
  background: #3c4059;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Voice Chat Pill */
.voice-pill {
  background: #1f2233;
  border: 2px solid #3d4263;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  color: #fff;
}

.voice-pill.active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.voice-pill.muted {
  border-color: #ef4444;
  color: #f87171;
}

/* Bottom Actions Hotbar */
.bottom-bar {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}

.action-hotbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 19, 28, 0.9);
  backdrop-filter: blur(8px);
  border: 3px solid var(--border-color);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  flex-wrap: wrap;
}

.hotbar-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #252838;
  border: 2px solid #3b3f58;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  color: #fff;
}

.hotbar-slot:hover {
  background: #34384e;
  border-color: var(--accent-orange);
  transform: translateY(-3px);
}

.hotbar-slot:active {
  transform: translateY(1px);
}

.hotbar-icon {
  font-size: 22px;
}

.hotbar-label {
  font-size: 9px;
  font-weight: bold;
  color: var(--text-muted);
  margin-top: 2px;
}

.hotbar-key {
  position: absolute;
  top: 2px;
  right: 4px;
  font-family: var(--font-retro);
  font-size: 8px;
  color: var(--accent-gold);
}

/* ==========================================================================
   CHAT DOCK (BOTTOM LEFT)
   ========================================================================== */

.chat-dock {
  pointer-events: auto;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: rgba(16, 17, 26, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.chat-messages {
  height: 160px;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.chat-msg {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-sender {
  font-weight: bold;
  color: var(--accent-orange);
  font-size: 12px;
  flex-shrink: 0;
}

.chat-sender.dj {
  color: var(--accent-gold);
  background: rgba(255, 202, 40, 0.15);
  border: 1px solid var(--accent-gold);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-retro);
  font-size: 9px;
}

.chat-text {
  color: #f1f1f5;
  user-select: text;
  -webkit-user-select: text;
}

.chat-text.dj-verse {
  color: #fff9db;
  font-style: italic;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  border-top: 2px solid var(--border-color);
  padding: 6px;
  gap: 6px;
  background: #12131d;
}

.chat-input {
  flex: 1;
  background: #1b1d2a;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

.chat-input:focus {
  border-color: var(--accent-orange);
}

.chat-quick-actions {
  display: flex;
  gap: 4px;
  padding: 4px 8px;
  background: #141520;
  border-top: 1px dashed var(--border-color);
  overflow-x: auto;
}

.quick-chip {
  background: #232535;
  color: var(--text-muted);
  border: 1px solid #383c54;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.1s;
}

.quick-chip:hover {
  background: var(--accent-orange);
  color: #12131a;
  border-color: var(--accent-orange);
}

/* ==========================================================================
   MODALS (CUSTOMIZER, DJ BOOTH, TOASTS)
   ========================================================================== */

.modal-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 18, 0.75);
  backdrop-filter: blur(8px);
  padding: 20px;
}

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

.modal-box {
  background: var(--bg-card);
  border: 4px solid var(--accent-gold);
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8);
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-color);
  background: #141520;
}

.modal-title {
  font-family: var(--font-retro);
  font-size: 14px;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-content {
  padding: 20px;
  display: flex;
  gap: 20px;
}

@media (max-width: 600px) {
  .modal-content {
    flex-direction: column;
  }
}

.avatar-preview-pane {
  width: 220px;
  height: 280px;
  background: radial-gradient(circle, #2d3148 0%, #151722 100%);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-preview-canvas {
  width: 100%;
  height: 100%;
}

.avatar-settings-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: 380px;
  padding-right: 6px;
}

.palette-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 2px solid #222;
  cursor: pointer;
  transition: transform 0.1s;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

.accessory-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.accessory-btn {
  background: #1b1d29;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.accessory-btn.active {
  background: var(--accent-orange);
  color: #12131a;
  font-weight: bold;
}

/* Toast Notifications */
#toast-container {
  position: absolute;
  top: 70px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(22, 24, 35, 0.95);
  border: 2px solid var(--accent-orange);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 500;
  animation: slide-in 0.25s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}

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

/* Emote Floating Quick Bar */
.emote-wheel {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(18, 19, 28, 0.95);
  border: 2px solid var(--accent-gold);
  border-radius: 30px;
  padding: 6px 14px;
  display: flex;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

.emote-btn {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
}

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

.emote-wheel.hidden {
  display: none;
}

/* DJ Booth Modal */
.dj-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.dj-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #181926;
  border: 2px dashed var(--accent-gold);
  border-radius: 8px;
  padding: 12px;
}

.dj-avatar-badge {
  font-size: 38px;
  background: #2b2e42;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dj-speech {
  font-size: 13px;
  color: #fce8a6;
  line-height: 1.4;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .top-bar {
    padding: 8px;
    gap: 6px;
  }
  .hud-party-name {
    font-size: 10px;
  }
  .action-hotbar {
    gap: 4px;
    padding: 4px;
  }
  .hotbar-slot {
    width: 44px;
    height: 44px;
  }
  .hotbar-icon {
    font-size: 16px;
  }
  .hotbar-label {
    display: none;
  }
  .chat-dock {
    width: 100%;
  }
  .chat-messages {
    height: 100px;
  }
}

/* ==========================================================================
   VIRTUAL WHITEBOARD & PRESENTATION SCREEN (UPPER-LEFT QUARTER)
   ========================================================================== */

.whiteboard-screen {
  position: fixed;
  top: 66px;
  left: 18px;
  width: 490px;
  max-width: min(490px, calc(50vw - 24px));
  height: 385px;
  max-height: calc(52vh - 40px);
  z-index: 120;
  pointer-events: auto;
  user-select: none;
  font-family: var(--font-body);
  transition: height 0.25s ease, max-height 0.25s ease;
}

.whiteboard-screen.hidden {
  display: none !important;
}

.whiteboard-screen.minimized {
  height: 38px !important;
  max-height: 38px !important;
  overflow: hidden;
}

.whiteboard-screen.minimized .wb-toolbar,
.whiteboard-screen.minimized .wb-viewport,
.whiteboard-screen.minimized .wb-footer {
  display: none !important;
}

.wb-window {
  width: 100%;
  height: 100%;
  background: rgba(18, 19, 28, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #ff7043;
  border-radius: 8px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.75), 0 0 14px rgba(255, 112, 67, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Title Bar */
.wb-header {
  background: linear-gradient(90deg, #241a24 0%, #1e1b2e 100%);
  border-bottom: 2px solid #363a54;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 38px;
  flex-shrink: 0;
}

.wb-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.wb-icon {
  font-size: 14px;
}

.wb-title {
  font-family: var(--font-retro);
  font-size: 10px;
  color: #ffb74d;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(255, 183, 77, 0.4);
}

.wb-presenter-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.wb-presenter-badge.presenter {
  background: #ff5722;
  color: #fff;
  border: 1px solid #ff8a65;
  box-shadow: 0 0 8px rgba(255, 87, 34, 0.5);
}

.wb-presenter-badge.viewer {
  background: #2a2e44;
  color: #80cbc4;
  border: 1px solid #394263;
}

.wb-presenter-badge.standby {
  background: #232533;
  color: #8c90a4;
  border: 1px solid #36394c;
}

.wb-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.wb-btn-tiny {
  background: #282a3d;
  border: 1px solid #454966;
  color: #e0e2ec;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.wb-btn-tiny:hover {
  background: #3c405c;
  color: #fff;
  border-color: #69709c;
}

.wb-btn-tiny.close:hover {
  background: #e53935;
  border-color: #ef5350;
  color: #fff;
}

/* Toolbar */
.wb-toolbar {
  background: #151622;
  border-bottom: 1px solid #2d3047;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.wb-tool-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wb-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wb-btn.primary {
  background: #26a69a;
  color: #fff;
  border-color: #4db6ac;
}

.wb-btn.primary:hover {
  background: #00897b;
}

.wb-btn.secondary {
  background: #ab47bc;
  color: #fff;
  border-color: #ba68c8;
}

.wb-btn.secondary:hover {
  background: #8e24aa;
}

.wb-btn-icon {
  background: #232537;
  border: 1px solid #383c5a;
  color: #e0e2ec;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.wb-btn-icon:hover:not(:disabled) {
  background: #393e61;
  color: #fff;
  border-color: #555d8f;
}

.wb-btn-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wb-btn-label {
  background: #1b1c2b;
  border: 1px solid #33364f;
  color: #ffca28;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.wb-btn-label:hover {
  background: #282a3f;
}

.wb-page-indicator {
  font-size: 10px;
  font-weight: 700;
  color: #80cbc4;
  padding: 0 4px;
  white-space: nowrap;
}

/* Viewport Area */
.wb-viewport {
  flex: 1;
  background: #0f1017;
  position: relative;
  overflow: hidden;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wb-viewport.grabbing {
  cursor: grabbing !important;
}

.wb-viewport.drag-over {
  border: 2px dashed #26a69a;
  background: rgba(38, 166, 154, 0.12);
}

.wb-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.wb-content-canvas {
  display: block;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.wb-content-image {
  max-width: none;
  max-height: none;
  display: block;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
  border-radius: 3px;
  user-select: none;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* Empty State */
.wb-empty-state {
  text-align: center;
  padding: 20px;
  pointer-events: none;
}

.wb-empty-icon {
  font-size: 40px;
  margin-bottom: 8px;
  opacity: 0.85;
}

.wb-empty-title {
  font-family: var(--font-retro);
  font-size: 12px;
  color: #ffb74d;
  margin-bottom: 6px;
}

.wb-empty-desc {
  font-size: 11px;
  color: #9094ab;
  max-width: 280px;
  line-height: 1.5;
  margin: 0 auto;
}

.wb-empty-desc b {
  color: #80cbc4;
}

/* Loading Overlay */
.wb-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 16, 23, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.wb-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 112, 67, 0.2);
  border-top-color: #ff7043;
  border-radius: 50%;
  animation: wb-spin 0.8s linear infinite;
}

@keyframes wb-spin {
  to { transform: rotate(360deg); }
}

.wb-loading-text {
  font-size: 11px;
  font-weight: 600;
  color: #ffb74d;
}

/* Footer */
.wb-footer {
  background: #141520;
  border-top: 1px solid #292c3f;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #808499;
  height: 24px;
  flex-shrink: 0;
}

.wb-filename {
  font-weight: 600;
  color: #b0b4c8;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-hint {
  font-size: 9px;
  color: #646880;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .whiteboard-screen {
    top: 56px;
    left: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    height: 310px;
    max-height: 48vh;
  }
}

