/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: background-color 1s ease;
  overflow: hidden;
  position: relative;
}

/* Animated background gradient overlay */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Glass container - main wrapper */
.glass-container {
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

/* Glass card with glassmorphism effect */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3), 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Subtle shine effect on glass card */
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4), 0 25px 70px rgba(0, 0, 0, 0.35);
}

/* Glass title with text shadow for depth */
.glass-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
  letter-spacing: -0.5px;
  line-height: 1.3;
}

/* Status indicator */
.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.status-indicator.active .status-dot {
  background-color: #4cd964;
  box-shadow: 0 0 15px rgba(76, 217, 100, 0.8);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Button group container */
.button-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Glass button base styles */
.glass-button {
  position: relative;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  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),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  min-width: 140px;
  justify-content: center;
}

/* Button hover effect */
.glass-button:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Button active (pressed) effect */
.glass-button:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Ripple effect on click */
.glass-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.glass-button:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

/* Primary button variant - greenish tint */
.glass-button-primary {
  background: rgba(76, 217, 100, 0.2);
}

.glass-button-primary:hover {
  background: rgba(76, 217, 100, 0.3);
  box-shadow: 0 8px 25px rgba(76, 217, 100, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.glass-button-primary.active {
  background: rgba(76, 217, 100, 0.35);
  box-shadow: 0 0 20px rgba(76, 217, 100, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: buttonGlow 2s ease-in-out infinite;
}

/* Secondary button variant - reddish/orange tint */
.glass-button-secondary {
  background: rgba(255, 149, 0, 0.2);
}

.glass-button-secondary:hover {
  background: rgba(255, 149, 0, 0.3);
  box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Disabled button state */
.glass-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.glass-button:disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.glass-button-primary:disabled:hover {
  background: rgba(76, 217, 100, 0.2);
}

.glass-button-secondary:disabled:hover {
  background: rgba(255, 149, 0, 0.2);
}

@keyframes buttonGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(76, 217, 100, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(76, 217, 100, 0.7),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

/* Button icon styling */
.button-icon {
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Button text styling */
.button-text {
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

/* Responsive design for smaller screens */
@media (max-width: 640px) {
  .glass-container {
    padding: 1rem;
  }

  .glass-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .glass-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .button-group {
    flex-direction: column;
    gap: 1rem;
  }

  .glass-button {
    width: 100%;
    padding: 0.875rem 2rem;
  }
}

/* Smooth color transitions for dynamic background */
@keyframes smoothColorChange {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.1);
  }
}

body {
  animation: smoothColorChange 3s ease-in-out infinite;
}
