/* ================= VARIABLES ================= */
$primary: #5e3817;
$primary-2: #7a4b20;

$text-dark: #1a1a1a;
$text-muted: #6b6b6b;

/* ================= CARD ================= */
.card {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;

  padding: 1rem 1.4rem;

  border-radius: 20px;

  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fbfaf9 100%
  );

  border: 1px solid rgba(0, 0, 0, 0.05);

  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.03),
    0 12px 28px rgba(0, 0, 0, 0.05),
    0 28px 60px rgba(0, 0, 0, 0.04);

  transition: all 0.25s ease;
}

/* subtle premium sheen */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(122, 75, 32, 0.05),
    transparent
  );

  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.06),
    0 40px 80px rgba(122, 75, 32, 0.08);
}

/* ================= CONTENT ================= */
.content {
  display: flex;
  flex-direction: column;
  gap: 6px;

  max-width: 70%;
}

/* ================= BADGE ================= */
.badge {
  margin-top: 6px;

  font-size: 0.68rem;
  font-weight: 600;

  padding: 5px 10px;
  border-radius: 999px;

  width: fit-content;

  letter-spacing: 0.2px;
}

/* active */
.activeBadge {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* inactive */
.inactiveBadge {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ================= SWITCH ================= */
.switch {
  position: relative;

  width: 56px;
  height: 30px;

  border-radius: 999px;

  background: linear-gradient(
    180deg,
    #ececec,
    #e3e3e3
  );

  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;

  padding: 4px;

  transition: all 0.3s ease;

  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* active */
.active {
  background: linear-gradient(
    135deg,
    $primary,
    $primary-2
  );

  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    0 6px 16px rgba(122, 75, 32, 0.25);
}

/* ================= KNOB ================= */
.knob {
  width: 22px;
  height: 22px;

  background: #ffffff;
  border-radius: 50%;

  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.2);

  transform: translateX(0);

  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s ease;
}

/* slide */
.active .knob {
  transform: translateX(26px);
}

/* ================= INTERACTION ================= */
.switch:hover {
  filter: brightness(1.04);
}

.switch:active .knob {
  transform: scale(0.94);
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .card {
    padding: 1.1rem;
    gap: 0.8rem;
  }

  .content {
    max-width: 100%;
  }

  .content h4 {
    font-size: 0.95rem;
  }

  .content p {
    font-size: 0.85rem;
  }

  .switch {
    width: 50px;
    height: 26px;
  }

  .knob {
    width: 20px;
    height: 20px;
  }

  .active .knob {
    transform: translateX(22px);
  }
}