/* VDS Apps Bundle CSS - Auto-generated */

/* === mandelbrot.css === */
/*
 * Copyright (c) 2025 VDS Framework
 * Part of the Virtual Desktop Site Framework
 * Mandelbrot Visualizer Styles
 */

/* Mandelbrot window content layout */
#mandelbrot-window .window-content {
  display: flex;
  flex-direction: row;
  padding: 0;
  overflow: hidden;
  background: var(--vds-bg-dark, #1a1a1a);
}

/* Main canvas container */
.mandelbrot-canvas-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000;
  padding: 10px;
}

/* Canvas styling */
#mandelbrot-canvas {
  display: block;
  border: 2px solid var(--vds-border, #333);
  cursor: crosshair;
  background: #000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Loading overlay */
#mandelbrot-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: #0f0;
  padding: 20px 40px;
  border-radius: 8px;
  border: 2px solid #0f0;
  font-family: monospace;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
}

#mandelbrot-loading .spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 255, 0, 0.3);
  border-top-color: #0f0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Controls panel */
.mandelbrot-controls-panel {
  width: 280px;
  background: var(--vds-bg-secondary, #2a2a2a);
  border-left: 1px solid var(--vds-border, #444);
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--vds-text-primary, #ddd);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.mandelbrot-controls-panel h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--vds-text-primary, #fff);
  border-bottom: 1px solid var(--vds-border, #444);
  padding-bottom: 5px;
}

.mandelbrot-controls-panel h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--vds-text-secondary, #ccc);
}

/* Control sections */
.control-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Labels and inputs */
.control-section label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--vds-text-secondary, #ccc);
  font-size: 13px;
}

.control-section input[type="range"] {
  width: 100%;
  margin: 5px 0;
}

.control-section select {
  width: 100%;
  padding: 6px;
  background: var(--vds-border, #333);
  color: var(--vds-text-primary, #fff);
  border: 1px solid var(--vds-border-hover, #555);
  border-radius: 4px;
  font-size: 13px;
}

.control-section select:focus {
  outline: none;
  border-color: #0af;
}

/* Value display */
#iter-value {
  font-weight: bold;
  color: #0af;
  font-size: 14px;
}

/* Buttons */
.mandelbrot-controls-panel button {
  padding: 8px 12px;
  background: var(--vds-border, #444);
  color: var(--vds-text-primary, #fff);
  border: 1px solid var(--vds-border-hover, #666);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.mandelbrot-controls-panel button:hover {
  background: var(--vds-border-hover, #555);
  border-color: #0af;
}

.mandelbrot-controls-panel button:active {
  background: var(--vds-border, #333);
}

/* Button group */
.button-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button-group button {
  flex: 1;
  min-width: 0;
}

/* Info panel */
.info-panel {
  background: var(--vds-bg-dark, #1a1a1a);
  padding: 10px;
  border-radius: 4px;
  border: 1px solid var(--vds-border, #333);
}

.info-panel p {
  margin: 5px 0;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-panel code {
  background: #000;
  padding: 2px 6px;
  border-radius: 3px;
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 11px;
}

/* Instructions */
.instructions {
  background: var(--vds-bg-dark, #1a1a1a);
  padding: 10px;
  border-radius: 4px;
  border: 1px solid var(--vds-border, #333);
}

.instructions ul {
  margin: 5px 0;
  padding-left: 20px;
  font-size: 12px;
}

.instructions li {
  margin: 4px 0;
  line-height: 1.4;
}

.instructions strong {
  color: #0af;
}

/* Bookmarks */
.bookmarks-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#bookmark-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bookmark-btn {
  padding: 6px 10px !important;
  font-size: 12px !important;
  text-align: left;
  background: #333 !important;
  border: 1px solid #555 !important;
}

.bookmark-btn:hover {
  background: #444 !important;
  border-color: #0af !important;
}

/* Coordinate tooltip */
#coord-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: #0f0;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #0f0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  pointer-events: none;
  z-index: 10000;
  white-space: nowrap;
}

#coord-tooltip code {
  color: #0f0;
  background: transparent;
}

/* Hidden utility class */
.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #mandelbrot-window .window-content {
    flex-direction: column;
  }

  .mandelbrot-controls-panel {
    width: 100%;
    max-height: 200px;
    border-left: none;
    border-top: 1px solid var(--vds-border, #444);
  }

  .mandelbrot-canvas-container {
    min-height: 300px;
  }
}

/* Range slider customization */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #444;
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #0af;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #0cf;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #0af;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #0cf;
}

/* Scrollbar styling for controls panel */
.mandelbrot-controls-panel::-webkit-scrollbar {
  width: 8px;
}

.mandelbrot-controls-panel::-webkit-scrollbar-track {
  background: var(--vds-bg-dark, #1a1a1a);
}

.mandelbrot-controls-panel::-webkit-scrollbar-thumb {
  background: var(--vds-border, #444);
  border-radius: 4px;
}

.mandelbrot-controls-panel::-webkit-scrollbar-thumb:hover {
  background: var(--vds-border-hover, #555);
}

/* === snake.css === */
/*
 * Copyright (c) 2025 VDS Framework
 * Part of the Virtual Desktop Site Framework
 * Snake 2025 Styles
 */

/* Snake window content layout */
#snake-window .window-content {
  display: flex;
  flex-direction: row;
  padding: 0;
  overflow: hidden;
  background: var(--vds-bg-dark, #1a1a1a);
}

/* Main canvas container */
.snake-canvas-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000;
  padding: 10px;
}

/* Canvas styling */
#snake-canvas {
  display: block;
  border: 2px solid var(--vds-border, #333);
  box-shadow: 0 0 20px rgba(0, 255, 159, 0.3);
  background: #000;
}

/* Pause indicator */
#snake-pause-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: #00ff9f;
  padding: 30px 50px;
  border-radius: 12px;
  border: 3px solid #00ff9f;
  font-family: 'Courier New', monospace;
  font-size: 32px;
  font-weight: bold;
  z-index: 10;
  text-shadow: 0 0 10px #00ff9f;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
}

/* Game over overlay */
#snake-gameover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  color: #ff0099;
  padding: 40px 60px;
  border-radius: 16px;
  border: 3px solid #ff0099;
  text-align: center;
  z-index: 10;
  box-shadow: 0 0 30px rgba(255, 0, 153, 0.5);
}

#snake-gameover h2 {
  margin: 0 0 20px 0;
  font-size: 48px;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 20px #ff0099;
}

#snake-gameover p {
  margin: 10px 0;
  font-size: 24px;
  font-family: Arial, sans-serif;
}

#snake-final-score {
  font-size: 36px;
  font-weight: bold;
  color: #00ff9f;
  text-shadow: 0 0 15px #00ff9f;
}

#snake-gameover .restart-hint {
  margin-top: 30px;
  font-size: 16px;
  color: var(--vds-text-secondary, #ccc);
  font-style: italic;
}

/* Sidebar */
.snake-sidebar {
  width: 280px;
  background: var(--vds-bg-secondary, #2a2a2a);
  border-left: 1px solid var(--vds-border, #444);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  color: var(--vds-text-primary, #ddd);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.snake-sidebar h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  color: #00ff9f;
  border-bottom: 2px solid #00ff9f;
  padding-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 255, 159, 0.5);
}

/* Stats section */
.snake-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--vds-bg-dark, #1a1a1a);
  border-radius: 6px;
  border: 1px solid var(--vds-border, #333);
}

.stat-label {
  color: var(--vds-text-secondary, #ccc);
  font-size: 13px;
}

.stat-value {
  font-size: 20px;
  font-weight: bold;
  color: #00ff9f;
  font-family: 'Courier New', monospace;
}

.stat-value.time-bonus {
  color: #58a6ff;
}

.stat-value.highscore {
  color: #ffd700;
}

/* Controls section */
.snake-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.snake-controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--vds-text-secondary, #ccc);
  font-size: 13px;
}

.snake-controls select {
  width: 100%;
  padding: 8px;
  background: var(--vds-border, #333);
  color: var(--vds-text-primary, #fff);
  border: 1px solid var(--vds-border-hover, #555);
  border-radius: 4px;
  font-size: 13px;
}

.snake-controls select:focus {
  outline: none;
  border-color: #00ff9f;
  box-shadow: 0 0 5px rgba(0, 255, 159, 0.5);
}

/* Checkbox styling */
.sound-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--vds-bg-dark, #1a1a1a);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.sound-toggle:hover {
  background: var(--vds-bg-secondary, #252525);
}

.sound-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Button group */
.snake-button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.snake-sidebar button {
  padding: 12px;
  background: linear-gradient(135deg, #00ff9f 0%, #00cc7f 100%);
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 255, 159, 0.3);
}

.snake-sidebar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 159, 0.5);
}

.snake-sidebar button:active {
  transform: translateY(0);
}

.snake-sidebar button:nth-child(2) {
  background: linear-gradient(135deg, #58a6ff 0%, #388bfd 100%);
  box-shadow: 0 2px 8px rgba(88, 166, 255, 0.3);
}

.snake-sidebar button:nth-child(2):hover {
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.5);
}

.snake-sidebar button:nth-child(3) {
  background: linear-gradient(135deg, #ff0099 0%, #cc0077 100%);
  box-shadow: 0 2px 8px rgba(255, 0, 153, 0.3);
}

.snake-sidebar button:nth-child(3):hover {
  box-shadow: 0 4px 12px rgba(255, 0, 153, 0.5);
}

/* Instructions */
.snake-instructions {
  background: var(--vds-bg-dark, #1a1a1a);
  padding: 15px;
  border-radius: 6px;
  border: 1px solid var(--vds-border, #333);
}

.snake-instructions h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #00ff9f;
}

.snake-instructions ul {
  margin: 0;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.8;
}

.snake-instructions li {
  margin: 5px 0;
}

.snake-instructions strong {
  color: #58a6ff;
}

/* Hidden utility class */
.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #snake-window .window-content {
    flex-direction: column-reverse;
  }

  .snake-sidebar {
    width: 100%;
    max-height: 250px;
    border-left: none;
    border-top: 1px solid var(--vds-border, #444);
    padding: 15px;
  }

  .snake-canvas-container {
    min-height: 400px;
  }

  #snake-gameover {
    padding: 30px 40px;
  }

  #snake-gameover h2 {
    font-size: 36px;
  }

  #snake-gameover p {
    font-size: 18px;
  }

  #snake-final-score {
    font-size: 28px;
  }
}

/* Scrollbar styling for sidebar */
.snake-sidebar::-webkit-scrollbar {
  width: 8px;
}

.snake-sidebar::-webkit-scrollbar-track {
  background: var(--vds-bg-dark, #1a1a1a);
}

.snake-sidebar::-webkit-scrollbar-thumb {
  background: var(--vds-border, #444);
  border-radius: 4px;
}

.snake-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--vds-border-hover, #555);
}

/* === tetris.css === */
/*
 * Tetris Game Styles
 * Copyright (c) 2025 VDS Framework
 */

#tetris-window .window-content {
  display: flex;
  gap: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ecf0f1;
  font-family: 'Courier New', monospace;
  justify-content: center;
  align-items: flex-start;
}

.tetris-game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#tetris-canvas {
  border: 3px solid #00f0f0;
  box-shadow: 0 0 20px rgba(0, 240, 240, 0.5),
              inset 0 0 20px rgba(0, 0, 0, 0.5);
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.tetris-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.tetris-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

.tetris-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

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

.tetris-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.tetris-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 150px;
}

.tetris-info-box {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #00f0f0;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0, 240, 240, 0.3);
}

.tetris-info-box h3 {
  margin: 0 0 10px 0;
  color: #00f0f0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #00f0f0;
  padding-bottom: 5px;
}

.tetris-stat {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 16px;
}

.tetris-stat-label {
  color: var(--vds-text-secondary, #ccc);
}

.tetris-stat-value {
  color: #f0f000;
  font-weight: bold;
  font-size: 18px;
}

#tetris-next {
  border: 2px solid #a000f0;
  background: #000;
  box-shadow: 0 0 10px rgba(160, 0, 240, 0.3);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  margin: 10px auto;
  display: block;
}

.tetris-instructions {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #667eea;
  border-radius: 8px;
  padding: 15px;
  font-size: 12px;
  line-height: 1.6;
}

.tetris-instructions h4 {
  margin: 0 0 10px 0;
  color: #667eea;
  font-size: 13px;
  text-transform: uppercase;
}

.tetris-instructions ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.tetris-instructions li {
  margin: 5px 0;
}

.tetris-instructions li::before {
  content: "▸ ";
  color: #00f0f0;
  font-weight: bold;
}

.tetris-key {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
  color: #f0f000;
  font-size: 11px;
}

#tetris-game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  border: 3px solid #f00000;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  font-size: 32px;
  color: #f00000;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
  animation: gameOverPulse 1s ease-in-out infinite;
  z-index: 10;
}

@keyframes gameOverPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.8;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  #tetris-window .window-content {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 15px;
  }

  #tetris-canvas {
    max-width: 100%;
    height: auto;
  }

  .tetris-sidebar {
    width: 100%;
    max-width: 300px;
  }

  .tetris-controls {
    width: 100%;
    justify-content: center;
  }

  .tetris-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
  }

  .tetris-info-box {
    padding: 12px;
  }

  .tetris-instructions {
    padding: 12px;
    font-size: 11px;
  }

  #tetris-game-over {
    font-size: 24px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .tetris-controls {
    flex-direction: column;
  }

  .tetris-btn {
    width: 100%;
  }

  .tetris-stat {
    font-size: 14px;
  }

  .tetris-stat-value {
    font-size: 16px;
  }
}

