:root {
  --chatbox-bg-opacity: 0.85;
  --message-bg-opacity: 0.45;
  --maya-blue: #73c2fb;
  --blush-pink: #ff7782;
  --primary-accent: #ff7782;
  --primary-glow: rgba(255, 119, 130, 0.4);
  --secondary-accent: #73c2fb;
  --anime-cyan: #73c2fb;
  --bg-dark: #080a12;
  --glass-bg: rgba(14, 18, 29, var(--chatbox-bg-opacity, 0.85));
  --glass-border: rgba(115, 194, 251, 0.25);
  --glass-border-hover: rgba(255, 119, 130, 0.5);
  --text-main: #f8fafc;
  --text-muted: #9494ad;
  --chatbox-radius: 18px;
  --chatbox-font-size: 13.5px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --focus-ring: 0 0 0 2px var(--primary-accent);
}

*, *::before, *::after {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
}

input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

img {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  pointer-events: auto;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg-dark);
  font-family: var(--font-sans);
  color: var(--text-main);
}

.dot-field-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background-color: #0b0914;
}

#dotFieldCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  opacity: var(--bg-image-opacity, 1);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

canvas {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hidden {
  display: none;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

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

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

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

/* Global focus styles for accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 2px;
}
