/* =========================================================
   ADMINISTRACIÓN DE USUARIOS | LICMAN
   Panel admin usuarios + reset contraseña
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    "Inter",
    "Segoe UI",
    Arial,
    sans-serif;

  color: #102033;

  background:
    radial-gradient(
      circle at top left,
      rgba(11, 79, 138, 0.36),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #061626 0%,
      #0b1f36 48%,
      #071321 100%
    );
}

.admin-users-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

/* =========================================================
   HEADER
   ========================================================= */

.admin-users-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  margin-bottom: 28px;
  padding: 20px 22px;

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.13),
      rgba(255, 255, 255, 0.06)
    );

  box-shadow:
    0 24px 60px
    rgba(0, 0, 0, 0.28);

  backdrop-filter: blur(18px);
}

.admin-users-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-users-logo-box {
  width: 102px;
  min-width: 102px;
  height: 74px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 16px 36px
    rgba(0, 0, 0, 0.22);
}

.admin-users-logo-box img {
  max-width: 82px;
  max-height: 54px;
  object-fit: contain;
}

.admin-users-kicker,
.admin-users-section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-bottom: 6px;

  color: #0b4f8a;

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-users-topbar .admin-users-kicker {
  color: #9ed2ff;
}

.admin-users-brand h1 {
  margin: 0;

  color: #ffffff;

  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.admin-users-brand p {
  max-width: 620px;
  margin: 7px 0 0;

  color: rgba(255, 255, 255, 0.76);

  font-size: 0.95rem;
  line-height: 1.55;
}

.admin-users-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-users-back-link,
.admin-users-logout-btn {
  min-height: 44px;
  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 14px;

  color: #ffffff;

  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.admin-users-back-link {
  background:
    linear-gradient(
      135deg,
      #0b4f8a,
      #1669ad
    );

  box-shadow:
    0 14px 28px
    rgba(11, 79, 138, 0.32);
}

.admin-users-logout-btn {
  background:
    linear-gradient(
      135deg,
      #ef3340,
      #b5121b
    );

  box-shadow:
    0 14px 28px
    rgba(239, 51, 64, 0.28);
}

.admin-users-back-link:hover,
.admin-users-logout-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* =========================================================
   MAIN
   ========================================================= */

.admin-users-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* =========================================================
   SESIÓN ADMIN
   ========================================================= */

.admin-session-card {
  padding: 24px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  border: 1px solid rgba(213, 226, 238, 0.86);
  border-radius: 24px;

  background: #ffffff;

  box-shadow:
    0 22px 52px
    rgba(0, 0, 0, 0.22);
}

.admin-session-card h2 {
  margin: 0;

  color: #0b4f8a;

  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.admin-session-card p {
  margin: 6px 0 0;

  color: #526579;

  font-size: 0.94rem;
  font-weight: 700;
}

.admin-permission-pill {
  min-height: 34px;
  padding: 0 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);

  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

/* =========================================================
   ESTADÍSTICAS
   ========================================================= */

.admin-users-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.admin-stat-card {
  padding: 18px;

  border: 1px solid rgba(213, 226, 238, 0.86);
  border-radius: 22px;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7fbff 100%
    );

  box-shadow:
    0 18px 42px
    rgba(0, 0, 0, 0.18);
}

.admin-stat-card span {
  display: block;
  margin-bottom: 8px;

  color: #64748b;

  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-stat-card strong {
  display: block;

  color: #0b4f8a;

  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.admin-stat-card small {
  display: block;
  margin-top: 6px;

  color: #64748b;

  font-size: 0.78rem;
  font-weight: 800;
}

/* =========================================================
   CARD LISTADO
   ========================================================= */

.admin-users-card {
  padding: 24px;

  border: 1px solid rgba(213, 226, 238, 0.86);
  border-radius: 24px;

  background: #ffffff;

  box-shadow:
    0 22px 52px
    rgba(0, 0, 0, 0.22);
}

.admin-users-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  margin-bottom: 18px;
}

.admin-users-card-header h2 {
  margin: 0;

  color: #0b4f8a;

  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.admin-users-card-header p {
  margin: 7px 0 0;

  color: #526579;

  font-size: 0.93rem;
  line-height: 1.5;
}

.admin-refresh-btn {
  min-height: 42px;
  padding: 0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: none;
  border-radius: 14px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #0b4f8a,
      #1669ad
    );

  font-size: 0.84rem;
  font-weight: 950;

  cursor: pointer;

  box-shadow:
    0 12px 26px
    rgba(11, 79, 138, 0.28);

  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}

.admin-refresh-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.admin-refresh-btn:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.admin-refresh-icon {
  display: inline-block;
}

.admin-refresh-icon.girando {
  animation: girar 0.8s linear infinite;
}

@keyframes girar {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   HERRAMIENTAS
   ========================================================= */

.admin-users-tools {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 12px;

  margin-bottom: 12px;
}

.admin-search-box {
  min-height: 44px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;

  padding: 0 12px;

  border: 1px solid rgba(148, 163, 184, 0.48);
  border-radius: 16px;

  background: #ffffff;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.admin-search-box:focus-within {
  border-color: rgba(11, 79, 138, 0.82);

  box-shadow:
    0 0 0 4px
    rgba(11, 79, 138, 0.11);
}

.admin-search-icon {
  color: #0b4f8a;

  font-size: 1.1rem;
  font-weight: 900;
}

.admin-search-box input {
  width: 100%;
  min-height: 40px;

  border: none;
  outline: none;

  color: #102033;
  background: transparent;

  font-size: 0.92rem;
  font-weight: 750;
}

.admin-search-box input::placeholder {
  color: #94a3b8;
  font-weight: 650;
}

.admin-search-clear {
  width: 28px;
  height: 28px;

  border: none;
  border-radius: 999px;

  color: #64748b;
  background: #eaf1f8;

  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;

  cursor: pointer;
}

.admin-search-clear:hover {
  color: #ffffff;
  background: #ef3340;
}

.admin-filter-select {
  min-height: 44px;
  padding: 0 13px;

  border: 1px solid rgba(148, 163, 184, 0.48);
  border-radius: 16px;

  outline: none;

  color: #102033;
  background: #ffffff;

  font-size: 0.86rem;
  font-weight: 850;

  cursor: pointer;
}

.admin-filter-select:focus {
  border-color: rgba(11, 79, 138, 0.82);

  box-shadow:
    0 0 0 4px
    rgba(11, 79, 138, 0.11);
}

.admin-results-row {
  margin: 6px 0 16px;

  color: #64748b;

  font-size: 0.84rem;
  font-weight: 800;
}

/* =========================================================
   ESTADOS
   ========================================================= */

.admin-users-state {
  min-height: 190px;
  padding: 28px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 1px dashed rgba(148, 163, 184, 0.48);
  border-radius: 20px;

  background: #f8fbff;

  text-align: center;
}

.admin-users-state strong {
  color: #0b4f8a;

  font-size: 1rem;
  font-weight: 950;
}

.admin-users-state span {
  color: #64748b;

  font-size: 0.88rem;
  font-weight: 750;
}

.admin-loader {
  width: 34px;
  height: 34px;

  border: 4px solid rgba(11, 79, 138, 0.14);
  border-top-color: #0b4f8a;
  border-radius: 50%;

  animation: girar 0.8s linear infinite;
}

.admin-state-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  color: #0b4f8a;
  background: rgba(11, 79, 138, 0.10);

  font-size: 1.2rem;
  font-weight: 950;
}

/* =========================================================
   TABLA
   ========================================================= */

.admin-users-table-wrap {
  width: 100%;
  overflow-x: auto;

  border: 1px solid rgba(213, 226, 238, 0.95);
  border-radius: 20px;

  background: #ffffff;
}

.admin-users-table {
  width: 100%;
  min-width: 920px;

  border-collapse: collapse;
}

.admin-users-table thead {
  background:
    linear-gradient(
      180deg,
      #f4f9ff 0%,
      #eaf4fd 100%
    );
}

.admin-users-table th {
  padding: 13px 14px;

  color: #0b4f8a;

  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;

  border-bottom: 1px solid rgba(159, 185, 211, 0.72);
}

.admin-users-table td {
  padding: 13px 14px;

  color: #102033;

  font-size: 0.88rem;
  font-weight: 750;

  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.admin-users-table tr:last-child td {
  border-bottom: none;
}

.admin-users-table tbody tr {
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}

.admin-users-table tbody tr:hover {
  background: #f8fbff;
}

.admin-user-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-avatar {
  width: 38px;
  min-width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #0b4f8a,
      #1669ad
    );

  font-size: 0.92rem;
  font-weight: 950;
}

.admin-user-name {
  display: block;

  color: #102033;

  font-size: 0.92rem;
  font-weight: 950;
}

.admin-user-id {
  display: block;
  margin-top: 2px;

  color: #64748b;

  font-size: 0.74rem;
  font-weight: 800;
}

.admin-role-pill,
.admin-status-pill {
  min-height: 28px;
  padding: 0 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font-size: 0.73rem;
  font-weight: 950;
  white-space: nowrap;
}

.admin-role-pill {
  color: #0b4f8a;
  background: rgba(11, 79, 138, 0.10);
}

.admin-status-pill.active {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
}

.admin-status-pill.inactive {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.10);
}

.admin-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-action-btn {
  min-height: 34px;
  padding: 0 10px;

  border: none;
  border-radius: 12px;

  color: #ffffff;

  font-size: 0.75rem;
  font-weight: 950;

  cursor: pointer;

  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    opacity 0.16s ease;
}

.admin-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.admin-action-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.admin-reset-btn {
  background:
    linear-gradient(
      135deg,
      #0b4f8a,
      #1669ad
    );
}

.admin-disable-btn {
  background:
    linear-gradient(
      135deg,
      #ef3340,
      #b5121b
    );
}

.admin-enable-btn {
  background:
    linear-gradient(
      135deg,
      #0f766e,
      #14b8a6
    );
}

/* =========================================================
   NOTA SEGURIDAD
   ========================================================= */

.admin-security-note {
  padding: 20px 22px;

  display: flex;
  align-items: flex-start;
  gap: 16px;

  border: 1px solid rgba(213, 226, 238, 0.86);
  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f5faff 100%
    );

  box-shadow:
    0 18px 42px
    rgba(0, 0, 0, 0.18);
}

.admin-security-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background: rgba(11, 79, 138, 0.10);

  font-size: 1.3rem;
}

