* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* :root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #1c1c1e;
  --subtext: #6e6e73;
  --border: #e5e5ea;
  --primary: #007aff;
  --danger: #ff3b30;
  --success: #34c759;
  --radius: 14px;
} */

:root {
  --bg: #0f1115;
  --card: #1c1c1e;
  --text: #f5f5f7;
  --subtext: #a1a1a6;
  --border: #2c2c2e;

  --primary: #0a84ff;
  --danger: #ff453a;
  --success: #30d158;

  --radius: 14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);

  padding: 32px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: auto;
  position: relative;
}

/* ===== HEADINGS ===== */

#header {
  text-align: center;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--subtext);
  margin-bottom: 24px;
}

/* ===== FORM ===== */

.form {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  justify-content: space-between;
}

input,
select {
  padding: 12px 14px;
  border-radius: var(--radius);
  background-color: #2c2c2e;
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

input[type="number"]::-webkit-inner-spin-button {
  display: none;
}

#searchInput {
  width: 20rem;
}

#searchLabel {
  position: relative;
}

/* #srchInpCrss { */
.crossBtn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  font-size: 0.8rem;
  cursor: pointer;
}

input::placeholder {
  color: var(--subtext);
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

#showPerPage {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===== TABLE ===== */
.userTable {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  font-size: 14px;
}

th {
  color: var(--subtext);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

td {
  border-bottom: 1px solid var(--border);
}

/* Id column */
th:nth-child(1),
td:nth-child(1) {
  width: 10%;
}

/* Name column */
th:nth-child(2),
td:nth-child(2) {
  width: 15%;
}

/* Email column */
th:nth-child(3),
td:nth-child(3) {
  width: 35%;
}

/* Status column */
th:nth-child(4),
td:nth-child(4) {
  width: 15%;
}

tr:last-child td {
  border-bottom: none;
}

/* ===== STATUS ===== */
td:nth-child(4) {
  font-weight: 500;
  color: var(--success);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

/* Pulse indicator */
.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}

/* Active */
.pulse.active {
  background-color: var(--success);
  box-shadow: 0 0 0 rgba(52, 199, 89, 0.6);
  animation: pulseGreen 1.5s infinite;
}

/* Inactive */
.pulse.inactive {
  background-color: var(--danger);
  opacity: 0.75;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 #34c75999;
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 199, 89, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
  }
}

@keyframes pulseRed {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

/* ===== BUTTONS ===== */

button {
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  background-color: var(--primary);
  color: white;
  transition: 0.2s;
}

button:hover {
  opacity: 0.9;
}

td button.statusBtn {
  /* background-color: var(--danger); */
  margin-left: 8px;
}

td button.statusBtn.activate {
  background-color: var(--success);
}

td button.statusBtn.deactivate {
  background-color: var(--danger);
}

/* ===== PAGINATION ===== */
#pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 24px 0 16px;
}

#pagination button {
  background-color: #2c2c2e;
  color: var(--text);
  border: 1px solid var(--border);
  min-width: 36px;
  font-weight: 500;
  cursor: pointer;
}

#pageBtns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

#pageBtns .goto {
  min-width: 36px;
}

#pagination .arrow {
  font-weight: 500;
}

button:disabled,
button.disabled {
  background-color: #3a3a3c;
  color: #7d7d80;
  cursor: not-allowed !important;
  opacity: 0.6;
}

button:disabled:hover,
button.disabled:hover {
  background-color: #3a3a3c;
  color: #7d7d80;
}

.activePage {
  background-color: var(--primary) !important;
  color: white;
}

/* ===== GOTO DIRECT ===== */
#gotoDirect {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

#gotoDirect input {
  width: 80px;
  height: 30px;
}

/* ===== FOOTER INFO ===== */
#showingPage {
  text-align: center;
  font-size: 13px;
  color: var(--subtext);
}
