/* Design Selector Sticky Top Bar */
:root {
  --bar-bg: #0b111e;
  --bar-border: #1e293b;
  --bar-text: #f8fafc;
  --bar-accent: #ff6f00;
  --bar-blue: #0f52ba;
}

#design-selector-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999999;
  background: rgba(11, 17, 30, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--bar-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--bar-text);
  box-sizing: border-box;
}

.selector-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.selector-badge {
  background: linear-gradient(135deg, var(--bar-blue), #2563eb);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.selector-instruction {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  margin: 0;
  white-space: nowrap;
}

.selector-instruction strong {
  color: #ffffff;
}

.selector-center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 480px;
}

.design-dropdown-wrap {
  position: relative;
  width: 100%;
}

.design-dropdown {
  width: 100%;
  box-sizing: border-box;
  background: #1e293b;
  color: #ffffff;
  border: 1.5px solid #3b82f6;
  border-radius: 8px;
  padding: 8px 36px 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
}

.design-dropdown:hover, .design-dropdown:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background-color: #24344d;
}

.selector-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.design-count-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  color: #93c5fd;
  white-space: nowrap;
}

.device-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.indicator-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Page padding offset for desktop */
body {
  padding-top: 56px !important;
  margin: 0;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Mobile Responsiveness for Switcher Bar */
@media (max-width: 768px) {
  #design-selector-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 10px;
    gap: 6px;
  }
  .selector-left {
    justify-content: space-between;
    width: 100%;
  }
  .selector-instruction {
    font-size: 12px;
    white-space: normal;
  }
  .selector-center {
    max-width: 100%;
    width: 100%;
  }
  .design-dropdown {
    font-size: 13px;
    padding: 7px 32px 7px 10px;
  }
  .selector-right {
    display: none;
  }
  body {
    padding-top: 86px !important;
  }
}
