/* public/css/users-admin.css
   ─────────────────────────────────────────────────────────
   ADMIN  →  USER MANAGEMENT PAGE
   Re-uses design tokens from style.css:
      --glass-bg, --glass-border, --primary, --text-300, …
   ───────────────────────────────────────────────────────── */

/* ========================================================
   1. OUTER GLASS CARD  (wraps heading + table)
   ======================================================== */
.content-section {
  position: relative;
  width: min(1000px, 92%);
  margin: 6rem auto;
  padding: 3rem 3.25rem;
  border: 1px solid var(--glass-border, rgba(255,255,255,.18));
  border-radius: 1.25rem;
  background: var(--glass-bg, rgba(30,30,40,.55));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 8px 24px rgb(0 0 0 /45%);
  text-align: center;
}

/* Conic ring accent */
.content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(89,220,225,.9),
    rgba(147,152,255,.9),
    rgba(89,220,225,.9)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .25;
  transition: opacity .35s ease;
}
.content-section:hover::before { opacity: .5; }

/* Heading */
.content-section h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.9rem, 1.45rem + 1.3vw, 2.5rem);
  line-height: 1.2;
}

/* ========================================================
   2. ERROR BANNER
   ======================================================== */
.error-text {
  margin: 0 0 1.75rem;
  color: #ff8686;
  font-weight: 600;
}

/* ========================================================
   3. INNER GLASS BLOCK (table wrapper)
   ======================================================== */
.glass-block {
  position: relative;
  overflow-x: auto;                    /* table scroll on small screens */
  border: 1px solid var(--glass-border, rgba(255,255,255,.18));
  border-radius: 1rem;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  background: var(--glass-bg, rgba(30,30,40,.55));
  box-shadow: 0 6px 20px rgb(0 0 0 /40%);
  padding: 1.5rem;
}

/* Accent on hover of block */
.glass-block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
  rgba(89,220,225,.8),
  rgba(147,152,255,.8));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.glass-block:hover::before { opacity: .55; }

/* ========================================================
   4. DATA TABLE
   ======================================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 720px;                    /* keeps layout on large data */
}

/* Table head */
.data-table thead th {
  padding: .85rem 1rem;
  text-align: left;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,.18));
  color: #fff;
  white-space: nowrap;
}

/* Body rows */
.data-table tbody td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,.15));
  color: #e5e5e5;
  white-space: nowrap;
}

/* Zebra striping */
.data-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,.04);
}

/* Hover highlight */
.data-table tbody tr:hover {
  background: rgba(89,220,225,.08);
}

/* “(you)” cell styling */
.data-table td:nth-child(6) {
  text-align: center;
}

/* ========================================================
   5. BUTTON STYLES (keeps consistency)
   ======================================================== */
.btn-secondary {
  background: transparent;
  color: var(--primary, #59dce1);
  border: 1px solid var(--primary, #59dce1);
  border-radius: .4rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn-secondary:hover {
  background: var(--primary, #59dce1);
  color: #000;
}
.btn-compact { padding: .3rem .8rem; font-size: .85rem; }

/* Inline form so button sits inline with text */
.inline { display: inline; }

/* ========================================================
   6. STACK-175 UTILITY  (gap = 1.75rem)
   ======================================================== */
.stack-175 > * + * { margin-top: 1.75rem; }

/* ========================================================
   7. RESPONSIVE TWEAKS
   ======================================================== */
@media (max-width: 700px) {
  .content-section { padding: 2.5rem 2rem; }
}
@media (max-width: 500px) {
  .content-section { padding: 2rem 1.5rem; }
}

/* End of users-admin.css */
