/* =====================
   🔧 Reset & Base
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --card-bg: rgba(39, 39, 42, 0.85);
  --border-color: #3f3f46;
}

body.light-theme {
  --bg-color: #f8fafc;
  --text-color: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.85);
  --border-color: #d1d5db;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  padding: 1rem;
}

/* =====================
   💳 Card Styling
===================== */
.wrapper {
  position: relative;
  width: 100%;
}

.wrapper::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    rgba(244, 114, 182, 0.4) 0deg,
    rgba(192, 132, 252, 0.4) 0deg,
    transparent 80deg
  );
  z-index: -1;
  animation: border-spin 8s linear infinite;
}

.card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  z-index: 1;
  width: 100%;
}

.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #7c77c6, #ff5e62, #ffcd3c, #7c77c6);
  z-index: -1;
  animation: border-spin 10s linear infinite;
}

.card-content {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
  transition: background 0.3s ease;
}

/* =====================
   ✨ Animations
===================== */
@keyframes border-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

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

/* =====================
   🧭 Buttons
===================== */
button {
  transition: all 0.2s ease;
}

button:hover:not(:disabled) {
  transform: scale(1.05);
}

button:focus {
  outline: 2px solid var(--text-color);
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =====================
   🌗 Theme Toggle
===================== */
#themeToggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

#themeToggle:active {
  transform: rotate(20deg);
}
