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

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

/* ================= CARD ================= */
.card {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  margin-bottom: 2rem;

  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;

  overflow: hidden; // 🔥 ensures overlay behaves correctly
}

/* ================= SHEEN (FIXED) ================= */
.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;

  pointer-events: none; // 🔥 CRITICAL FIX
  z-index: 0; // 🔥 keep behind content
}

.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 {
  position: relative; 
  z-index: 1;        
  display: flex;
  flex-direction: column;
  gap: 14px;

  p{
    padding-bottom: 0 !important;
  }
}

/* ================= PROGRESS ================= */
.progressWrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progressText {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: $text-muted;
}

.progressBar {
  height: 8px;
  background: #f0ece7;
  border-radius: 999px;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  border-radius: inherit;

  background: linear-gradient(135deg, $primary, $primary-2);

  transition: width 0.3s ease;
}

/* ================= INPUT ROW ================= */
.inputRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= INPUT ================= */
.inputWrapper {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;

  background: #faf8f6;
  border: 1px solid #f0ece7;
  border-radius: 10px;

  transition: all 0.2s ease;
}

.inputWrapper:focus-within {
  border-color: rgba(122, 75, 32, 0.4);
  box-shadow: 0 0 0 2px rgba(122, 75, 32, 0.08);
}

.inputWrapper input {
  border: none;
  outline: none;
  background: transparent;

  width: 70px;

  font-size: 13px;
  font-weight: 600;
  color: $text-dark;
}

/* 🔥 EXTRA SAFETY */
.inputWrapper input:focus {
  outline: none;
}

/* ensure clickable */
.inputWrapper,
.inputWrapper input {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.inputWrapper span {
  font-size: 11px;
  color: $text-muted;
}

/* remove arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ================= BUTTON ================= */
.saveBtn {
  padding: 7px 14px;
  border-radius: 10px;

  border: none;
  cursor: pointer;

  font-size: 12px;
  font-weight: 600;

  color: #fff;

  background: linear-gradient(135deg, $primary, $primary-2);

  box-shadow: 0 4px 12px rgba(122, 75, 32, 0.2);

  transition: all 0.2s ease;
}

.saveBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(122, 75, 32, 0.25);
}

.saveBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
  .card {
    padding: 1.2rem;
  }

  .inputRow {
    flex-direction: column;
    align-items: stretch;
  }

  .saveBtn {
    width: 100%;
  }

  .inputWrapper {
    width: 100%;
    justify-content: space-between;
  }

  .inputWrapper input {
    width: 100%;
  }
}