/* === gameoflife.css === */
/*
 * Conway's Game of Life Styles
 * Copyright (c) 2025 VDS Framework
 */

#gol-window .window-content {
  display: flex;
  gap: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  color: #ecf0f1;
  font-family: 'Courier New', monospace;
  justify-content: center;
  align-items: flex-start;
}

.gol-game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#gol-canvas {
  border: 3px solid #00ff00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5),
              inset 0 0 20px rgba(0, 0, 0, 0.5);
  background: #0a0a0a;
  cursor: crosshair;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.gol-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.gol-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: bold;
  background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 255, 0, 0.3);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gol-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 0, 0.5);
  background: linear-gradient(135deg, #00ff00 0%, #00ff66 100%);
}

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

.gol-btn.secondary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.gol-btn.secondary:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.gol-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 180px;
}

.gol-info-box {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.gol-info-box h3 {
  margin: 0 0 12px 0;
  color: #00ff00;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #00ff00;
  padding-bottom: 5px;
}

.gol-stat {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 15px;
}

.gol-stat-label {
  color: var(--vds-text-secondary, #ccc);
}

.gol-stat-value {
  color: #00ff00;
  font-weight: bold;
  font-size: 17px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.gol-speed-control {
  margin-top: 15px;
}

.gol-speed-control label {
  display: block;
  margin-bottom: 8px;
  color: var(--vds-text-secondary, #ccc);
  font-size: 13px;
}

.gol-speed-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.gol-speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #00ff00;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
  transition: all 0.2s ease;
}

.gol-speed-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.8);
}

.gol-speed-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #00ff00;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
  transition: all 0.2s ease;
}

