/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 100%);
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: fadeIn 0.8s ease-out;
}

/* Header / Title */
h1 {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.15));
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}

/* Glassmorphism Card */
.card {
  width: 100%;
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6),
              0 0 20px 0 rgba(167, 139, 250, 0.1),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.card-text {
  font-size: 1.15rem;
  color: #e2e8f0;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* Action Button */
.btn-check {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(56, 189, 248, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-check:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(56, 189, 248, 0.4),
              0 0 0 3px rgba(56, 189, 248, 0.25);
  filter: brightness(1.05);
}

.btn-check:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px 0 rgba(56, 189, 248, 0.3);
}

/* Status Feedback Area */
.status-area {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 30px;
  color: #34d399;
  font-weight: 600;
  font-size: 0.9rem;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.status-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  animation: pulse 1.5s infinite alternate;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Responsiveness (Targeting Mobile 360px) */
@media (max-width: 380px) {
  body {
    padding: 16px;
  }
  
  .app-container {
    max-width: 100%;
  }

  h1 {
    font-size: 1.5rem;
  }

  .card {
    padding: 24px 16px;
  }

  .card-text {
    font-size: 1rem;
  }

  .btn-check {
    width: 100%;
    padding: 12px 20px;
  }
}
