:root {
  --primary: #6c5ce7;
  --accent: #fdcb6e;
  --dubai-gold: #c5a059;
  /* Sophisticated Muted Gold */
  --dubai-sand: #f4ece1;
  /* Soft Desert Sand */
  --sidebar-bg: linear-gradient(180deg, #201d3a, #151320);
  --sidebar-text: #dfe6ff;
  --body-bg: radial-gradient(circle at top left, #fdfbf7, #f5f6fa);
  --card-shadow: 0 16px 40px rgba(15, 10, 70, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.9);
}

body {
  background: var(--body-bg);
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, .35);
  z-index: 1030;
  transition: all .26s ease-out;
  overflow-y: auto;
}

.sidebar .brand {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar .nav-link {
  color: var(--sidebar-text);
  padding: .7rem 1.5rem;
  font-size: .92rem;
  border-radius: 0 20px 20px 0;
  margin: .15rem 0;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, .25);
}

.sidebar small {
  text-transform: uppercase;
  opacity: .4;
  font-size: .65rem;
  padding: .75rem 1.5rem .3rem;
  letter-spacing: .08em;
  display: block;
}

/* MAIN */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  background: rgba(255, 255, 255, .8);
  border-bottom: 1px solid rgba(0, 0, 0, .03);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.content {
  padding: 1.75rem 1.75rem 2.5rem;
}

.section-title {
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: .4rem;
}

.pill-badge {
  padding: .25rem .7rem;
  border-radius: 999px;
  background: rgba(108, 92, 231, .1);
  color: #6c5ce7;
  font-size: .75rem;
  display: inline-block;
}

.card-neo {
  border: none;
  background: rgba(255, 255, 255, .9);
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    left: -260px;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1025;
  }
}

/* TIMELINE */
.timeline {
  position: relative;
  margin-left: 1rem;
  padding-left: 1.3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3rem;
  bottom: .3rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.13rem;
  top: .25rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, .18);
}

/* WORKFLOW DIAGRAM */
.flow-container {
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2rem;
  border: 1px dashed rgba(108, 92, 231, 0.2);
}

.flow-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.flow-section-label::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--primary);
  opacity: 0.3;
}

.flow-node {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.flow-node:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.15);
}

.flow-node h6 {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #2d3436;
}

.flow-node .sub-text {
  font-size: 0.72rem;
  color: #636e72;
}

.flow-connector-v {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  margin: 0 auto;
  opacity: 0.4;
}

.branch-card {
  border-top: 3px solid var(--primary);
}

.option-pill {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  background: #f1f2f6;
  color: #2d3436;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
  display: inline-block;
}

.branch-col {
  position: relative;
}

.branch-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20%;
  right: -0.75rem;
  height: 60%;
  width: 1px;
  background: rgba(0, 0, 0, 0.05);
}

/* SUBMENU */
.sidebar .nav-link[data-bs-toggle="collapse"]::after {
  content: "\F282";
  font-family: "bootstrap-icons";
  margin-left: auto;
  font-size: .8rem;
  transition: transform .2s;
}

.sidebar .nav-link[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.sidebar .submenu .nav-link {
  padding-left: 3rem;
  font-size: .85rem;
  opacity: .8;
}

.sidebar .submenu .nav-link:hover,
.sidebar .submenu .nav-link.active {
  opacity: 1;
  background: rgba(255, 255, 255, .05);
  box-shadow: none;
}

/* PRODUCTION HUB STYLES */
.pulse-dot {
  color: #28a745;
  animation: pulse-op 1.5s infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes pulse-op {
  0% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.2;
  }
}

.bg-golden-glow {
  background: linear-gradient(135deg, #c5a059, #e9d8a3) !important;
  color: #fff !important;
}