.admin-security-note h3 {
  margin: 0 0 6px;

  color: #0b4f8a;

  font-size: 1.02rem;
  font-weight: 950;
}

.admin-security-note p {
  margin: 0;

  color: #526579;

  font-size: 0.9rem;
  line-height: 1.55;
}

/* =========================================================
   MODAL RESET PASSWORD
   ========================================================= */

.reset-modal[hidden] {
  display: none !important;
}

.reset-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

.reset-modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(3, 10, 18, 0.72);

  backdrop-filter: blur(8px);
}

.reset-modal-card {
  position: relative;
  z-index: 1;

  width: min(540px, 100%);

  padding: 24px;

  border: 1px solid rgba(213, 226, 238, 0.86);
  border-radius: 24px;

  background: #ffffff;

  box-shadow:
    0 30px 90px
    rgba(0, 0, 0, 0.48);
}

.reset-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 18px;
}

.reset-modal-header h2 {
  margin: 0;

  color: #0b4f8a;

  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.reset-modal-header p {
  margin: 7px 0 0;

  color: #526579;

  font-size: 0.9rem;
  line-height: 1.45;
}

.reset-modal-close {
  width: 38px;
  min-width: 38px;
  height: 38px;

  border: none;
  border-radius: 14px;

  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #ef3340,
      #b5121b
    );

  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
}

