body, html {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #fafbfc;
  margin: 0;
  padding: 0;
  color: #18181b;
}

.users-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  padding: 0 32px;
  z-index: 100;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.users-root {
  display: flex;
  min-height: 100vh;
  background: #fafbfc;
}

.users-sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid #f0f0f0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-top: 56px;
  position: relative;
}

.users-sidebar-title {
  font-weight: 600;
  font-size: 20px;
  padding: 24px 0 16px 32px;
  letter-spacing: -0.5px;
}

.users-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.users-sidebar-item {
  padding: 8px 0 8px 32px;
  font-size: 16px;
  color: #444;
  border-radius: 20px 0 0 20px;
  margin-right: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.users-sidebar-item.active, .users-sidebar-item:hover {
  background: #f4f4f5;
  color: #18181b;
  font-weight: 500;
}

.users-logout-btn {
  margin: 32px 24px 24px 32px;
  padding: 10px 0;
  width: calc(100% - 56px);
  background: #fff0f0;
  color: #dc2626;
  border: 1px solid #ffe4e6;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  box-shadow: 0 1px 2px rgba(220,38,38,0.04);
  position: absolute;
  bottom: 0;
  left: 0;
}
.users-logout-btn:hover, .users-logout-btn:focus {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  outline: none;
}

.users-main {
  flex: 1;
  padding: 72px 32px 32px 32px;
  background: #fafbfc;
  min-width: 0;
}

.users-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.users-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #18181b;
}
.users-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.users-sort-group {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.users-sort-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #888;
  border-radius: 8px;
  padding: 6px 18px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
}
.users-sort-btn.active, .users-sort-btn:hover {
  background: #18181b;
  color: #fff;
  border: 1px solid #18181b;
}

.users-search-row {
  margin-bottom: 18px;
}
.users-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.users-search-input {
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  width: 260px;
  background: #fff;
  color: #18181b;
  transition: border 0.2s;
}
.users-search-input:focus {
  outline: none;
  border: 1.5px solid #18181b;
}
.users-search-btn, .users-add-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #18181b;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
}
.users-search-btn:hover, .users-add-btn:hover {
  background: #18181b;
  color: #fff;
  border: 1px solid #18181b;
}
.users-add-btn {
  margin-left: 4px;
}

.users-table-panel {
  margin-top: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(16,30,54,0.04);
  padding: 20px 20px 16px 20px;
}
.users-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}
.users-table th, .users-table td {
  padding: 10px 8px;
  text-align: left;
  font-size: 15px;
}
.users-table th {
  color: #888;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
}
.users-table td {
  color: #222;
  border-bottom: 1px solid #f6f6f6;
}
.users-table tr:last-child td {
  border-bottom: none;
}

.theme-mode-icon-users {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  z-index: 101;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
}

.theme-mode-icon-users {
  background-image: url('/images/dark-mode-icon.png');
}

.theme-mode-icon-users:hover {
  opacity: 0.8;
}

.error-container {
  margin-bottom: 24px;
}

.error-message {
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.refresh-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #18181b;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
}

.refresh-button:hover {
  background: #18181b;
  color: #fff;
  border: 1px solid #18181b;
}

.refresh-icon {
  font-size: 18px;
  line-height: 1;
}