:root {
  --af-surface: #111827;
  --af-surface-2: #1f2937;
  --af-border: rgba(255, 255, 255, 0.12);
  --af-text-muted: #9ca3af;
  --af-accent: #0d6efd;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(13, 110, 253, 0.18), transparent 55%),
    radial-gradient(900px 500px at 110% 10%, rgba(220, 53, 69, 0.15), transparent 50%),
    linear-gradient(180deg, #0b1220, #0a0f1a);
  color: #f3f4f6;
}

.af-page-shell {
  min-height: 100vh;
}

.af-card {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid var(--af-border);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
}

.af-text-muted {
  color: var(--af-text-muted);
}

.af-brand-accent {
  color: var(--af-accent);
}

.af-login-page {
  padding: 1.5rem;
}

.af-login-scrum-logo {
  max-width: 340px;
  width: 100%;
}

.af-login-panel {
  max-width: 460px;
}

.af-login-agendor-logo {
  max-width: 270px;
  width: 100%;
}

.af-login-input {
  background-color: #e9ecef;
  border-color: #d7dce1;
  color: #495057;
}

.af-login-input::placeholder {
  color: #6c757d;
}

.af-login-input:focus {
  border-color: #f23f52;
  box-shadow: 0 0 0 0.2rem rgba(242, 63, 82, 0.25);
}

.af-login-panel h1 {
  color: #f8f9fa;
  letter-spacing: 0.02em;
}

#first-access-feedback {
  margin-bottom: 1rem;
}

.af-app-shell-body {
  margin: 0;
  background: #14161c;
}

.af-app-shell {
  min-height: 100vh;
}

.af-sidebar {
  width: 134px;
  height: 100vh;
  background: #17191f;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 3.25rem !important;
  padding-bottom: 2.5rem !important;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1020;
}

.af-sidebar-logo {
  width: 104px;
}

.af-sidebar-nav {
  margin-top: 4.375rem;
  gap: 1.5rem !important;
}

.af-icon-link {
  --af-menu-icon-opacity: 0.5;
  --af-menu-icon-filter: none;
  width: 40px;
  height: 40px;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, var(--af-menu-icon-opacity));
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.af-icon-link:hover {
  --af-menu-icon-opacity: 1;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.af-icon-link-active {
  --af-menu-icon-opacity: 1;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.af-menu-icon {
  width: 23px;
  height: 23px;
  object-fit: contain;
  opacity: var(--af-menu-icon-opacity);
  filter: var(--af-menu-icon-filter);
}

.af-icon-link .bi {
  font-size: 23px;
  line-height: 1;
  color: currentColor;
}

.af-menu-icon-account {
  width: 26px;
  height: 26px;
}

.af-sidebar-footer {
  margin-top: auto;
  padding-top: 1.75rem;
}

.af-sidebar-bottom-logo {
  width: 104px;
}

.af-main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 134px;
}

.af-topbar {
  min-height: 72px;
  background: #171a21;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.af-topbar-logo {
  width: 96px;
}

.af-topbar-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.af-main-content {
  flex: 1;
}

.af-empty-state {
  min-height: calc(100vh - 72px - 2rem);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  background: rgba(17, 19, 24, 0.4);
}

.af-users-page {
  max-width: 1280px;
}

.af-users-add-btn {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.af-users-action-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.af-users-cards-list {
  gap: 1.25rem !important;
}

.af-user-card {
  background: #202329;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  padding: 1.35rem 1.5rem;
}

.af-user-card-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) minmax(180px, 1.05fr) 130px 150px 196px;
  gap: 1rem;
  align-items: center;
}

.af-user-card-col-actions .d-inline-flex {
  min-width: 172px;
  justify-content: flex-end;
}

.af-integration-card-grid {
  grid-template-columns: minmax(220px, 1.3fr) minmax(120px, 0.5fr) 135px 140px 196px;
  gap: 0.75rem;
}

.af-user-email {
  font-size: 1.08rem;
  font-weight: 700;
  color: #f8f9fa;
}

.af-user-name {
  font-size: 1.03rem;
  color: rgba(255, 255, 255, 0.9);
}

.af-user-card .badge {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
}

.af-users-icon-btn {
  width: 52px;
  height: 44px;
  border-radius: 0.45rem;
  padding: 0;
  border-color: transparent;
  background: #6c757d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.af-users-icon-btn:hover,
.af-users-icon-btn:focus {
  background: #7b848d;
}

.af-users-icon-btn .af-users-action-icon {
  width: 20px;
  height: 20px;
}

.af-user-create-page {
  max-width: 1280px;
}

.af-user-create-input {
  background-color: #e9ecef;
  border: 1px solid #d7dce1;
  color: #495057;
}

.af-user-create-input::placeholder {
  color: #7b8491;
}

.af-user-create-input:focus {
  border-color: #f23f52;
  box-shadow: 0 0 0 0.2rem rgba(242, 63, 82, 0.25);
}

.af-user-create-page .form-check-input:checked {
  background-color: #f23f52;
  border-color: #f23f52;
}

.af-webhook-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.af-webhook-row-main {
  min-width: 0;
}

.af-webhook-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

@media (max-width: 991.98px) {
  .af-sidebar {
    position: static;
    width: 100%;
  }

  .af-main-wrapper {
    margin-left: 0;
  }

  .af-login-page {
    padding: 1rem;
  }

  .af-login-panel {
    max-width: 420px;
  }

  .af-login-agendor-logo {
    max-width: 220px;
  }

  .af-topbar-logo {
    width: 84px;
  }

  .af-users-page {
    max-width: 100%;
  }

  .af-user-card {
    padding: 1rem;
  }

  .af-user-card-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .af-user-card-col-actions {
    text-align: left !important;
  }

  .af-user-create-page {
    max-width: 100%;
  }

  .af-webhook-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .af-webhook-row-actions {
    justify-content: flex-start;
  }
}