.reset-user-box {
  padding: 14px;

  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 18px;

  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      #f8fbff 0%,
      #ffffff 100%
    );
}

.reset-user-avatar {
  width: 44px;
  min-width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  background: rgba(11, 79, 138, 0.10);

  font-size: 1.25rem;
}

.reset-user-box strong {
  display: block;

  color: #102033;

  font-size: 0.98rem;
  font-weight: 950;
}

.reset-user-box span {
  display: block;
  margin-top: 2px;

  color: #64748b;

  font-size: 0.82rem;
  font-weight: 750;
}

.reset-password-form {
  display: grid;
  gap: 15px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: #18324c;

  font-size: 0.86rem;
  font-weight: 950;
}

.password-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;

  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 16px;

  background: #ffffff;

  overflow: hidden;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.password-input-wrap:focus-within {
  border-color: rgba(11, 79, 138, 0.85);

  box-shadow:
    0 0 0 4px
    rgba(11, 79, 138, 0.12);
}

.password-input-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;

  border: none;
  outline: none;

  color: #102033;
  background: transparent;

  font-size: 0.95rem;
  font-weight: 750;
}

.password-input-wrap input::placeholder {
  color: #94a3b8;
  font-weight: 650;
}

.toggle-password-btn {
  min-width: 68px;
  padding: 0 14px;

  border: none;
  border-left: 1px solid rgba(148, 163, 184, 0.32);

  color: #0b4f8a;
  background: #f8fbff;

  font-size: 0.78rem;
  font-weight: 950;

  cursor: pointer;
}

