:root{
  --bg: #080808;
  --sidebar: #2b2f33;
  --sidebar-2: #232629;
  --card: #1f2327;
  --card-2: #262a2d;
  --muted: #9aa0a6;
  --accent: #2b86ff;
  --accent-2: #2b6cff;
  --line: #2f3336;
  --text: #d7dbe0;
}

* { box-sizing: border-box }

html, body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(#000 0 0) var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  width: 260px;
  background: linear-gradient(180deg,var(--sidebar),var(--sidebar-2));
  padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,0.02);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4) inset;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--accent),var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(43,104,255,0.12);
}

.brand-text .name {
  font-weight: 700;
  font-size: 16px;
  color:  #e7eefc;
}

.brand-text .role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav-title {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
  padding-left: 6px;
}

.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin: 8px 0;
  border-radius: 12px;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

.nav-item .dot {
  width: 10px;
  height: 10px;
  border-radius:5 0%;
  background: linear-gradient(180deg,var(--accent),var(--accent-2));
  display: inline-block;
  box-shadow: 0 6px 18px rgba(43,104,255,0.12);
}

.nav-item .dot.muted {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.03);
}

.nav-item.active a {
  background: linear-gradient(90deg, rgba(43,104,255,0.08), rgba(43,104,255,0.03));
  color: #cfe4ff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02);
}

.main {
  flex: 1;
  padding: 36px 48px;
}

.header-spacer {
  height: 10px;
}

.content {
  max-width: 1220px;
  margin: 0 auto;
}

.card {
  background: linear-gradient(180deg,var(--card), #151719);
  border-radius: 8px;
  padding: 22px 26px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.02);
}

.card-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.card-header h1 {
  font-size: 18px;
  margin: 0;
  color: #edf2ff;
  font-weight: 700;
}

.create-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.table-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  border-radius: 6px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255,255,255,0.01);
  overflow: hidden;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0;
}

.user-table thead th {
  text-align: left;
  padding: 18px 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  font-size: 12px;
}

.user-table tbody td {
  padding: 18px 12px;
  color: rgba(230,235,240,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.01);
}

.user-table tbody tr.empty td {
  height: 1vh;
  background: transparent;
  border-bottom: none;
}

.site-footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  padding-left: 6px;
}

@media (max-width: 900px) {
  .sidebar { display:none; }
  .main { padding:20px; }
  .content { width:100%; }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  z-index: 10;
}

.modal.show {
  display: flex;
}

.modal-content {
  width: 380px;
  background: linear-gradient(180deg,#1c1f22,#141618);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
}

.modal-content h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #edf2ff;
  text-align: center;
}

.modal-content label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  color: #cdd3da;
  font-weight: 600;
}

.modal-content input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0e0f11;
  color: white;
  font-size: 14px;
}

.modal-content input:focus {
  outline: 2px solid var(--accent);
}

.modal-btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  border: none;
}

.btn.cancel {
  background: #2a2d30;
  color: #c5cad0;
}

.btn.create {
  background: linear-gradient(135deg,var(--accent),var(--accent-2));
  color: #fff;
}

.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 24px;
  cursor: pointer;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: grey;
  border-radius: 25px;
  transition: .2s;
}

.slider:before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  left: 3px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}

input:checked + .slider {
  background: rgb(94, 148, 255);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.user-table td .switch {
    margin-top: 7px;
}