@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --sidebar-width: 176px;
  --topbar-height: 72px;
  --body-bg: #0d1423;
  --sidebar-bg: #0b1322;
  --sidebar-border: rgba(86, 108, 145, 0.24);
  --card-border: rgba(120, 146, 184, 0.16);
  --card-bg: #121b2d;
  --text: #e8eefc;
  --text-secondary: #8fa0bf;
  --text-muted: #6e7f9c;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --shadow-soft: 0 1px 2px rgba(4, 10, 20, 0.3);
  --shadow-login: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--body-bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 90vw);
  display: grid;
  gap: 32px;
  padding: 40px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-login);
}

.login-card__brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card__logo {
  width: min(100%, 220px);
}

.login-form {
  display: grid;
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-field input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.primary-button,
.ghost-button,
.sidebar-toggle {
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  cursor: pointer;
}

.primary-button {
  height: 48px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.primary-button:hover {
  background: var(--accent-hover);
}

.dashboard-layout {
  min-height: 100vh;
}

.dashboard-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  color: #ffffff;
  z-index: 20;
}

.dashboard-sidebar__inner {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 18px 16px;
  background: linear-gradient(180deg, #0d1526 0%, #0a1220 100%);
}

.dashboard-sidebar__inner::after {
  bottom: 52px;
  content: "";
  position: absolute;
  left: 16px;
  right: 14px;
  height: 1px;
  background: rgba(93, 116, 156, 0.24);
}

.dashboard-sidebar__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding-bottom: 18px;
}

.dashboard-sidebar__brand img {
  width: auto;
  height: 41px;
  max-width: 180px;
}

.dashboard-sidebar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 14px;
  color: #7f8eab;
  border-bottom: 1px solid rgba(93, 116, 156, 0.24);
}

.dashboard-sidebar__search svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.dashboard-sidebar__search input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7f8eab;
  font-size: 13px;
  outline: none;
}

.dashboard-sidebar__search input::placeholder {
  color: #7f8eab;
}

.dashboard-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  color: #95a4c3;
  font-size: 13px;
  font-weight: 500;
}

.dashboard-sidebar__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.dashboard-sidebar__section-title {
  color: #c9d3e8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dashboard-sidebar__item:hover {
  color: #ffffff;
}

.dashboard-sidebar__item.is-active {
  color: #1da1ff;
}

.dashboard-sidebar__item--admin {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.dashboard-sidebar__item--admin:hover {
  color: #ffffff;
}

.dashboard-sidebar__item--admin .dashboard-sidebar__icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.dashboard-sidebar__item--admin .dashboard-sidebar__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-sidebar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.dashboard-sidebar__icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.dashboard-sidebar__divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-sidebar__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0 0;
}

.dashboard-sidebar__utility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #7f8eab;
}

.dashboard-sidebar__utility:hover {
  color: #ffffff;
}

.dashboard-sidebar__utility svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.dashboard-main-shell {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding-top: var(--topbar-height);
  background: #0f1728;
}

.dashboard-topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  background: #101827;
  border-bottom: 1px solid var(--card-border);
  z-index: 15;
}

.dashboard-topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-topbar--users {
  justify-content: space-between;
}

.users-top-search {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: min(560px, 48vw);
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(97, 117, 154, 0.28);
  border-radius: 14px;
  background: #121d31;
  color: #7183a3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.users-top-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.users-top-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #8ea1c5;
  outline: none;
}

.users-top-search input::placeholder {
  color: #7183a3;
}

.users-top-search__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(97, 117, 154, 0.28);
  border-radius: 10px;
  background: rgba(16, 26, 44, 0.85);
  color: #93a4c5;
}

.users-top-search__action svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.users-topbar-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(97, 117, 154, 0.22);
  border-radius: 12px;
  background: #101a2c;
  color: #cfd9eb;
}

.users-topbar-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.users-topbar-icon__badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4d4f;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.users-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(97, 117, 154, 0.22);
  border-radius: 14px;
  background: #101a2c;
}

.users-profile-pill__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #cb8a6b 0%, #8a533a 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.users-profile-pill__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.users-profile-pill__meta strong {
  color: #eef4ff;
  font-size: 13px;
  line-height: 1.1;
}

