:root { --shell-accent: #ffd400; }

.app-header .container-fluid {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* Replace top bar content */
.app-header .navbar-nav,
.app-header .navbar-nav.ms-auto {
  display:none !important;
}

.shell-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  gap:0.75rem;
}

.shell-topbar .shell-left {
  display:flex;
  align-items:center;
  gap:0.6rem;
}

.shell-header-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.shell-adgen-btn {
  background: #2b7fff;
  color:#fff;
  border:none;
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration:none;
}

.shell-topbar .shell-right {
  display:flex;
  align-items:center;
  gap:0.5rem;
}

.shell-upload-btn {
  background: var(--shell-accent);
  color:#000;
  border:none;
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

/* Sidebar brand */
.brand-link .brand-text { display:none !important; }
.sidebar-brand {
  padding-left: 0 !important;
}
.brand-link {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:0.4rem;
  padding-left: 0 !important;
  margin-left: -0.35rem !important;
}

.brand-link .brand-image {
  margin-right:0 !important;
  margin-left: 0 !important;
  opacity:1 !important;
}

/* Floating controls bottom-left */
.shell-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display:flex;
  flex-direction:column;
  gap:0.5rem;
}

.shell-float button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border:1px solid rgba(255,255,255,0.2);
  background: #101218;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.shell-float button:hover { box-shadow: 0 0 10px rgba(255,212,0,0.35); }
#shellProfileBtn { padding:0; overflow:hidden; }
#shellProfileBtn img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
#shellMenuBtn { font-size: 0.85rem; letter-spacing: 0.02em; }

.shell-panel {
  position: fixed;
  right: 72px;
  bottom: 16px;
  background:#0f1218;
  border:1px solid #2a2f3a;
  border-radius: 8px;
  padding: 0.6rem;
  display:none;
  flex-direction:column;
  gap:0.45rem;
  min-width: 220px;
  z-index: 9999;
}

.shell-panel.show { display:flex; }
.shell-panel-link {
  display:block;
  text-align:left;
  background:#171b24;
  color:#f4f6ff;
  border:1px solid #2a2f3a;
  border-radius:6px;
  padding:0.45rem 0.6rem;
  text-decoration:none;
}
.shell-panel .shell-row { display:flex; align-items:center; gap:0.5rem; }
.shell-panel label { font-size:0.85rem; color:#ccc; min-width:70px; }
.shell-panel input[type=range] { width:120px; }
.shell-panel select { width:120px; }
.shell-panel .shell-logout { background:#b00020; color:#fff; border:none; border-radius:6px; padding:0.4rem 0.6rem; cursor:pointer; }

/* Sidebar collapsed by default */
.app-sidebar {
  transition: transform 0.25s ease, width 0.25s ease;
}

body.sidebar-collapse .app-sidebar {
  width: 0;
  transform: translateX(-100%);
  overflow: hidden;
}

body.sidebar-collapse .app-main,
body.sidebar-collapse .app-header {
  margin-left: 0 !important;
}

/* Standard page header */
.pcp-page-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 0.75rem;
  padding: 0.2rem 0;
}
.pcp-page-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  display: none;
}
.pcp-page-actions {
  display:flex;
  align-items:center;
  gap:0.5rem;
}
.pcp-page-actions .btn,
.pcp-page-actions .pcp-head-btn {
  background: #171b24;
  color: #e6e9f2;
  border: 1px solid #2a2f3a;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pcp-page-actions .btn:hover,
.pcp-page-actions .pcp-head-btn:hover {
  background: #1d2230;
  border-color: #3a4250;
  color: #fff;
}

.pcp-header-divider {
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  margin-top: 0.35rem;
}

.app-content-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--bs-body-bg, #0f1218);
  backdrop-filter: blur(6px);
}

.app-footer { display: none !important; }

/* Sidebar toggle pill */
.shell-sidebar-toggle {
  position: fixed;
  left: var(--sidebar-width, 260px);
  transform: translateX(-50%);
  bottom: 18px;
  width: 28px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #101218;
  color: #fff;
  z-index: 9999;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
}
.shell-sidebar-toggle:hover { box-shadow: 0 0 10px rgba(255,212,0,0.35); }
body.sidebar-collapse .shell-sidebar-toggle { left: 0; }

/* Sidebar menu layout */
.sidebar-wrapper nav,
.sidebar-wrapper .sidebar-menu {
  height: 100%;
}
.sidebar-wrapper .sidebar-menu.flex-column {
  display: flex;
  flex-direction: column;
}
.sidebar-wrapper .sidebar-menu.flex-column > .nav-item:has(> .nav-link.menu-bottom-start) {
  margin-top: auto;
}
.sidebar-wrapper .sidebar-menu.flex-column > .nav-item.menu-bottom-start {
  margin-top: auto;
}
/* Fallback for pages that render menu without item.class support */
#navigation.sidebar-menu.flex-column > .nav-item:nth-last-child(4) {
  margin-top: auto;
}

.nav-link.menu-add-campaign {
  opacity: 0.4;
  border: 1px dashed #fff;
  border-radius: 14px;
  margin: 0.15rem 0;
}
.nav-link.menu-add-campaign::after {
  content: '';
  display: block;
  height: 10px;
}
#navigation.sidebar-menu.flex-column > .nav-item:nth-child(2) > .nav-link {
  opacity: 0.4;
  border: 1px dashed #fff;
  border-radius: 14px;
  margin: 0.15rem 0;
}
#navigation.sidebar-menu.flex-column > .nav-item:nth-child(2) > .nav-link::after {
  content: '';
  display: block;
  height: 10px;
}
.nav-link.menu-settings p {
  display: flex;
  align-items: center;
}
.nav-link.menu-settings p::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: auto;
}
#navigation.sidebar-menu.flex-column > .nav-item:nth-last-child(4) > .nav-link p {
  display: flex;
  align-items: center;
}
#navigation.sidebar-menu.flex-column > .nav-item:nth-last-child(4) > .nav-link p::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: auto;
}
.nav-link.menu-reset-btn {
  background: #8e1f2e;
  border: 1px solid #be3a4b;
  color: #fff !important;
  border-radius: 10px;
  margin: 0.3rem 0;
}
.nav-link.menu-reset-btn .nav-icon,
.nav-link.menu-reset-btn p {
  color: #fff !important;
}
#navigation.sidebar-menu.flex-column > .nav-item:nth-last-child(2) > .nav-link {
  background: #8e1f2e;
  border: 1px solid #be3a4b;
  color: #fff !important;
  border-radius: 10px;
  margin: 0.3rem 0;
}
#navigation.sidebar-menu.flex-column > .nav-item:nth-last-child(2) > .nav-link .nav-icon,
#navigation.sidebar-menu.flex-column > .nav-item:nth-last-child(2) > .nav-link p {
  color: #fff !important;
}

.bf-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.bf-modal .bf-modal-card {
  width: min(80vw, 1280px) !important;
  height: min(80vh, 860px) !important;
  max-width: 80vw !important;
  max-height: 80vh !important;
  border-radius: 12px !important;
  overflow: auto;
  text-align: center !important;
}

.bf-modal [id$="Close"],
.bf-modal #resetCancel {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
