@use "../../../styles/abstracts/mixins" as *;
@use "../../../styles/abstracts/variables" as *;
.page {
    @include dashPageComponent;
//   padding: 2.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ================= HERO ================= */

.hero {
  background: linear-gradient(135deg, #00d2a0, #047857);
  padding: 3rem;
  border-radius: 28px;
  color: white;
  box-shadow: 0 30px 60px rgba(0, 100, 80, 0.25);
}

.heroTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

  h1 {
    font-size: 2rem;
    font-weight: 700;

    span {
      color: #ecfdf5;
    }
  }
}

.statusBadge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.active {
  background: rgba(255, 255, 255, 0.2);
}

.inactive {
  background: rgba(255, 0, 0, 0.2);
}

/* ================= STATS ================= */

.statsRow {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.statCard {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 20px 40px rgba(0, 80, 60, 0.15);
}

.statIcon {
  background: #003845;
  color: white;
  padding: 0.7rem;
  border-radius: 14px;
}

.statCard small {
  font-size: 0.75rem;
  color: rgba(0, 56, 69, 0.7);
}

.statCard h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #003845;
}

/* ================= GRID ================= */

.gridLayout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* ================= CARD ================= */

.card {
  background: white;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 80, 60, 0.08);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card h2 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #003845;
}

.infoGrid {
  display: grid;
  gap: 1rem;
}

.infoItem span {
  font-size: 0.75rem;
  color: rgba(0, 56, 69, 0.7);
}

.infoItem p {
  font-weight: 600;
  color: #003845;
}

/* ================= TRANSFER ================= */

.transferSection {
  background: white;
  padding: 2rem;
  border-radius: 28px;
  box-shadow: 0 25px 50px rgba(0, 80, 60, 0.08);
}

.timeline {
  position: relative;
  padding-left: 80px;
}

.verticalLine {
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #00d2a0, #047857);
  border-radius: 4px;
}

/* MOVING DOT */

.movingDot {
  position: absolute;
  left: 28px;
  width: 16px;
  height: 16px;
  background: #00d2a0;
  border-radius: 50%;
  box-shadow: 0 0 20px #00d2a0;
  animation: moveDot 6s linear infinite;
}

@keyframes moveDot {
  0% { top: 0%; }
  100% { top: 100%; }
}

/* TIMELINE ITEM */

.timelineItem {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
}

.branchAvatar {
  position: absolute;
  left: -2px;
  width: 64px;
  height: 64px;
  background: white;
  border: 4px solid #00d2a0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #003845;
  box-shadow: 0 10px 25px rgba(0, 80, 60, 0.15);
}

.branchCard {
  margin-left: 100px;
  background: #f0fdfa;
  padding: 1.5rem;
  border-radius: 20px;
  flex: 1;
  box-shadow: 0 15px 35px rgba(0, 80, 60, 0.08);
}

.branchCard h3 {
  font-weight: 700;
  color: #003845;
}

.address {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(0, 56, 69, 0.7);
  display: flex;
  gap: 6px;
  align-items: center;
}

.dateRow {
  margin-top: 0.8rem;
  font-weight: 600;
  color: #047857;
}

.arrow {
  margin-left: 1rem;
  color: #94a3b8;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .page {
    padding: 1rem;
  }

  .timeline {
    padding-left: 60px;
  }

  .branchAvatar {
    width: 48px;
    height: 48px;
  }

  .branchCard {
    margin-left: 80px;
  }
}
