@use "../../../../styles/abstracts/variables" as *;

.subscribers {
  width: 100%;
}

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

.statsGrid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(220px, 1fr)
    );

  gap: 1rem;

  margin-bottom: 1.5rem;
}

.statCard {
  display: flex;

  align-items: center;

  gap: 1rem;

  padding: 1.2rem;

  border-radius: 20px;

  background: linear-gradient(
    180deg,
    rgba(22, 22, 24, 0.98),
    rgba(15, 15, 18, 1)
  );

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

  h3 {
    color: white;

    font-size: 1.4rem;

    font-weight: 600;
  }

  p {
    color: rgba(
      255,
      255,
      255,
      0.55
    );

    font-size: 0.75rem;

    margin-bottom: 0.4rem;
  }
}

.statIcon,
.successIcon,
.warningIcon,
.dangerIcon {
  width: 46px;

  height: 46px;

  border-radius: 14px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.1rem;
}

.statIcon {
  background: rgba(
    247,
    147,
    24,
    0.12
  );

  color: #f79318;
}

.successIcon {
  background: rgba(
    34,
    197,
    94,
    0.12
  );

  color: #22c55e;
}

.warningIcon {
  background: rgba(
    234,
    179,
    8,
    0.12
  );

  color: #eab308;
}

.dangerIcon {
  background: rgba(
    239,
    68,
    68,
    0.12
  );

  color: #ef4444;
}

/* ===================================
   TABLE
=================================== */

.tableCard {
  padding: 1.25rem;

  border-radius: 24px;

  background: linear-gradient(
    180deg,
    rgba(22, 22, 24, 0.98),
    rgba(15, 15, 18, 1)
  );

  border: 1px solid
    rgba(
      255,
      255,
      255,
      0.05
    );
}

.tableWrapper {
  overflow-x: auto;

  &::-webkit-scrollbar {
    display: none;
  }
}

.table {
  min-width: 1300px;

  display: grid;

  grid-template-columns:
    170px
    220px
    180px
    120px
    120px
    150px
    150px
    130px;

  > div {
    padding: 1rem;

    border-bottom: 1px solid
      rgba(
        255,
        255,
        255,
        0.05
      );

    color: white;

    font-size: 0.82rem;
  }

  > div:nth-child(-n + 8) {
    font-weight: 600;

    color: rgba(
      255,
      255,
      255,
      0.7
    );

    text-transform: uppercase;

    font-size: 0.7rem;
  }
}

/* ===================================
   STATUS
=================================== */

.activeBadge,
.inactiveBadge {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 0.45rem 0.8rem;

  border-radius: 999px;

  font-size: 0.7rem;

  font-weight: 600;
}

.activeBadge {
  background: rgba(
    34,
    197,
    94,
    0.12
  );

  color: #22c55e;
}

.inactiveBadge {
  background: rgba(
    239,
    68,
    68,
    0.12
  );

  color: #ef4444;
}

/* ===================================
   ACTIONS
=================================== */

.banBtn,
.activateBtn {
  height: 36px;

  padding: 0 1rem;

  border-radius: 10px;

  border: none;

  font-size: 0.75rem;

  font-weight: 600;

  cursor: pointer;

  transition: 0.25s;
}

.banBtn {
  background: rgba(
    239,
    68,
    68,
    0.12
  );

  color: #ef4444;
}

.activateBtn {
  background: rgba(
    34,
    197,
    94,
    0.12
  );

  color: #22c55e;
}

/* ===================================
   SKELETON
=================================== */

.skeletonTable {
  display: flex;

  flex-direction: column;

  gap: 0.8rem;
}

.skeletonRow {
  height: 54px;

  border-radius: 12px;

  background: linear-gradient(
    90deg,
    rgba(255,255,255,.04),
    rgba(255,255,255,.08),
    rgba(255,255,255,.04)
  );

  background-size: 300% 100%;

  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

.pagination {
  margin-top: 1.5rem;
}