/* ==========================================================================
   WEBYODAS™ RESTAURANT OS — DEMO SHOWCASE CONTROLLER STYLES
   Provides seamless navigation and instant testing across Storefront, Admin & Rider
   ========================================================================== */

.webyodas-demo-bar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(202, 138, 4, 0.5);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.webyodas-demo-bar-wrapper.collapsed {
  transform: translateY(-100%);
}

.webyodas-demo-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.webyodas-demo-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.webyodas-agency-tag {
  background: linear-gradient(135deg, #ca8a04, #eab308);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.webyodas-demo-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.webyodas-demo-title span {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.76rem;
}

.webyodas-demo-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.webyodas-nav-pill {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.webyodas-nav-pill:hover {
  background: rgba(202, 138, 4, 0.18);
  border-color: rgba(202, 138, 4, 0.5);
  color: #fef08a;
  transform: translateY(-1px);
}

.webyodas-nav-pill.active {
  background: rgba(202, 138, 4, 0.25);
  border-color: #ca8a04;
  color: #fef08a;
  font-weight: 700;
}

.webyodas-btn-instant-order {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
  transition: all 0.2s ease;
}

.webyodas-btn-instant-order:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.5);
}

.webyodas-demo-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}

.webyodas-demo-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Floating re-open launcher pill when collapsed */
.webyodas-demo-floating-launcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999998;
  background: #0f172a;
  border: 1.5px solid #ca8a04;
  color: #fef08a;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.webyodas-demo-floating-launcher:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(202, 138, 4, 0.4);
}

/* Adjust page padding-top when demo bar is present so header is not hidden */
body.has-demo-bar {
  padding-top: 45px !important;
}

@media (max-width: 768px) {
  .webyodas-demo-container {
    padding: 6px 12px;
  }
  .webyodas-demo-title span {
    display: none;
  }
  .webyodas-nav-pill span {
    display: none;
  }
  .webyodas-nav-pill i {
    font-size: 0.85rem;
  }
  body.has-demo-bar {
    padding-top: 42px !important;
  }
}
