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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

.app-container {
  min-height: 100vh;
  padding: 2rem 1rem;
  transition: background 0.5s ease;
  position: relative;
  overflow: hidden;
}

.app-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(131, 56, 236, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(0, 245, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.app-header {
  text-align: center;
  margin-bottom: 3rem;
}

.app-title {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00f5ff 0%, #ff006e 50%, #8338ec 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(131, 56, 236, 0.3);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(131, 56, 236, 0.4)); }
  50% { filter: drop-shadow(0 0 40px rgba(131, 56, 236, 0.6)); }
}

.app-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  font-weight: 400;
}

.main-dashboard {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.vibe-score-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.vibe-score-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 2rem;
}

.vibe-circle {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.vibe-progress {
  transition: stroke-dasharray 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              stroke 0.5s ease;
  filter: drop-shadow(0 0 8px currentColor);
}

.vibe-score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.vibe-number {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.vibe-status {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.5s ease;
}

.vibe-buddy {
  font-size: 4rem;
  margin: 1rem 0;
  transition: transform 0.3s ease;
}

.vibe-buddy-happy {
  animation: bounce 1s ease-in-out infinite;
}

.vibe-buddy-peak {
  animation: spin-bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(-10deg); }
  50% { transform: translateY(-20px) rotate(0deg); }
  75% { transform: translateY(-15px) rotate(10deg); }
}

.vibe-tip {
  background: rgba(131, 56, 236, 0.2);
  border: 1px solid rgba(131, 56, 236, 0.3);
  border-radius: 12px;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-weight: 500;
  margin-top: 1rem;
  width: 100%;
}

.best-vibe {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  color: #ffd700;
  font-weight: 600;
  text-align: center;
}

.controls-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sliders-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.vibe-slider-container {
  position: relative;
}

.vibe-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
}

.vibe-emoji {
  font-size: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.vibe-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vibe-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(131, 56, 236, 0.3);
  transition: all 0.2s ease;
}

.vibe-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(131, 56, 236, 0.5);
}

.vibe-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(131, 56, 236, 0.3);
  transition: all 0.2s ease;
}

.vibe-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(131, 56, 236, 0.5);
}

.vibe-percentage {
  position: absolute;
  right: 0;
  top: -28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
}

.quote-section {
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.2), rgba(0, 245, 255, 0.2));
  border: 1px solid rgba(131, 56, 236, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fade-in 0.5s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #8338ec, #ff006e);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(131, 56, 236, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.settings-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 1rem;
}

.toggle-label {
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

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

.share-message {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #8338ec, #00f5ff);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(131, 56, 236, 0.4);
  animation: slide-in 0.3s ease, fade-out 0.3s ease 1.7s;
  z-index: 1000;
}

@keyframes slide-in {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.easter-egg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.95), rgba(255, 0, 110, 0.95));
  color: white;
  padding: 2rem 3rem;
  border-radius: 24px;
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 0 60px rgba(131, 56, 236, 0.8);
  animation: ultimate-pulse 2s ease-in-out infinite;
  z-index: 1000;
  pointer-events: none;
}

.easter-egg.zen {
  background: linear-gradient(135deg, rgba(72, 202, 228, 0.95), rgba(0, 180, 216, 0.95));
  animation: zen-fade 3s ease-in-out;
}

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

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

.app-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 3rem;
  padding: 1rem;
}

.app-footer a {
  color: #00f5ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.app-footer a:hover {
  color: #8338ec;
}

@media (max-width: 768px) {
  .main-dashboard {
    grid-template-columns: 1fr;
  }

  .app-title {
    font-size: 2rem;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }

  .settings-row {
    flex-direction: column;
    gap: 1rem;
  }

  .share-message {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .easter-egg {
    font-size: 1.5rem;
    padding: 1.5rem 2rem;
  }
}