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

body.visualizer {
  font-family: 'Segoe UI', sans-serif;
  background: #1a1b1d;
  color: white;
  overflow: hidden;
  height: 100vh;
  position: relative;
}

body.visualizer::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../../css/images/background.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

#canvas-container { z-index: 1; }

.viz-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: #2B2D2F;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.viz-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.viz-logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.viz-logo-icon { display: none; }
.viz-auth { color: #e8e8e8; font-size: 14px; cursor: pointer; }

#canvas-container {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 148px;
  min-height: 400px;
}
#canvas-container.with-sidebar {
  left: 300px;
  bottom: 0;
}
#canvas-container canvas { display: block; }

.viz-panel {
  position: fixed;
  right: 24px;
  top: 84px;
  width: 320px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 24px;
  color: #1a1a1a;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.viz-panel h2 { font-size: 18px; margin-bottom: 8px; }
.viz-panel .meta { font-size: 13px; color: #666; margin-bottom: 4px; }
.viz-stripe {
  height: 6px;
  background: repeating-linear-gradient(90deg, #A4D100, #A4D100 10px, white 10px, white 20px);
  border-radius: 3px;
  margin: 16px 0;
}
.viz-btn-open {
  display: block;
  width: 100%;
  padding: 14px;
  background: #A4D100;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  text-align: center;
  text-decoration: none;
}
.viz-btn-open:hover { background: #85B800; }

.viz-carousel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  padding: 16px 24px;
  z-index: 50;
}
.viz-carousel-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}
.viz-projects {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.viz-project {
  flex-shrink: 0;
  width: 140px;
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s;
}
.viz-project.active { border-color: #A4D100; }
.viz-project img { width: 100%; height: 90px; object-fit: cover; display: block; }
.viz-project span { display: block; padding: 6px; font-size: 11px; color: #333; text-align: center; }

/* EDITOR */
.viz-sidebar {
  position: fixed;
  left: 0; top: 64px; bottom: 0;
  width: 300px;
  background: rgba(255,255,255,0.97);
  color: #1a1a1a;
  overflow-y: auto;
  z-index: 50;
  padding: 20px;
  box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}
.viz-sidebar h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0 12px;
  color: #666;
}
.viz-sidebar h3:first-child { margin-top: 0; }
.viz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.viz-option:hover { border-color: #A4D100; }
.viz-option.active { border-color: #A4D100; background: rgba(164, 209, 0, 0.12); }
.viz-swatch {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid #ccc;
  flex-shrink: 0;
}
.viz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #A4D100;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
  text-decoration: none;
}
.viz-toolbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  padding: 8px 16px;
  border-radius: 30px;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.viz-toolbar button {
  padding: 8px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  border-radius: 20px;
}
.viz-toolbar button.active { background: #A4D100; color: #1a1a1a; }
.viz-info-bar {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 50;
}
