* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0f0f13;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.floor {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transition: background-image 0.5s ease-in-out;
}

.btn {
  font-family: 'Outfit', sans-serif;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #FF3366 0%, #FF9933 100%);
  color: white;
  padding: 12px 24px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 51, 102, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.glass-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  padding: 10px;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: border-color 0.3s;
}

.glass-input:focus {
  border-color: #FF3366;
}

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

.glass-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FF3366;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.6);
}

.glass-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 19, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 40;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.about.is-visible {
  visibility: visible;
  opacity: 1;
}

#about-waveform {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 41;
  opacity: 0.3;
}

.about__container {
  position: relative;
  z-index: 42;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 60px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glow-text {
  font-size: 64px;
  font-weight: 800;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #fff 0%, #FF3366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.3));
}

.about__subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.btn-glow {
  font-size: 18px;
  padding: 16px 40px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes slideUp {
  to { transform: translateY(0); }
}

/* Sidebar and toggle styling */
.menu-toggle {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 30;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  color: white;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background: rgba(20, 20, 25, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar.open {
  right: 0;
}

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

.sidebar-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.close-sidebar {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.close-sidebar:hover {
  opacity: 1;
}

.sidebar-content {
  padding: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.control-group label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.row-flex {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.tag-input-group {
  display: flex;
  gap: 10px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Play/Pause Button */
.btn-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF3366 0%, #FF9933 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.btn-icon:hover {
  transform: scale(1.05);
}

/* Toggles */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.toggle-container input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: 0.3s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-container input:checked + .toggle-slider {
  background: #FF3366;
}

.toggle-container input:checked + .toggle-slider::after {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 16px;
}

/* Fix missing icons for play pause */
#control-audio {
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center center;
}

#control-audio[data-playing="true"] {
  background-image: url(204877eaaa86b8d51d02.svg);
}

#control-audio[data-playing="false"] {
  background-image: url(7434b73587a907305d9c.svg);
}

/* Fix Checkbox Inputs Generated by App.js */
#checkFieldset input[type="checkbox"],
#checkFieldset input[type="radio"] {
  margin-right: 10px;
  accent-color: #FF3366;
}
#checkFieldset label {
  color: white;
  text-transform: none;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