.gol-speed-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.8);
}

.gol-speed-value {
  text-align: center;
  color: #00ff00;
  font-size: 13px;
  margin-top: 5px;
}

.gol-patterns {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #667eea;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.gol-patterns h3 {
  margin: 0 0 12px 0;
  color: #667eea;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #667eea;
  padding-bottom: 5px;
}

.gol-pattern-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.gol-pattern-btn {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  border: 1px solid #667eea;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  text-align: left;
}

.gol-pattern-btn:hover {
  background: rgba(102, 126, 234, 0.4);
  transform: translateX(3px);
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.gol-instructions {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #f0a000;
  border-radius: 8px;
  padding: 15px;
  font-size: 12px;
  line-height: 1.6;
}

.gol-instructions h4 {
  margin: 0 0 10px 0;
  color: #f0a000;
  font-size: 13px;
  text-transform: uppercase;
}

.gol-instructions ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.gol-instructions li {
  margin: 5px 0;
  color: #bdc3c7;
}

.gol-instructions li::before {
  content: "→ ";
  color: #00ff00;
  font-weight: bold;
}

/* Mobile responsive */
@media (max-width: 768px) {
  #gol-window .window-content {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 15px;
  }

  #gol-canvas {
    max-width: 100%;
    height: auto;
  }

  .gol-sidebar {
    width: 100%;
    max-width: 400px;
  }

  .gol-controls {
    width: 100%;
  }

  .gol-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 14px;
    font-size: 12px;
  }

  .gol-info-box,
  .gol-patterns,
  .gol-instructions {
    padding: 12px;
  }

  .gol-pattern-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .gol-controls {
    flex-direction: column;
  }

  .gol-btn {
    width: 100%;
  }

  .gol-stat {
    font-size: 13px;
  }

  .gol-stat-value {
    font-size: 15px;
  }

  .gol-pattern-grid {
    grid-template-columns: 1fr;
  }
}