.toggle-password-btn:hover {
  background: #edf6ff;
}

.reset-message {
  padding: 13px 15px;

  border-radius: 16px;

  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.45;
}

.reset-message.success {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.28);
}

.reset-message.error {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.26);
}

.reset-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;

  margin-top: 4px;
}

.reset-save-btn,
.reset-cancel-btn {
  min-height: 46px;
  padding: 0 17px;

  border: none;
  border-radius: 16px;

  font-size: 0.88rem;
  font-weight: 950;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}

.reset-save-btn {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #0b4f8a,
      #1669ad
    );

  box-shadow:
    0 14px 28px
    rgba(11, 79, 138, 0.28);
}

.reset-cancel-btn {
  color: #334155;
  background: #eaf1f8;
}

.reset-save-btn:hover,
.reset-cancel-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.reset-save-btn:disabled,
.reset-cancel-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .admin-users-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-users-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-users-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-users-actions {
    justify-content: flex-start;
  }

  .admin-session-card,
  .admin-users-card-header {
    flex-direction: column;
  }

  .admin-users-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-users-shell {
    width: min(100% - 20px, 1280px);
    padding: 16px 0 28px;
  }

  .admin-users-topbar,
  .admin-session-card,
  .admin-users-card,
  .admin-security-note,
  .reset-modal-card {
    border-radius: 18px;
  }

  .admin-users-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-users-logo-box {
    width: 92px;
    min-width: 92px;
    height: 66px;
  }

  .admin-users-actions,
  .reset-modal-actions {
    width: 100%;
  }

  .admin-users-back-link,
  .admin-users-logout-btn,
  .reset-save-btn,
  .reset-cancel-btn {
    width: 100%;
  }

  .admin-security-note {
    flex-direction: column;
  }
}

/* =========================================================
   AJUSTE VISUAL ADMIN USUARIOS
   Mismo estilo oscuro del index + fix loader hidden
   ========================================================= */

/* FIX IMPORTANTE: respeta hidden */
.admin-users-state[hidden],
.admin-users-table-wrap[hidden],
.reset-message[hidden],
.admin-search-clear[hidden] {
  display: none !important;
}

/* Fondo igual al index */
body {
  background:
    radial-gradient(
      circle at top right,
      rgba(239, 51, 64, 0.22),
      transparent 34%
    ),
    radial-gradient(
      circle at top left,
      rgba(11, 79, 138, 0.24),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #070d14 0%,
      #111821 48%,
      #250a12 100%
    ) !important;
}

/* Contenedor */
.admin-users-shell {
  width: min(1280px, calc(100% - 32px)) !important;
}

/* Header principal estilo index */
.admin-users-topbar {
  background:
    linear-gradient(
      135deg,
      rgba(16, 24, 35, 0.94),
      rgba(20, 28, 40, 0.88)
    ) !important;

  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;

  box-shadow:
    0 28px 70px
    rgba(0, 0, 0, 0.32) !important;
}

.admin-users-brand h1 {
  color: #ffffff !important;
}

.admin-users-brand p {
  color: rgba(219, 234, 254, 0.82) !important;
}

.admin-users-topbar .admin-users-kicker {
  color: #ef3340 !important;
}

/* Logo */
.admin-users-logo-box {
  background: #ffffff !important;
}

/* Botones header */
.admin-users-back-link {
  background:
    linear-gradient(
      135deg,
      #0b4f8a,
      #1669ad
    ) !important;
}

.admin-users-logout-btn {
  background:
    linear-gradient(
      135deg,
      #ef3340,
      #b5121b
    ) !important;
}

/* Cards oscuras */
.admin-session-card,
.admin-users-card,
.admin-security-note {
  background:
    linear-gradient(
      135deg,
      rgba(16, 24, 35, 0.96),
      rgba(20, 28, 40, 0.92)
    ) !important;

  border: 1px solid rgba(255, 255, 255, 0.08) !important;

  box-shadow:
    0 24px 60px
    rgba(0, 0, 0, 0.28) !important;
}

.admin-session-card h2,
.admin-users-card-header h2,
.admin-security-note h3 {
  color: #ffffff !important;
}

.admin-session-card p,
.admin-users-card-header p,
.admin-security-note p {
  color: rgba(219, 234, 254, 0.78) !important;
}

