/*
  Liquid Glass UI Design System - Shared Library
  Version: 1.0
  Author: Dr. Gerard Joseph Lim
  Shared components for high-contrast dark-mode scientific simulations.
*/

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

:root {
  /* Colors */
  --bg-color: #000000;
  --bg-secondary: #0a0a0a;
  
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-subtle: rgba(255, 255, 255, 0.3);
  
  --primary: #38bdf8;
  --primary-dark: #0284c7;
  --primary-light: #7dd3fc;
  
  --positive: #ff4d4d;
  --negative: #4d94ff;
  --neutral: #9ca3af;
  --warning: #fbbf24;
  --error: #ef4444;
  
  /* Glass Tokens */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-border-light: rgba(255, 255, 255, 0.3);
  --glass-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    inset 0 0 5px rgba(255, 255, 255, 0.1),
    0 5px 15px rgba(0, 0, 0, 0.5);
  
  --aberration-red: rgba(255, 0, 0, 0.2);
  --aberration-cyan: rgba(0, 255, 255, 0.2);
  --chromatic-shadow:
    -2px 0 2px var(--aberration-red),
    2px 0 2px var(--aberration-cyan),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Global Reset Utilities (optional, applied to bodies using layout) */
.glass-simulation-body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  margin: 0;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Liquid Glass Panel Container */
.liquid-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-light);
  border-left: 1px solid var(--glass-border-light);
  box-shadow: var(--chromatic-shadow);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

/* Subtle reflection line */
.liquid-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

/* Typography elements */
.gradient-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  margin: 0;
}

/* Standard Buttons */
.btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.btn-primary {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.1));
  border-color: rgba(56, 189, 248, 0.3);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(56, 189, 248, 0.2));
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  color: #ccffcc;
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.btn-success:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(34, 197, 94, 0.2));
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
  color: #ffcccc;
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(239, 68, 68, 0.2));
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.1));
  color: #fff8cc;
  border-color: rgba(234, 179, 8, 0.3);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.2);
}

.btn-warning:hover {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.4), rgba(234, 179, 8, 0.2));
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
}

/* Glass Toggle Slider */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: radial-gradient(circle at 30% 30%, #fff, #ccc);
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:checked + .slider {
  background-color: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background: radial-gradient(circle at 30% 30%, #fff, var(--primary));
  box-shadow: 0 0 10px var(--primary);
}

/* Standard Range inputs */
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 0, 0, 0.4);
  height: 6px;
  border-radius: 3px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #fff, #ccc);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 10px #fff;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #fff, #ccc);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 10px #fff;
}

/* Input Fields (Text, Number, Dropdowns) */
input[type="text"],
input[type="number"],
select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* Splash Overlay Modal */
.splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.splash-modal {
  width: 90%;
  max-width: 500px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modalPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.splash-header h1,
.splash-header h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #bbbbbb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  margin-top: 0;
}

.splash-header .author {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0;
}

.splash-body h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-top: 0;
}

.splash-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.splash-body li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
  position: relative;
  padding-left: 20px;
}

.splash-body li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.splash-body strong {
  color: var(--text-main);
}

.splash-footer {
  display: flex;
  justify-content: center;
}

/* Floating Help Button */
.help-btn {
  pointer-events: auto;
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 900;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--chromatic-shadow);
}

.help-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* Close button for Property panels */
.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #fff;
  text-shadow: 0 0 10px #fff;
}

/* Signature Footer Branding */
.signature-footer,
a.signature-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  pointer-events: auto;
}

.signature-footer:hover,
a.signature-footer:hover {
  color: var(--primary);
  background: rgba(56, 189, 248, 0.05);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: left;
}

.data-table thead {
  border-bottom: 1px solid var(--glass-border);
}

.data-table th {
  padding: 8px 6px;
  color: var(--text-muted);
  font-weight: 600;
}