/* === chess.css === */
/*
 * Copyright (c) 2025 VDS Framework
 * Part of the Virtual Desktop Site Framework
 * Scacchi 2025 Styles
 */

/* Chess window content layout */
#chess-window .window-content {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--vds-window-body, #242424);
  position: relative;  /* Required for modal positioning */
}

/* Main chess layout - board + panel */
.chess-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* Board container */
.chess-board-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 15px;
  min-width: 300px;
  background: #1a1a1a;
}

/* Chessboard wrapper */
#chess-board {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
}

/* Thinking indicator - inline spinner icon */
#chess-thinking {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid var(--vds-accent, #3584E4);
  border-radius: 50%;
  animation: chess-spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes chess-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hidden utility class */
.hidden {
  display: none !important;
}

/* Side panel */
.chess-panel {
  width: 260px;
  min-width: 220px;
  background: #2a2a2a;
  border-left: 1px solid #444;
  display: flex;
  flex-direction: column;
  padding: 15px;
  gap: 15px;
  overflow-y: auto;
}

/* Panel sections */
.chess-info-section,
.chess-controls-section,
.chess-captured-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Section labels */
.chess-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

/* Move history */
.chess-move-history {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
  height: 150px;
  overflow-y: auto;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 13px;
  color: #ddd;
  line-height: 1.6;
}

.chess-move-history::-webkit-scrollbar {
  width: 8px;
}

.chess-move-history::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.chess-move-history::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.chess-move-entry {
  margin: 2px 0;
}