.users-profile-pill__meta span {
  color: #7f8eab;
  font-size: 12px;
  line-height: 1.1;
}

.ghost-button {
  height: 40px;
  padding: 0 16px;
  background: #111b2c;
  border-color: var(--card-border);
  color: #f3f7ff;
  font-weight: 500;
}

.ghost-button:hover {
  background: #162238;
}

.sidebar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: #111b2c;
  border-color: var(--card-border);
}

.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.dashboard-content {
  min-height: calc(100vh - var(--topbar-height));
  background: linear-gradient(180deg, #101827 0%, #0e1524 100%);
}

.users-page-content {
  padding: 22px 28px 40px;
}

.users-stats-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.users-stats-shell__summary {
  position: relative;
  z-index: 2;
}

.users-stats-shell__expanded {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-10px);
  transform-origin: top center;
  transition: grid-template-rows 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.users-stats-shell__expanded > * {
  min-height: 0;
  overflow: hidden;
}

.users-stats-shell:hover .users-stats-shell__expanded,
.users-stats-shell:focus-within .users-stats-shell__expanded,
.users-stats-shell.is-expanded .users-stats-shell__expanded,
.users-stats-shell__summary:hover + .users-stats-shell__expanded,
.users-stats-shell__summary:focus-within + .users-stats-shell__expanded,
.users-stats-shell:has(.users-stats-shell__toggle:hover) .users-stats-shell__expanded,
.users-stats-shell:has(.users-stats-shell__toggle:focus) .users-stats-shell__expanded,
.users-stats-shell:has(.users-stats-shell__toggle:focus-visible) .users-stats-shell__expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.users-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.users-stat-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  min-height: 132px;
  padding: 18px 20px;
  border: 1px solid rgba(97, 117, 154, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #131d31 0%, #111a2c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.users-stat-card--primary {
  width: 100%;
  align-items: center;
  min-height: 148px;
  background:
    radial-gradient(circle at right top, rgba(92, 90, 231, 0.12), transparent 28%),
    linear-gradient(180deg, #141f34 0%, #10192d 100%);
}

.users-stat-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.users-stat-card__badge svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.users-stat-card__badge--purple {
  background: rgba(92, 90, 231, 0.14);
  color: #8c7dff;
}

.users-stat-card__badge--green {
  background: rgba(41, 199, 98, 0.14);
  color: #2ed06c;
}

.users-stat-card__badge--green svg,
.users-stat-card__badge--blue svg,
.users-stat-card__badge--orange svg,
.users-stat-card__badge--red svg {
  fill: currentColor;
  stroke: none;
}

.users-stat-card__badge--blue {
  background: rgba(68, 124, 255, 0.14);
  color: #5f94ff;
}

.users-stat-card__badge--orange {
  background: rgba(255, 153, 51, 0.14);
  color: #ff9d38;
}

.users-stat-card__badge--red {
  background: rgba(255, 84, 84, 0.14);
  color: #ff6464;
}

.users-stat-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.users-stat-card__label {
  color: #b6c4df;
  font-size: 14px;
  font-weight: 600;
}

.users-stat-card__value {
  color: #f8fbff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.users-stat-card__meta {
  font-size: 13px;
  font-weight: 600;
}

.users-stat-card__meta--green {
  color: #37d67a;
}

.users-stat-card__meta--blue {
  color: #5f94ff;
}

.users-stat-card__meta--orange {
  color: #ff9d38;
}

.users-stat-card__meta--red {
  color: #ff6464;
}

.users-stat-card__arrow {
  color: #8ea0c1;
  font-size: 26px;
  line-height: 1;
}

.users-stats-shell__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  align-self: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(110, 101, 255, 0.26);
  border-radius: 999px;
  background: rgba(20, 28, 48, 0.82);
  color: #dfe5ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(8, 12, 24, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.users-stats-shell__toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 180ms ease;
}

.users-stats-shell:hover .users-stats-shell__toggle,
.users-stats-shell:focus-within .users-stats-shell__toggle,
.users-stats-shell.is-expanded .users-stats-shell__toggle,
.users-stats-shell__summary:hover .users-stats-shell__toggle,
.users-stats-shell__summary:focus-within .users-stats-shell__toggle,
.users-stats-shell:has(.users-stats-shell__toggle:hover) .users-stats-shell__toggle,
.users-stats-shell:has(.users-stats-shell__toggle:focus) .users-stats-shell__toggle,
.users-stats-shell:has(.users-stats-shell__toggle:focus-visible) .users-stats-shell__toggle {
  border-color: rgba(110, 101, 255, 0.5);
  background: rgba(34, 43, 72, 0.96);
  box-shadow: 0 14px 30px rgba(19, 25, 49, 0.3);
  transform: translateY(-1px);
}

.users-stats-shell:hover .users-stats-shell__toggle svg,
.users-stats-shell:focus-within .users-stats-shell__toggle svg,
.users-stats-shell.is-expanded .users-stats-shell__toggle svg,
.users-stats-shell__summary:hover .users-stats-shell__toggle svg,
.users-stats-shell__summary:focus-within .users-stats-shell__toggle svg,
.users-stats-shell:has(.users-stats-shell__toggle:hover) .users-stats-shell__toggle svg,
.users-stats-shell:has(.users-stats-shell__toggle:focus) .users-stats-shell__toggle svg,
.users-stats-shell:has(.users-stats-shell__toggle:focus-visible) .users-stats-shell__toggle svg {
  transform: rotate(180deg);
}

.users-directory {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.users-directory__tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(97, 117, 154, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #121c2f 0%, #10192a 100%);
  overflow: hidden;
}

.users-directory-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #c4d0e6;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.users-directory-tab--active {
  color: #f8fbff;
  box-shadow: inset 0 -2px 0 #5d62ff;
}

.users-directory-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(104, 121, 168, 0.25);
  border-radius: 999px;
  background: rgba(25, 37, 61, 0.72);
  color: #dfe8fb;
  font-size: 12px;
  font-weight: 700;
}

