:root { --admin-accent: #6955e8; --admin-deep: #17152a; }
body { background: #f5f6fa; }
.navbar-vertical.navbar-dark { background: var(--admin-deep); }
.navbar-brand h3 { color: #fff; font-size: 1.05rem; letter-spacing: .01em; }
.page-wrapper { min-height: 100vh; }
.page-header { padding-top: 1.5rem; }
.page-pretitle { color: var(--admin-accent); font-weight: 700; letter-spacing: .1em; }
.btn-primary { --tblr-btn-bg: var(--admin-accent); --tblr-btn-border-color: var(--admin-accent); }
.welcome-panel { border: 0; background: linear-gradient(120deg, #fff 20%, #eeeaff); }
.welcome-panel h1 { font-size: 1.75rem; }
.function-card { color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.function-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1.5rem rgba(43, 35, 88, .1); }
.function-card i { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: .75rem; color: var(--admin-accent); background: #eeeaff; margin-bottom: 1rem; }
.function-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.function-card p { color: #667085; margin: 0; line-height: 1.65; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at 20% 10%, #eeeaff, transparent 35%), #f5f6fa; }
.login-card { width: min(440px, 100%); border: 0; box-shadow: 0 1.5rem 4rem rgba(31, 26, 71, .14); }
.brand-mark { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 1rem; color: #fff; background: var(--admin-accent); font-weight: 800; margin-bottom: 1.25rem; }
.source-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.source-summary > div, .profile-status { padding: 1rem; border-radius: .65rem; background: #f7f7fb; }
.source-summary span, .profile-status span { display: block; color: #7b8190; font-size: .75rem; margin-bottom: .35rem; }
.source-summary strong, .profile-status strong { display: block; margin-bottom: .2rem; }
.source-summary code, .source-summary small, .profile-status code { color: #6f7582; }
.admin-summary { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-cell { padding: 3rem !important; text-align: center; color: #858b98; }
.action-row { display: inline-flex; gap: .5rem; }
.permission-check { width: 1.2rem; height: 1.2rem; }
@media (max-width: 991px) { .source-summary { grid-template-columns: 1fr; } }


/* Group headings remain native SQLAdmin toggles with a distinct visual level. */
#navbar-menu .navbar-nav { width: 100%; gap: .45rem; }
#navbar-menu [data-sqladmin-menu-category] > .dropdown-toggle {
  margin: 0 .5rem;
  padding: .85rem .9rem;
  border: 1px solid #e9e5f5;
  border-radius: .55rem;
  background: #d9d5ee;
  color: #302744;
  font-weight: 700;
}
#navbar-menu [data-sqladmin-menu-category] > .dropdown-toggle:hover {
  background: #eeeafa;
  border-color: #f5f2ff;
  color: #302744;
}
#navbar-menu [data-sqladmin-menu-category] > .dropdown-toggle[aria-expanded="true"] {
  background: #c6b9ef;
  border-color: #e0d7fb;
  color: #302744;
}
#navbar-menu [data-sqladmin-menu-category] > .dropdown-toggle::after {
  width: .55rem;
  height: .55rem;
  margin-left: auto;
  border: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
  opacity: 1;
}
#navbar-menu [data-sqladmin-menu-category] > .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(45deg);
}
#navbar-menu [data-sqladmin-menu-category] > .dropdown-menu {
  margin: .3rem .6rem .5rem 1.65rem;
  padding: .25rem 0 .25rem .55rem;
  border-left: 2px solid #75649f;
}
#navbar-menu .dropdown-menu .nav-link {
  margin: .15rem 0;
  padding: .65rem .7rem !important;
  border-radius: .35rem;
  font-weight: 400;
  color: #cbc7db;
}
#navbar-menu .dropdown-menu .nav-link.active {
  color: #fff;
  background: #4a3c76;
  box-shadow: inset 3px 0 #b4a3ff;
}
#navbar-menu .nav-link-icon { display: inline-flex !important; color: inherit; }
#navbar-menu .nav-link:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  #navbar-menu [data-sqladmin-menu-category] > .dropdown-toggle::after { transition: none; }
}