.admin-users-section-label {
  color: #ef3340 !important;
}

/* Pill administrador */
.admin-permission-pill {
  color: #9ed2ff !important;

  background:
    rgba(11, 79, 138, 0.22) !important;

  border: 1px solid rgba(158, 210, 255, 0.22) !important;
}

/* Estadísticas oscuras */
.admin-stat-card {
  background:
    linear-gradient(
      135deg,
      rgba(16, 24, 35, 0.96),
      rgba(22, 32, 46, 0.92)
    ) !important;

  border: 1px solid rgba(255, 255, 255, 0.08) !important;

  box-shadow:
    0 20px 48px
    rgba(0, 0, 0, 0.24) !important;
}

.admin-stat-card span {
  color: rgba(219, 234, 254, 0.72) !important;
}

.admin-stat-card strong {
  color: #ffffff !important;
}

.admin-stat-card small {
  color: rgba(219, 234, 254, 0.62) !important;
}

/* Buscador y filtros */
.admin-search-box,
.admin-filter-select {
  background:
    rgba(255, 255, 255, 0.06) !important;

  border: 1px solid rgba(255, 255, 255, 0.12) !important;

  color: #ffffff !important;
}

.admin-search-box:focus-within,
.admin-filter-select:focus {
  border-color: rgba(11, 79, 138, 0.9) !important;

  box-shadow:
    0 0 0 4px
    rgba(11, 79, 138, 0.18) !important;
}

.admin-search-box input {
  color: #ffffff !important;
}

.admin-search-box input::placeholder {
  color: rgba(219, 234, 254, 0.56) !important;
}

.admin-search-icon {
  color: #9ed2ff !important;
}

.admin-filter-select option {
  color: #102033;
  background: #ffffff;
}

.admin-results-row {
  color: rgba(219, 234, 254, 0.72) !important;
}

/* Estado cargando oscuro */
.admin-users-state {
  background:
    rgba(8, 13, 22, 0.88) !important;

  border: 1px dashed rgba(158, 210, 255, 0.24) !important;
}

.admin-users-state strong {
  color: #ffffff !important;
}

.admin-users-state span {
  color: rgba(219, 234, 254, 0.68) !important;
}

.admin-loader {
  border-color: rgba(158, 210, 255, 0.18) !important;
  border-top-color: #9ed2ff !important;
}

.admin-state-icon {
  color: #9ed2ff !important;
  background: rgba(11, 79, 138, 0.18) !important;
}

/* Tabla estilo oscuro */
.admin-users-table-wrap {
  background:
    rgba(8, 13, 22, 0.82) !important;

  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.admin-users-table thead {
  background:
    linear-gradient(
      135deg,
      rgba(11, 79, 138, 0.26),
      rgba(15, 23, 42, 0.9)
    ) !important;
}

.admin-users-table th {
  color: #9ed2ff !important;
  border-bottom: 1px solid rgba(158, 210, 255, 0.16) !important;
}

.admin-users-table td {
  color: rgba(248, 250, 252, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.admin-users-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.045) !important;
}

.admin-user-name {
  color: #ffffff !important;
}

.admin-user-id {
  color: rgba(219, 234, 254, 0.58) !important;
}

/* Pills */
.admin-role-pill {
  color: #9ed2ff !important;
  background: rgba(11, 79, 138, 0.22) !important;
}

.admin-status-pill.active {
  color: #7fffd4 !important;
  background: rgba(20, 184, 166, 0.16) !important;
}

.admin-status-pill.inactive {
  color: #fecaca !important;
  background: rgba(239, 68, 68, 0.14) !important;
}

/* Nota seguridad */
.admin-security-icon {
  background: rgba(11, 79, 138, 0.22) !important;
}

/* Modal mantiene limpio */
.reset-modal-card {
  background:
    linear-gradient(
      135deg,
      #ffffff,
      #f8fbff
    ) !important;
}

/* Responsive */
@media (max-width: 760px) {
  .admin-users-topbar,
  .admin-session-card,
  .admin-users-card-header {
    align-items: stretch !important;
  }
}

/* =========================================================
   QUITAR GRADIENTE ROJO DEL PANEL ADMIN
   Fondo azul/oscuro más limpio, estilo index
   ========================================================= */

body {
  background:
    radial-gradient(
      circle at top left,
      rgba(11, 79, 138, 0.26),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(30, 64, 105, 0.18),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      #070d14 0%,
      #0d1723 46%,
      #111821 100%
    ) !important;
}