.users-directory__panel {
  border: 1px solid rgba(97, 117, 154, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #121b2d 0%, #0f1728 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.users-directory__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.users-directory-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 420px;
  max-width: 420px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(104, 121, 168, 0.22);
  border-radius: 10px;
  background: #10192a;
  color: #8596b9;
}

.users-directory-search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.users-directory-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #dfe8fb;
  font-size: 14px;
  outline: none;
}

.users-directory-search input::placeholder {
  color: #8596b9;
}

.users-directory__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.users-directory-button,
.users-directory-clear,
.users-page-nav,
.users-page-chip,
.users-page-size-button,
.users-table-actions button,
.users-directory-table input[type='checkbox'] {
  border: 1px solid rgba(104, 121, 168, 0.22);
  background: #111b2d;
}

.users-directory-button,
.users-directory-clear,
.users-page-size-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  color: #dfe8fb;
  font-size: 14px;
  font-weight: 600;
}

.users-directory-button svg,
.users-page-size-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.users-directory-clear {
  border-color: transparent;
  background: transparent;
  color: #7385a8;
  padding: 0 6px;
}

.users-directory-table-wrap {
  padding: 0 12px;
  overflow-x: auto;
}

.users-directory-table {
  width: 100%;
  min-width: 980px;
  border: 1px solid rgba(97, 117, 154, 0.14);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.users-directory-table thead th {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(97, 117, 154, 0.16);
  color: #d7e0f1;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  background: rgba(11, 18, 31, 0.2);
}

.users-directory-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(97, 117, 154, 0.12);
  vertical-align: middle;
}

.users-directory-table tbody tr:last-child td {
  border-bottom: 0;
}

.users-directory-table__check {
  width: 38px;
  text-align: center;
}

.users-directory-table__actions-head {
  width: 110px;
}

.users-directory-table input[type='checkbox'] {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  appearance: none;
}

