/* Braden's Values — single full-site background shared by the content and sidebar. */
html {
  min-height: 100%;
  background: #03020a !important;
}

body,
body[data-layout="classic"],
body[data-theme="light"],
body[data-layout="classic"][data-theme="light"] {
  min-height: 100svh;
  background-color: #03020a !important;
  background-image:
    linear-gradient(180deg, rgba(1, 0, 8, 0.08), rgba(1, 0, 8, 0.24)),
    url("./assets/ui/bradens-values-main-background.webp") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* Remove the old grid overlay so the supplied artwork stays clean. */
body::before {
  display: none !important;
}

/* Keep the main page transparent so the single shared background remains visible. */
.app,
.page {
  background: transparent !important;
}

/* Restore the shell to a black look. */
.topbar,
body[data-theme="light"] .topbar,
body[data-layout="classic"] .topbar,
body[data-layout="classic"][data-theme="light"] .topbar {
  background: rgba(8, 8, 12, 0.94) !important;
  background-image: none !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
}

.sidebar,
body[data-theme="light"] .sidebar,
body[data-layout="classic"] .sidebar,
body[data-layout="classic"][data-theme="light"] .sidebar {
  background: rgba(10, 10, 14, 0.97) !important;
  background-image: none !important;
  border-right-color: rgba(255, 255, 255, 0.08) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: none !important;
}

/* Put sidebar support pieces back on darker panels so the rail reads clearly again. */
.sidebar .side-card,
.sidebar-support-card,
.sidebar-footer-links,
.sidebar-footer-links button,
.sidebar-footer-links a,
.sidebar .sidebar-section,
.sidebar .sidebar-panel {
  background: rgba(15, 15, 21, 0.96) !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.sidebar .side-card,
.sidebar-support-card,
.sidebar-footer-links,
.sidebar-footer-links button,
.sidebar-footer-links a {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Keep subtle interaction states. */
.sidebar .nav-btn:hover {
  background: rgba(124, 77, 255, 0.10) !important;
}

.sidebar .nav-btn.active {
  background: rgba(137, 85, 255, 0.14) !important;
}

@media (max-width: 760px) {
  body,
  body[data-layout="classic"],
  body[data-theme="light"],
  body[data-layout="classic"][data-theme="light"] {
    background-position: 38% center !important;
    background-attachment: scroll !important;
  }
}
