/* =============================
   Variables (Colors & Fonts)
============================= */
:root {
  --purple: #7b2ff7;
  --purple-light: rgba(123, 47, 247, 0.1);
  --font-family: 'Inter', sans-serif;
}

/* =============================
   Global Styles
============================= */
body {
  font-family: var(--font-family);
  background-color: #f9f9fb;
  color: #333;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 0.5rem;
}

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

/* =============================
   Cards & Shadows
============================= */
.card {
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover, .card.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* =============================
   Buttons
============================= */
.btn-purple {
  background-color: var(--purple);
  color: #fff;
  border: none;
  transition: all 0.2s ease;
}

.btn-purple:hover {
  background-color: #5f23c7;
}

.btn-outline-purple {
  border: 2px solid var(--purple);
  color: var(--purple);
  background: transparent;
  transition: all 0.2s ease;
}

.btn-outline-purple:hover {
  background: var(--purple);
  color: white;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* =============================
   Progress Bar
============================= */
.progress {
  height: 20px;
  border-radius: 12px;
  background-color: #e9ecef;
}

.progress-bar {
  background-color: var(--purple);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: width 0.3s ease;
}

/* =============================
   Form Elements
============================= */
.form-control {
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 0.2rem var(--purple-light);
  outline: none;
}

/* Labels & Icons */
.form-label i {
  margin-right: 4px;
}

/* =============================
   Alerts
============================= */
.alert {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background-color: var(--purple-light);
  color: var(--purple);
}

/* =============================
   Tables (Rewards / Campaigns)
============================= */
.table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.table td, .table th {
  border: none;
  padding: 0.75rem 1rem;
  background-color: #fff;
  border-radius: 8px;
}

.table tbody tr:hover td {
  background-color: var(--purple-light);
}

/* =============================
   Responsive Helpers
============================= */
@media (max-width: 768px) {
  .fade-in {
    animation-duration: 0.3s;
  }

  .card-body {
    padding: 1rem !important;
  }
}

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

/* =============================
   Utilities
============================= */
.text-purple { color: var(--purple) !important; }
.bg-purple { background-color: var(--purple) !important; }
.bg-purple-light { background-color: var(--purple-light) !important; }
.rounded-circle { border-radius: 50% !important; }
