@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #0a0a0f;
  --bg-panel: rgba(16, 16, 24, 0.75);
  --bg-panel-solid: #12121a;
  --bg-item: rgba(30, 30, 45, 0.5);
  --bg-item-active: rgba(108, 92, 231, 0.25);
  --accent: #7f5af0;
  --accent-hover: #9370db;
  --accent-glow: rgba(127, 90, 240, 0.4);
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(127, 90, 240, 0.5);
  --text-main: #fffffe;
  --text-muted: #94a1b2;
  --text-error: #ff5c5c;
  --canvas-bg: #1c1c24;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Base Inputs & Buttons */
input[type="text"], input[type="number"], select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

input[type="text"]:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

button {
  background: var(--bg-item);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 14px 0 var(--accent-glow);
}

button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 20px 0 var(--accent-glow);
}

button.danger {
  background: rgba(255, 92, 92, 0.15);
  border-color: rgba(255, 92, 92, 0.3);
  color: #ff5c5c;
}

button.danger:hover {
  background: #ff5c5c;
  border-color: #ff5c5c;
  color: white;
}

button.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
}

/* Main Layout */
.app-container {
  display: grid;
  grid-template-rows: 64px 1fr;
  height: 100vh;
  width: 100vw;
}

/* Header */
.app-header {
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  z-index: 10;
  border-radius: 0;
}

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

.logo-section h1, .logo-text {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #a78bfa 0%, #7f5af0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-brush-icon {
  color: var(--accent) !important;
  width: 26px !important;
  height: 26px !important;
  transform: scaleX(-1) translateY(1px);
  transform-origin: center;
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge.online {
  border-color: rgba(44, 182, 125, 0.3);
  color: #2cb67d;
}

.badge.online::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2cb67d;
  box-shadow: 0 0 8px #2cb67d;
  display: inline-block;
}

/* Workspace Grid Layout */
.workspace-container {
  grid-row: 2;
  display: flex;
  position: relative;
  overflow: hidden;
  background: var(--bg-main);
}

/* Sidebars */
.sidebar {
  width: 280px;
  height: calc(100vh - 88px);
  margin: 12px;
  padding: 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toolbar-sidebar {
  width: 140px;
  min-width: 140px;
  padding: 16px 10px;
  align-items: center;
  overflow-y: auto;
}

.layers-sidebar {
  width: 300px;
  overflow-y: auto;
}

/* Canvas Area */
.canvas-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  margin: 12px 0;
  border-radius: 16px;
  background: #111116;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.grid-background {
  background-size: 20px 20px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.artboard-container {
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  background-color: white;
  transform-origin: 0 0;
}

.layer-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.interaction-canvas {
  position: absolute;
  top: 0;
  left: 0;
  cursor: crosshair;
  z-index: 100;
}

/* Tool Buttons */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.tool-btn {
  width: 100%;
  height: 50px;
  padding: 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tool-btn span {
  font-size: 9px;
  margin-top: 4px;
  color: var(--text-muted);
}

.tool-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 12px var(--accent-glow);
}

.tool-btn.active span {
  color: rgba(255, 255, 255, 0.8);
}

/* Tool Option Sections (Shape Style, Symmetry, Recent Colors) */
.option-section {
  width: 100%;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.seg-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 100%;
}

.seg-btn {
  height: 28px;
  padding: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.seg-btn svg {
  width: 14px;
  height: 14px;
}

.seg-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 8px var(--accent-glow);
}

.demo-square {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

.demo-stroke {
  border: 2px solid currentColor;
}

.demo-fill {
  background: currentColor;
}

.demo-both {
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.35);
}

.demo-dash {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* Color Picker & Colors */
.color-picker-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.active-color-preview {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.active-color-preview input[type="color"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}

.palette-color {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.palette-color:hover {
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Controls section in Toolbar */
.control-slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
}

.control-slider-group label {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.control-slider-group input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.control-slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: var(--transition);
}

.control-slider-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent-hover);
}

/* Layers Manager Panel */
.layers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.layers-header h3 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
}

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

.layer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: var(--transition);
  cursor: pointer;
}

.layer-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.layer-item.active {
  background: var(--bg-item-active);
  border-color: var(--border-active);
  box-shadow: 0 0 10px rgba(127, 90, 240, 0.05);
}

.layer-item-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.layer-control-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
}

.layer-control-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  transform: none;
}

.layer-control-btn.active {
  color: var(--accent);
}

/* User Room Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  width: 420px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-header {
  text-align: center;
}

.modal-header h2 {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #a78bfa 0%, #7f5af0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.tab-buttons {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px;
  font-size: 14px;
}

.tab-btn.active {
  background: var(--accent);
  box-shadow: 0 4px 10px var(--accent-glow);
}

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

.form-group label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Collaborators list */
.collaborators-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  max-height: 180px;
  overflow-y: auto;
}

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

.collaborators-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.collaborator-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: white;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

/* Chat Component styling */
#chat-widget {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 300px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  height: 45px;
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#chat-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  font-size: 14px;
}

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

.chat-msg {
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg-header {
  font-weight: 600;
  margin-right: 4px;
}

.chat-msg-time {
  font-size: 9px;
  color: var(--text-muted);
  margin-left: 4px;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.chat-input-area input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--text-main);
  outline: none;
}

.chat-input-area button {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent);
  border: none;
}

.chat-input-area button:hover {
  transform: none;
}

/* Cursor Tags overlay */
.remote-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
  transition: transform 0.08s ease-out;
}

.cursor-pointer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid currentColor;
  box-shadow: 0 0 6px currentColor;
}

.cursor-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  color: white;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Toast Message */
.notification-toast {
  background: rgba(16, 16, 24, 0.9);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideUpFade 0.3s ease-out;
}

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