.data-table td {
  padding: 8px 6px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Shared Keyframe Animations */
@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(30px, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
/* Electric Fields and Forces Advanced - Simulation Specific Styles */

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#simulation-container {
  position: relative;
  width: 100%;
  height: 100%;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

/* UI Overlay Placement */
.ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  align-items: center;
}

/* Header customization */
.header {
  pointer-events: auto;
  align-self: flex-start;
  padding: 16px 32px;
}

.header:active {
  cursor: grabbing;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #ccc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Controls Placement */
.controls-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.controls {
  pointer-events: auto;
  align-self: flex-end;
  padding: 10px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 64px;
  max-width: calc(100vw - 48px);
  flex-wrap: wrap;
  justify-content: center;
}

.controls:active {
  cursor: grabbing;
}

.toggles-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Specific Trash Bin Component (Bottom-Left to avoid overlap with Charge Panel) */
.trash-bin {
  pointer-events: none;
  position: absolute;
  top: auto;
  bottom: auto;
  left: 28px;
  right: auto;
  width: 72px;
  height: 72px;
  background: rgba(239, 68, 68, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow:
    inset 0 0 20px rgba(239, 68, 68, 0.15),
    0 4px 15px rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 120;
  flex-direction: column;
}

.trash-bin.visible {
  opacity: 1;
  pointer-events: auto;
}

.trash-hint {
  position: absolute;
  left: 100%;
  right: auto;
  top: 50%;
  transform: translateY(-50%) translateX(12px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.trash-bin:hover .trash-hint,
.trash-bin.drag-over .trash-hint {
  opacity: 1;
  transform: translateY(-50%) translateX(20px);
}

.trash-bin.drag-over {
  background: rgba(239, 68, 68, 0.45);
  border-color: #ffaaaa;
  transform: scale(1.15) rotate(-5deg);
  box-shadow:
    0 0 30px rgba(239, 68, 68, 0.7),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Left Sidebar & Stacked Glass Cards */
#left-sidebar,
.left-sidebar {
  position: absolute;
  left: 28px;
  top: 150px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
  z-index: 100;
  max-height: calc(100vh - 250px);
}

.left-card {
  pointer-events: auto;
  position: relative;
  width: 100%;
  padding: 18px 20px;
  border-radius: 24px;
  display: none;
  animation: slideInLeft 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.2);
}

/* Charge Property Panel */
.charge-panel {
  pointer-events: auto;
  position: absolute;
  top: 160px;
  right: 24px;
  transform: none;
  width: 320px;
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 24px;
  cursor: grab;
  z-index: 100;
}

.charge-panel:active {
  cursor: grabbing;
}

.charge-panel.active {
  display: flex;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.panel-title {
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hint {
  pointer-events: none;
  position: absolute;
  bottom: 120px;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeIn 1s 1s forwards;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Custom scrollbar for scrollable panels */
#left-sidebar *::-webkit-scrollbar {
  width: 6px;
}
#left-sidebar *::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}
#left-sidebar *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
#left-sidebar *::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Gaussian HUD & Preset Controls */
.gaussian-hud {
  box-shadow: 
    -2px 0 2px rgba(56, 189, 248, 0.3),
    2px 0 2px rgba(96, 165, 250, 0.2),
    inset 0 0 20px rgba(56, 189, 248, 0.1),
    0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Conductor HUD */
.conductor-hud {
  box-shadow: 
    -2px 0 2px rgba(245, 158, 11, 0.3),
    2px 0 2px rgba(251, 191, 36, 0.2),
    inset 0 0 20px rgba(245, 158, 11, 0.1),
    0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.35);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.btn-preset {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.76rem;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}

.btn-preset:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-preset.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.6);
  color: #7dd3fc;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 9999px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast-notification.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notification.toast-warning {
  border-color: rgba(251, 191, 36, 0.6);
  color: #fef3c7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.3);
}

.toast-notification.toast-success {
  border-color: rgba(52, 211, 153, 0.6);
  color: #d1fae5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(52, 211, 153, 0.3);
}


.drawing-canvas {
  cursor: crosshair !important;
}

.surface-hover-canvas {
  cursor: move !important;
}