/* ==========================================================================
   SAFESTOPHELIX - SAAS DEMO APP DASHBOARD STYLING (/demo.html)
   ========================================================================== */

.demo-app-layout {
  display: flex;
  min-height: 100vh;
  background: #F4F3EE;
}

/* Sidebar */
.demo-sidebar {
  width: 280px;
  background: #111317;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 1.25rem;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  height: 100vh;
}

.demo-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #FFFFFF;
}

.demo-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: #94A3B8;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.demo-nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.demo-nav-link.active {
  color: #FFFFFF;
  background: var(--helix-blue);
}

.demo-nav-badge {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

/* User Card in Sidebar */
.demo-user-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.demo-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #38BDF8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #FFFFFF;
}

.demo-user-info h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.demo-user-info p {
  font-size: 0.75rem;
  color: #94A3B8;
}

/* Main Dashboard Area */
.demo-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
}

.demo-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.demo-topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.demo-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: #EFF6FF;
  color: var(--helix-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.demo-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.demo-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.demo-view {
  display: none;
  flex-direction: column;
  gap: 2rem;
  animation: fadeIn 0.3s ease;
}

.demo-view.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .demo-sidebar { display: none; }
  .demo-topbar { padding: 1rem 1.25rem; }
  .demo-body { padding: 1.25rem; }
}
