@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;600;800&family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #F8F9FA;
  /* Light clean background */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --neon-green: #0df233;
  /* Stich UI Custom Color */
  --neon-green-dim: rgba(13, 242, 51, 0.15);
  --bright-orange: #FF5722;
  --text-main: #1A202C;
  /* Dark text */
  --text-mute: #718096;
  /* Gray text */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Lexend', 'Outfit', sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#root {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  max-height: 900px;
  background-color: var(--bg-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.dashboard-container {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  background: radial-gradient(circle at top right, rgba(13, 242, 51, 0.08), transparent 50%),
    radial-gradient(circle at bottom left, rgba(255, 87, 34, 0.05), transparent 50%);
  position: relative;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

/* Glassmorphism Classes */

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  /* ROUND_FULL approach for panels */
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.glass-panel:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.challenge-badge {
  background: var(--text-main);
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.challenge-badge.success {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 4px 15px rgba(13, 242, 51, 0.4);
}

.pet-room {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.yorkie-character {
  width: 160px;
  height: 160px;
  object-fit: contain;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.action-bark {
  animation: bark 0.6s infinite alternate;
}

@keyframes bark {

  0%,
  80%,
  100% {
    transform: scale(1) translateY(0);
  }

  90% {
    transform: scale(1.08) translateY(-8px) rotate(-6deg);
  }

  95% {
    transform: scale(1.08) translateY(-8px) rotate(6deg);
  }
}

.action-excited {
  animation: excited-dog 0.5s infinite alternate;
}

@keyframes excited-dog {

  0%,
  50%,
  100% {
    transform: scale(1, 1) rotate(0deg);
  }

  25% {
    transform: scale(1.05, 0.92) rotate(-5deg);
  }

  75% {
    transform: scale(1.05, 0.92) rotate(5deg);
  }
}

.action-run {
  animation: run-bounce 0.4s infinite alternate;
}

@keyframes run-bounce {
  from {
    transform: translateY(0) rotate(-2deg);
  }

  to {
    transform: translateY(-12px) rotate(2deg);
  }
}

.animate-workout {
  animation: workout-bounce 0.6s infinite alternate;
}

@keyframes workout-bounce {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08) translateY(-5px);
  }
}

.pet-name {
  margin-top: 15px;
  font-weight: 800;
  font-size: 24px;
  color: var(--text-main);
}

.pet-level {
  font-size: 15px;
  color: var(--neon-green);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 30px;
  /* ROUND_FULL */
  padding: 18px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 0.15;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--text-main);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary.success {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 8px 25px rgba(13, 242, 51, 0.3);
}

.btn-premium {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.03);
}

.btn-premium:hover {
  border-color: var(--neon-green);
  box-shadow: 0 8px 20px rgba(13, 242, 51, 0.15);
}

/* Video Styling */

.video-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border: 4px solid #fff;
  background: #000;
}

/* Progress bar global styles */

.progress-bar-container {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  background: var(--neon-green);
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}