.users-table-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.users-table__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.users-table__avatar--amber { background: linear-gradient(135deg, #a57658 0%, #7a4729 100%); }
.users-table__avatar--rose { background: linear-gradient(135deg, #dbb9aa 0%, #bc8f7d 100%); }
.users-table__avatar--copper { background: linear-gradient(135deg, #966145 0%, #5e3520 100%); }
.users-table__avatar--sand { background: linear-gradient(135deg, #e8c8ad 0%, #bb8f72 100%); }
.users-table__avatar--clay { background: linear-gradient(135deg, #a8866c 0%, #76543f 100%); }
.users-table__avatar--ash { background: linear-gradient(135deg, #8d8e94 0%, #5d606a 100%); }
.users-table__avatar--peach { background: linear-gradient(135deg, #f3c9b4 0%, #d29d7e 100%); }
.users-table__avatar--tan { background: linear-gradient(135deg, #b28b68 0%, #7d5d41 100%); }
.users-table__avatar--cream { background: linear-gradient(135deg, #eddcc1 0%, #d0b388 100%); }
.users-table__avatar--sky { background: linear-gradient(135deg, #9eb7eb 0%, #6388d7 100%); }

.users-table-user__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.users-table-user__meta strong {
  color: #f3f7ff;
  font-size: 14px;
  font-weight: 600;
}

.users-table-user__meta span,
.users-table-text {
  color: #b0bed8;
  font-size: 13px;
}

.users-table-text--muted {
  color: #c8d3e8;
}

.users-table-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.users-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.users-role-badge--violet { background: linear-gradient(135deg, #6c5cf6 0%, #7f63ff 100%); }
.users-role-badge--green { background: linear-gradient(135deg, #4d9965 0%, #367d4d 100%); }
.users-role-badge--orange { background: linear-gradient(135deg, #f2a03a 0%, #df7f21 100%); }
.users-role-badge--blue { background: linear-gradient(135deg, #4f83f5 0%, #3568d6 100%); }
.users-role-badge--teal { background: linear-gradient(135deg, #1f9daa 0%, #157d89 100%); }

.users-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.users-status-pill--active {
  border-color: rgba(41, 199, 98, 0.28);
  background: rgba(24, 79, 46, 0.32);
  color: #33d46f;
}

.users-status-pill--pending {
  border-color: rgba(255, 153, 51, 0.3);
  background: rgba(98, 61, 18, 0.3);
  color: #f0a33d;
}

.users-status-pill--suspended {
  border-color: rgba(255, 84, 84, 0.3);
  background: rgba(95, 29, 37, 0.3);
  color: #f36868;
}

.users-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.users-table-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #b6c4df;
}

.users-table-actions button svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.users-directory__footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.users-directory__summary,
.users-directory__page-size {
  color: #a8b6d1;
  font-size: 14px;
}

.users-directory__pagination,
.users-directory__page-size {
  display: flex;
  align-items: center;
  gap: 8px;
}

.users-page-nav,
.users-page-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  color: #d7e0f1;
  font-size: 14px;
  font-weight: 600;
}

.users-page-chip--active {
  border-color: rgba(110, 101, 255, 0.48);
  background: linear-gradient(135deg, #5a59e8 0%, #6566f1 100%);
  color: #fff;
}

.users-page-dots {
  color: #7f8ead;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.users-page-size-button {
  min-width: 64px;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .dashboard-main-shell {
    margin-left: var(--sidebar-width);
  }

  .dashboard-topbar {
    left: var(--sidebar-width);
  }

  .users-directory__toolbar,
  .users-directory__footer {
    grid-template-columns: 1fr;
  }

  .users-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .users-directory__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .users-directory-search {
    max-width: none;
  }

  .users-directory__actions {
    flex-wrap: wrap;
  }

  .users-directory__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .login-card {
    padding: 32px 24px;
  }

  .dashboard-topbar {
    padding: 0 16px;
  }

  .dashboard-sidebar__inner {
    padding: 14px;
  }

  .dashboard-sidebar__inner::after {
    left: 14px;
    right: 14px;
  }

  .users-top-search {
    width: 100%;
  }

  .users-directory__tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .users-stats-shell__toggle {
    min-height: 38px;
    padding: 0 14px;
  }

  .users-stats-grid {
    grid-template-columns: 1fr;
  }

  .users-directory-tab {
    min-height: 38px;
    padding: 0 12px;
  }

  .users-directory__toolbar,
  .users-directory__footer {
    padding: 14px;
  }

  .users-directory-button,
  .users-page-size-button {
    width: 100%;
  }

  .users-directory__actions {
    width: 100%;
  }

  .users-directory-clear {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
  }
}