/* Floating Controls (Zoom/Pan info) */
.zoom-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
}

.zoom-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  font-size: 14px;
}

/* Tooltip */
.tooltip-container {
  position: relative;
}

.tooltip-container::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1e1e28;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.tooltip-container:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Bottom Tooltip (to prevent clipping by overflow boundaries) */
.tooltip-bottom {
  position: relative;
}

.tooltip-bottom::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #1e1e28;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.tooltip-bottom:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* User Role Badges */
.role-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
}

.role-badge.host {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.role-badge.assistant {
  background: rgba(127, 90, 240, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(127, 90, 240, 0.3);
}

.role-badge.member {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Collaborator Interactive Actions */
.collaborator-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.collab-action-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.collab-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  transform: scale(1.05);
}

.collab-action-btn.active {
  color: #2cb67d;
  background: rgba(44, 182, 125, 0.15);
  border-color: rgba(44, 182, 125, 0.3);
}

.collab-action-btn.active-red {
  color: #ff5c5c;
  background: rgba(255, 92, 92, 0.15);
  border-color: rgba(255, 92, 92, 0.3);
}

/* Locked drawing overlay */
.locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  pointer-events: auto; /* blocks clicks to canvas layers below */
  border-radius: 16px;
  animation: fadeIn 0.3s ease-out;
}

.locked-overlay-box {
  background: rgba(16, 16, 24, 0.95);
  border: 1px solid rgba(255, 92, 92, 0.25);
  padding: 24px 32px;
  border-radius: 16px;
  text-align: center;
  max-width: 340px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 92, 92, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.locked-overlay-box h4 {
  color: #ff5c5c;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.locked-overlay-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Language Switcher Styling */
.lang-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  min-width: 32px;
}

.lang-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  transform: none;
}

.lang-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 6px var(--accent-glow);
}

/* Grid Overlay Styles */
.grid-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.grid-square {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(127, 90, 240, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(127, 90, 240, 0.15) 1px, transparent 1px);
}

.grid-dot {
  background-size: 40px 40px;
  background-image: radial-gradient(circle, rgba(127, 90, 240, 0.3) 1.5px, transparent 1.5px);
}

/* Keyboard Key (KBD) tags styling */
kbd {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 11px;
  color: #a78bfa;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  display: inline-block;
  font-weight: bold;
}

/* Info section list in entrance modal */
.info-section-title {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-item {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 4px;
}

.info-item strong {
  color: var(--text-main);
}

/* Shortcuts grid inside help modal */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.shortcut-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mobile Responsive Styling */
.mobile-only-btn {
  display: none !important;
}

@media (max-width: 768px) {
  /* Mobile Toggle Buttons */
  .mobile-only-btn {
    display: inline-flex !important;
    background: var(--bg-item);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    height: 38px;
    width: 38px;
  }
  
  .mobile-only-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
  }

  .logo-text {
    display: none !important;
  }

  .lang-switcher {
    margin-left: 6px !important;
  }

  /* Structural Adjustments */
  .app-container {
    grid-template-rows: 56px 1fr !important;
  }

  .app-header {
    height: 56px !important;
    padding: 0 12px !important;
  }

  .workspace-container {
    flex-direction: column;
  }

  /* Slide-in Drawers */
  .toolbar-sidebar {
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    height: calc(100vh - 56px) !important;
    width: 140px !important;
    margin: 0 !important;
    border-radius: 0 16px 16px 0 !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
    background: var(--bg-panel-solid) !important;
  }

  .toolbar-sidebar.active {
    transform: translateX(0) !important;
  }

  #right-controls-wrapper {
    position: fixed !important;
    top: 56px !important;
    right: 0 !important;
    height: calc(100vh - 56px) !important;
    width: 280px !important;
    margin: 0 !important;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000 !important;
    background: var(--bg-panel-solid) !important;
    padding: 12px !important;
  }

  #right-controls-wrapper.active {
    transform: translateX(0) !important;
  }

  .layers-sidebar {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Canvas Layout */
  .canvas-wrapper {
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    height: 100% !important;
    border-bottom: none !important;
  }

  #chat-widget {
    bottom: 20px !important;
    right: 12px !important;
    width: calc(100vw - 24px) !important;
    max-width: 280px !important;
  }

  /* Zoom controls float centered above chat */
  .zoom-controls {
    bottom: 76px !important;
  }

  /* Modal responsive scale */
  .modal-content {
    width: 95vw !important;
    max-height: 90vh !important;
    padding: 16px !important;
    gap: 16px !important;
  }
  
  .shortcuts-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
}

/* Lobby Open Rooms List Styles */
.lobby-room-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.lobby-room-item:hover {
  background: rgba(127, 90, 240, 0.1);
  border-color: var(--accent);
}

.lobby-room-id {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  font-family: monospace;
}

.lobby-room-count {
  font-size: 10px;
  color: var(--accent);
  background: rgba(127, 90, 240, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

/* Entrance Modal Info Tabs & Column layout */
.info-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-title);
  text-transform: uppercase;
}

.info-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.info-tab-btn.active {
  color: white;
  background: var(--accent);
  box-shadow: 0 2px 6px var(--accent-glow);
}

.info-content-pane {
  flex: 1;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Modal layout responsive overrides */
@media (max-width: 768px) {
  #login-modal-content {
    flex-direction: column !important;
    width: 95vw !important;
    gap: 16px !important;
    padding: 16px !important;
  }
  
  .login-right-col {
    border-left: none !important;
    border-top: 1px solid var(--border) !important;
    padding-left: 0 !important;
    padding-top: 16px !important;
  }
  
  .info-content-pane {
    max-height: 220px !important;
  }
}