.chess-move-entry strong {
  color: var(--vds-accent, #3584E4);
}

/* Buttons */
.chess-btn {
  background: #444;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--vds-btn-radius, 6px);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.chess-btn:hover {
  background: #555;
}

.chess-btn:active {
  transform: scale(0.98);
}

.chess-btn.primary {
  background: var(--vds-accent, #3584E4);
  color: #fff;
}

.chess-btn.primary:hover {
  background: var(--vds-accent-hover, #4a9eff);
}

.chess-btn.secondary {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
}

.chess-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #777;
}

/* Button group */
.chess-button-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chess-button-group .chess-btn {
  flex: 1;
  min-width: 70px;
  padding: 8px 12px;
  font-size: 13px;
}

/* Settings section */
.chess-settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chess-settings label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #ccc;
}

/* Select dropdown */
.chess-select {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.chess-select:focus {
  outline: none;
  border-color: var(--vds-accent, #3584E4);
}

/* Checkbox label */
.chess-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.chess-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--vds-accent, #3584E4);
  cursor: pointer;
}

/* Captured pieces section */
.chess-captured {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.chess-captured-white,
.chess-captured-black {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.chess-captured-label {
  color: #888;
  min-width: 50px;
}

#chess-captured-white,
#chess-captured-black {
  font-size: 18px;
  letter-spacing: 2px;
}

/* Footer */
.chess-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #444;
}

/* Game over modal */
.chess-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

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

.chess-modal-content {
  background: #2a2a2a;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--vds-accent, #3584E4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 90%;
}

.chess-modal-content h3 {
  margin: 0 0 15px;
  font-size: 24px;
  color: #fff;
}

#chess-game-result {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 20px;
}

.chess-modal-content .chess-btn {
  margin: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
  .chess-layout {
    flex-direction: column;
  }

  .chess-board-container {
    min-width: unset;
    padding: 10px;
  }

  #chess-board {
    max-width: 100%;
  }

  .chess-panel {
    width: 100%;
    min-width: unset;
    border-left: none;
    border-top: 1px solid #444;
    max-height: 300px;
  }

  .chess-move-history {
    height: 100px;
  }

  .chess-button-group .chess-btn {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* CM-Chessboard customizations */
.cm-chessboard .board {
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Marker dots for legal moves */
.cm-chessboard .marker.dot {
  fill: rgba(0, 0, 0, 0.3);
}

/* Last move highlight */
.cm-chessboard .marker.frame {
  stroke: var(--vds-accent, #3584E4);
  stroke-width: 3px;
  fill: none;
}

/* Pawn Promotion Dialog */
.chess-promotion-content {
  background: #2a2a2a;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--vds-accent, #3584E4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.chess-promotion-content h3 {
  margin: 0 0 15px;
  font-size: 18px;
  color: #fff;
}

.chess-promotion-options {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.chess-promotion-piece {
  width: 60px;
  height: 60px;
  font-size: 40px;
  background: #1a1a1a;
  border: 2px solid #555;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.chess-promotion-piece:hover {
  background: #333;
  border-color: var(--vds-accent, #3584E4);
  transform: scale(1.1);
}

.chess-promotion-piece:active {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .chess-promotion-piece {
    width: 50px;
    height: 50px;
    font-size: 32px;
  }
}

/* === checkers.css === */
/**
 * Checkers (Dama) - Stili CSS
 * Mini-app per VDS Framework
 *
 * @license MIT
 * @copyright 2025 VDS Framework
 */

/* ==================== Container principale ==================== */

.checkers-container {
  width: 100%;
  height: 100%;
  background: var(--vds-window-body, #242424);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.checkers-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
}

/* ==================== Board wrapper ==================== */

.checkers-board-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

#checkers-canvas {
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  border: 4px solid #5D3A1A;
  border-radius: 4px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(0, 0, 0, 0.2);
  background: #B58863;
}

/* ==================== Pannello laterale ==================== */

.checkers-panel {
  width: 220px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  overflow-y: auto;
}

/* ==================== Selettore variante ==================== */

.checkers-variant-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkers-variant-selector .checkers-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
}

/* ==================== Selettore difficoltà ==================== */

.checkers-difficulty {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkers-difficulty label {
  color: var(--vds-text-secondary, #ccc);
  font-size: 12px;
  text-transform: uppercase;
}

.checkers-difficulty select {
  padding: 8px 10px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.checkers-difficulty select:focus {
  border-color: var(--vds-accent, #3584E4);
}

/* ==================== Selettore colore ==================== */

.checkers-color-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkers-color-selector label {
  color: var(--vds-text-secondary, #ccc);
  font-size: 12px;
  text-transform: uppercase;
}

.color-buttons {
  display: flex;
  gap: 6px;
}

.color-btn {
  flex: 1;
  padding: 8px 10px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #444;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-btn:hover {
  background: #555;
}

.color-btn.active {
  border-color: var(--vds-accent, #3584E4);
  background: rgba(53, 132, 228, 0.2);
}

/* ==================== Status ==================== */

.checkers-status {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}

#checkers-turn {
  font-size: 14px;
  color: #fff;
  margin-bottom: 6px;
}

#checkers-score {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
}

/* ==================== Indicatore AI thinking ==================== */

.checkers-thinking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: rgba(53, 132, 228, 0.15);
  border: 1px solid rgba(53, 132, 228, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
}

.checkers-thinking .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--vds-accent, #3584E4);
  border-radius: 50%;
  animation: checkers-spin 0.8s linear infinite;
}

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

/* ==================== Controlli ==================== */

.checkers-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==================== Bottoni ==================== */

.checkers-btn {
  padding: 10px 14px;
  border: none;
  border-radius: 4px;
  background: #444;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.checkers-btn:hover {
  background: #555;
  transform: translateY(-1px);
}

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

.checkers-btn.active {
  background: var(--vds-accent, #3584E4);
  color: #fff;
}

.checkers-btn.primary {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  font-weight: 500;
}

.checkers-btn.primary:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.checkers-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==================== Hint regole ==================== */

.checkers-rules-hint {
  margin-top: auto;
}

.checkers-rules-hint details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.checkers-rules-hint summary {
  padding: 10px;
  cursor: pointer;
  color: var(--vds-text-secondary, #ccc);
  font-size: 13px;
  user-select: none;
  transition: background 0.2s;
}

.checkers-rules-hint summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.checkers-rules-hint details[open] summary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#rules-content {
  padding: 10px;
  font-size: 12px;
  color: var(--vds-text-secondary, #ccc);
  line-height: 1.5;
}

#rules-content p {
  margin: 0 0 8px 0;
  color: #fff;
}

#rules-content ul {
  margin: 0;
  padding-left: 18px;
}

#rules-content li {
  margin-bottom: 4px;
}

/* ==================== Responsive ==================== */

@media (max-width: 768px) {
  .checkers-layout {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }

  .checkers-board-wrapper {
    flex: none;
    height: auto;
    max-height: 60vh;
  }

  .checkers-panel {
    width: 100%;
    min-width: unset;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
  }

  .checkers-variant-selector {
    flex-direction: row;
    width: 100%;
  }

  .checkers-variant-selector .checkers-btn {
    flex: 1;
    text-align: center;
    font-size: 12px;
    padding: 8px;
  }

  .checkers-difficulty,
  .checkers-color-selector {
    flex: 1;
    min-width: 45%;
  }

  .checkers-status {
    flex: 1;
    min-width: 100%;
  }

  .checkers-controls {
    flex-direction: row;
    width: 100%;
  }

  .checkers-controls .checkers-btn {
    flex: 1;
  }

  .checkers-rules-hint {
    width: 100%;
    margin-top: 0;
  }

  .checkers-thinking {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .checkers-layout {
    padding: 8px;
  }

  .checkers-panel {
    padding: 8px;
  }

  .checkers-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  #checkers-score {
    font-size: 16px;
  }

  .color-buttons {
    flex-direction: column;
  }

  .color-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
}

/* ==================== Scrollbar personalizzata ==================== */

.checkers-panel::-webkit-scrollbar {
  width: 6px;
}

.checkers-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.checkers-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.checkers-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==================== Animazioni ==================== */

@keyframes checkers-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.checkers-thinking span {
  animation: checkers-pulse 1.5s ease-in-out infinite;
}

/* ==================== Focus states (accessibilità) ==================== */

.checkers-btn:focus,
.checkers-difficulty select:focus,
.color-btn:focus {
  outline: 2px solid var(--vds-accent, #3584E4);
  outline-offset: 2px;
}

.checkers-rules-hint summary:focus {
  outline: 2px solid var(--vds-accent, #3584E4);
  outline-offset: -2px;
}

/* ==================== High contrast mode ==================== */

@media (prefers-contrast: high) {
  .checkers-btn {
    border: 2px solid #fff;
  }

  .checkers-status {
    border: 1px solid #fff;
  }

  #checkers-canvas {
    border-width: 6px;
  }
}

/* ==================== Reduced motion ==================== */

@media (prefers-reduced-motion: reduce) {
  .checkers-thinking .spinner {
    animation: none;
  }

  .checkers-thinking span {
    animation: none;
  }

  .checkers-btn {
    transition: none;
  }
}

/* === inverted-pendulum.css === */
/**
 * Inverted Pendulum - Stili CSS
 * Mini-app Pendolo Inverso con Controllore Fuzzy
 *
 * @license MIT
 * @copyright 2025 VDS Framework
 */

/* ==================== Container principale ==================== */

.pendulum-container {
  width: 100%;
  height: 100%;
  background: var(--vds-window-body, #1e1e1e);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pendulum-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 8px;
  padding: 8px;
  box-sizing: border-box;
}

/* ==================== Sezione simulazione ==================== */

.pendulum-simulation {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 8px;
  min-height: 0;
}

.pendulum-main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pendulum-canvas-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  min-height: 200px;
}

#pendulum-canvas {
  max-width: 100%;
  max-height: 100%;
}

/* ==================== Pannello MF ==================== */

.pendulum-mf-panel {
  width: 380px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

.pendulum-mf-header {
  padding: 8px 12px;
  background: #252525;
  border-bottom: 1px solid #333;
}

.pendulum-mf-header h3 {
  margin: 0;
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}

.pendulum-mf-canvas-wrapper {
  flex: 1;
  min-height: 200px;
}

#pendulum-mf-canvas {
  width: 100%;
  height: 100%;
}

/* ==================== Controlli ==================== */

.pendulum-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: #252525;
  border-radius: 8px;
  align-items: center;
}

.pendulum-control-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pendulum-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  background: #444;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pendulum-btn:hover:not(:disabled) {
  background: #555;
  transform: translateY(-1px);
}

.pendulum-btn:active:not(:disabled) {
  transform: translateY(0);
}

.pendulum-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pendulum-btn.primary {
  background: #4CAF50;
}

.pendulum-btn.primary:hover:not(:disabled) {
  background: #45a049;
}

.pendulum-btn.warning {
  background: #ff9800;
}

.pendulum-btn.warning:hover:not(:disabled) {
  background: #f57c00;
}

.pendulum-btn.danger {
  background: #f44336;
}

.pendulum-btn.danger:hover:not(:disabled) {
  background: #d32f2f;
}

/* ==================== Toggle controller ==================== */

.pendulum-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  height: 36px;
}

.pendulum-toggle-wrapper label {
  color: var(--vds-text-secondary, #ccc);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.pendulum-toggle {
  appearance: none;
  width: 40px;
  height: 20px;
  background: #555;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.pendulum-toggle:checked {
  background: #4CAF50;
}

.pendulum-toggle::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: left 0.3s;
}

.pendulum-toggle:checked::after {
  left: 22px;
}

/* ==================== Statistiche ==================== */

.pendulum-stats-wrapper {
  display: flex;
  gap: 16px;
  padding: 0 12px;
  margin-left: auto;
}

#pendulum-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-family: monospace;
  color: var(--vds-text-secondary, #ccc);
}

#pendulum-stats > div {
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ==================== Legenda MF ==================== */

.pendulum-mf-legend {
  display: flex;
  gap: 12px;
  padding: 6px 12px;
  background: #1f1f1f;
  border-top: 1px solid #333;
  flex-wrap: wrap;
}

.pendulum-mf-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--vds-text-secondary, #ccc);
}

.pendulum-mf-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-nb { background: #e74c3c; }
.legend-ns { background: #e67e22; }
.legend-ze { background: #2ecc71; }
.legend-ps { background: #3498db; }
.legend-pb { background: #9b59b6; }

/* ==================== Info tooltip ==================== */

.pendulum-info {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 11px;
  color: #666;
  pointer-events: none;
}

/* ==================== Responsive ==================== */

@media (max-width: 900px) {
  .pendulum-simulation {
    flex-direction: column;
  }

  .pendulum-mf-panel {
    width: 100%;
    min-width: unset;
    max-height: 250px;
  }
}

@media (max-width: 600px) {
  .pendulum-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .pendulum-control-group {
    justify-content: center;
  }

  .pendulum-toggle-wrapper {
    justify-content: center;
  }

  .pendulum-stats-wrapper {
    margin-left: 0;
    justify-content: center;
  }

  #pendulum-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pendulum-mf-panel {
    max-height: 200px;
  }

  .pendulum-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* ==================== Animazioni ==================== */

@keyframes pendulum-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pendulum-running .pendulum-btn.primary {
  animation: pendulum-pulse 1s ease-in-out infinite;
}

/* ==================== Focus states ==================== */

.pendulum-btn:focus {
  outline: 2px solid var(--vds-accent, #3584E4);
  outline-offset: 2px;
}

.pendulum-toggle:focus {
  outline: 2px solid var(--vds-accent, #3584E4);
  outline-offset: 2px;
}

/* ==================== Scrollbar ==================== */

.pendulum-mf-panel::-webkit-scrollbar {
  width: 6px;
}

.pendulum-mf-panel::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.pendulum-mf-panel::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

/* ==================== High contrast ==================== */

@media (prefers-contrast: high) {
  .pendulum-btn {
    border: 2px solid #fff;
  }

  .pendulum-mf-panel {
    border: 1px solid #fff;
  }
}

/* ==================== Reduced motion ==================== */

@media (prefers-reduced-motion: reduce) {
  .pendulum-btn {
    transition: none;
  }

  .pendulum-toggle {
    transition: none;
  }

  .pendulum-toggle::after {
    transition: none;
  }

  .pendulum-running .pendulum-btn.primary {
    animation: none;
  }
}

/* === threebody.css === */
/**
 * Three-Body Problem Simulator - Styles
 *
 * @license MIT
 * @copyright 2025 VDS Framework
 */

/* ==================== Window Layout ==================== */

#threebody-window .window-content {
  display: flex;
  flex-direction: row;
  padding: 0;
  overflow: hidden;
  background: #1a1a2e;
}

.threebody-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

/* ==================== Canvas Panel ==================== */

.threebody-canvas-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #1a1a2e;
  min-width: 0;
}

#threebody-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==================== Controls Panel ==================== */

.threebody-controls-panel {
  width: 220px;
  min-width: 200px;
  background: linear-gradient(180deg, #2a2a3e 0%, #1e1e2e 100%);
  border-left: 1px solid #3a3a4e;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.threebody-controls-panel h3 {
  margin: 0 0 5px 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #3a3a4e;
}

.threebody-controls-panel h4 {
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--vds-text-secondary, #ccc);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==================== Control Sections ==================== */

.control-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-section label {
  font-size: 12px;
  color: var(--vds-text-secondary, #ccc);
}

/* ==================== Preset Selector ==================== */

#threebody-preset {
  width: 100%;
  padding: 8px 10px;
  background: #3a3a4e;
  border: 1px solid #4a4a5e;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#threebody-preset:hover {
  border-color: #5a5a6e;
}

#threebody-preset:focus {
  outline: none;
  border-color: #4ECDC4;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

#threebody-preset option {
  background: #2a2a3e;
  color: #fff;
}

/* ==================== Description Panel ==================== */

.info-panel {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 10px;
  border: 1px solid #3a3a4e;
}

.info-panel p {
  margin: 0;
  font-size: 11px;
  color: var(--vds-text-secondary, #ccc);
  line-height: 1.5;
}

#threebody-description {
  font-style: italic;
}

/* ==================== Buttons ==================== */

.button-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.threebody-btn {
  flex: 1;
  min-width: 55px;
  padding: 8px 12px;
  background: #3a3a4e;
  color: #fff;
  border: 1px solid #4a4a5e;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.threebody-btn:hover:not(:disabled) {
  background: #4a4a5e;
  transform: translateY(-1px);
}

.threebody-btn:active:not(:disabled) {
  transform: translateY(0);
}

.threebody-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.threebody-btn.primary {
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  border-color: #4ECDC4;
}

.threebody-btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #5FE0D7 0%, #55B19E 100%);
  box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.threebody-btn.accent {
  background: linear-gradient(135deg, #FFE66D 0%, #FFB347 100%);
  border-color: #FFE66D;
  color: #1a1a2e;
}

.threebody-btn.accent:hover:not(:disabled) {
  background: linear-gradient(135deg, #FFF08D 0%, #FFC767 100%);
  box-shadow: 0 2px 8px rgba(255, 230, 109, 0.3);
}

/* ==================== Speed Slider ==================== */

#threebody-speed {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #3a3a4e;
  border-radius: 3px;
  outline: none;
}

#threebody-speed::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#threebody-speed::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

#threebody-speed::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* ==================== Toggle Checkboxes ==================== */

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--vds-text-secondary, #ccc);
  cursor: pointer;
  padding: 4px 0;
}

.toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4ECDC4;
  cursor: pointer;
}

/* ==================== Stats Display ==================== */

.info-panel code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  color: #4ECDC4;
  background: rgba(78, 205, 196, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ==================== Legend ==================== */

.threebody-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #3a3a4e;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--vds-text-secondary, #ccc);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.legend-color.body1 { background: #FF6B6B; }
.legend-color.body2 { background: #4ECDC4; }
.legend-color.body3 { background: #FFE66D; }
.legend-color.velocity { background: #00FF00; }

.legend-item code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 10px;
  color: var(--vds-text-secondary, #ccc);
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: auto;
}

/* ==================== Mobile Responsive ==================== */

@media (max-width: 768px) {
  .threebody-container {
    flex-direction: column;
  }

  .threebody-controls-panel {
    width: 100%;
    min-width: unset;
    max-height: 40vh;
    border-left: none;
    border-top: 1px solid #3a3a4e;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
    gap: 10px;
  }

  .threebody-controls-panel h3 {
    width: 100%;
    padding-bottom: 5px;
  }

  .control-section {
    flex: 1;
    min-width: 140px;
  }

  .info-panel {
    flex: 1;
    min-width: 140px;
  }

  .threebody-legend {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
  }

  .button-group {
    justify-content: center;
  }

  .threebody-btn {
    min-width: 60px;
  }
}

@media (max-width: 480px) {
  .threebody-controls-panel {
    max-height: 50vh;
  }

  #threebody-description {
    display: none;
  }
}

/* === pdf-viewer.css === */
/* core/styles/pdf-viewer.css */
/*
 * Virtual Desktop Site - PDF Viewer Styles
 * Copyright (c) 2025 VDS Framework
 */

/* === Window Content Layout === */
#pdf-viewer-window .window-content {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #1e1e1e;
}

/* === Toolbar === */
.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--vds-window-header, #2d2d2d);
  border-bottom: 1px solid var(--vds-border, #444);
  flex-wrap: wrap;
  min-height: 44px;
}

.pdf-toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-toolbar-separator {
  width: 1px;
  height: 24px;
  background: var(--vds-border, #444);
  margin: 0 8px;
}

/* === Toolbar Buttons === */
.pdf-toolbar button {
  padding: 6px 10px;
  background: var(--vds-accent, #3584e4);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
}

.pdf-toolbar button:hover:not(:disabled) {
  background: var(--vds-accent-dark, #1c71d8);
}

.pdf-toolbar button:active:not(:disabled) {
  transform: scale(0.95);
}

.pdf-toolbar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pdf-toolbar button.icon-btn {
  font-size: 18px;
  padding: 6px;
}

/* === Page Info === */
.pdf-page-info {
  color: var(--vds-text-primary, #fff);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pdf-page-input {
  width: 45px;
  padding: 4px 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--vds-border, #444);
  border-radius: 4px;
  color: var(--vds-text-primary, #fff);
  font-size: 13px;
}

.pdf-page-input:focus {
  outline: none;
  border-color: var(--vds-accent, #3584e4);
}

/* === Zoom Info === */
.pdf-zoom-info {
  color: var(--vds-text-secondary, #aaa);
  font-size: 12px;
  min-width: 40px;
  text-align: center;
}

/* === Canvas Container === */
.pdf-canvas-container {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  background: #1a1a1a;
}

#pdf-canvas {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  background: white;
}

/* === Loading Indicator === */
.pdf-loading {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.pdf-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--vds-accent, #3584e4);
  border-radius: 50%;
  animation: pdfSpin 1s linear infinite;
}

@keyframes pdfSpin {
  to {
    transform: rotate(360deg);
  }
}

.pdf-loading-text {
  color: white;
  margin-top: 15px;
  font-size: 14px;
}

/* === Error Message === */
.pdf-error {
  display: none;
  color: #ff6b6b;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
  .pdf-toolbar {
    padding: 6px 8px;
    gap: 4px;
  }

  .pdf-toolbar-separator {
    display: none;
  }

  .pdf-toolbar button {
    padding: 5px 8px;
    font-size: 12px;
    min-width: 32px;
    height: 28px;
  }

  .pdf-toolbar button.icon-btn {
    font-size: 16px;
  }

  .pdf-page-info {
    font-size: 11px;
  }

  .pdf-page-input {
    width: 35px;
    padding: 3px 4px;
    font-size: 11px;
  }

  .pdf-zoom-info {
    font-size: 10px;
    min-width: 32px;
  }

  .pdf-canvas-container {
    padding: 10px;
  }
}

/* === Touch Scroll Optimization === */
.pdf-canvas-container {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* === Theme Compatibility === */
.theme-retro-gray #pdf-viewer-window .pdf-toolbar {
  background: #c0c0c0;
  border-bottom: 2px solid #808080;
}

.theme-retro-gray #pdf-viewer-window .pdf-toolbar button {
  background: #c0c0c0;
  color: #000;
  border: 2px outset #fff;
}

.theme-retro-gray #pdf-viewer-window .pdf-toolbar button:hover:not(:disabled) {
  background: #d0d0d0;
}

.theme-digital-rain #pdf-viewer-window .pdf-toolbar {
  background: rgba(0, 17, 0, 0.9);
  border-bottom: 1px solid #00ff00;
}

.theme-digital-rain #pdf-viewer-window .pdf-toolbar button {
  background: transparent;
  border: 1px solid #00ff00;
  color: #00ff00;
}

.theme-digital-rain #pdf-viewer-window .pdf-page-info {
  color: #00ff00;
}

