/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --primary:       #00a0d2;
  --primary-hover: #008bb7;
  --bg-light:      #fafafa;
  --bg-panel:      #ffffff;
  --bg-muted:      #f5f7fa;
  --border:        #e1e4e8;
  --text:          #333;
  --text-muted:    #666;
  --radius:        6px;
  --transition:    0.2s ease;
}

/* ==========================================================================
   Root Wizard Container
   ========================================================================== */
#sb-setup-wizard {
  display: flex;
  min-height: 80vh;
  background: var(--bg-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 20px 20px 20px 0;
}

.sb-btn-select-demo {
  background: #2D3E50 !important;
  border-color: #2D3E50 !important;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sb-wizard-sidebar {
  width: 240px;
  background: #2d3e50;
  color: #fff;
  padding: 1rem 0 1rem 0;
  counter-reset: step;
}
.sb-wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.license-heading h3 {
  color: #fff !important;
}
.sb-step-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  transition: background var(--transition);
}
.sb-step-item:hover,
.sb-step-item:focus {
  background: rgba(255,255,255,0.1);
  outline: none;
}
.sb-step-item::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 0.75rem;
  border-radius: 50%;
  background: #4a5a6a;
  font-weight: bold;
  color: #fff;
  font-size: 0.9rem;
}
.sb-step-item.current,
.sb-step-item.active {
  background: #1a252f;
}
.sb-step-item.current::before,
.sb-step-item.active::before {
  background: var(--primary);
}
.sb-step-label {
  font-size: 0.95rem;
  flex: 1;
}


/* ==========================================================================
   Individual Step Items
   ========================================================================== */
.sb-wizard-steps > li {
  counter-increment: step;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  /*margin-bottom: 1.25rem;*/
  cursor: pointer;
  transition: background var(--transition), padding-left var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
}

/* hover/focus state */
.sb-wizard-steps > li:hover,
.sb-wizard-steps > li:focus {
  background: rgba(224,228,232,0.1);
  padding-left: 0.75rem;
  outline: none;
  width: 100%;
}

/* badge */
.sb-wizard-steps > li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--badge-size);
  height: var(--badge-size);
  margin-right: 1rem;
  border-radius: 50%;
  background: var(--badge-bg);
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background var(--transition), transform 0.2s;
}
.sb-wizard-steps > li:hover::before {
  transform: scale(1.1);
}

/* active/current step */
.sb-wizard-steps > li[aria-selected="true"],
.sb-wizard-steps > li.active {
  background: #000;
  width: 100%;
}
/*
.sb-wizard-steps > li[aria-selected="true"]::before,
.sb-wizard-steps > li.active::before {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,160,210,0.4);
}
*/
/* optional “completed” look */
.sb-wizard-steps > li.completed {
  color: var(--text-muted);
  opacity: 0.7;
}
.sb-wizard-steps > li.completed::before {
  background: var(--line-light);
  color: var(--primary);
  content: "✓";
}

/* ==========================================================================
   Content Area & Panels
   ========================================================================== */
.sb-wizard-content {
  flex: 1;
  background: var(--bg-panel);
  padding: 2rem;
  overflow-y: auto;
}
/* custom scrollbar */
.sb-wizard-content::-webkit-scrollbar {
  width: 8px;
}
.sb-wizard-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.sb-wizard-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.sb-wizard-content::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

.sb-wizard-panel {
  display: none;
}
.sb-wizard-panel.active {
  display: block;
}

/* ===== Welcome Panel ===== */
.sb-welcome-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  /*padding: 2rem 0;*/
}
.sb-welcome-graphic {
  flex: 1 1 320px;
  text-align: center;
}
.sb-welcome-graphic img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.sb-welcome-content {
  flex: 2 1 400px;
}
.sb-welcome-title {
  font-size: 2.25rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.sb-welcome-version {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.sb-welcome-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.sb-welcome-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-muted);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
}
.sb-welcome-list li::before {
  font-size: 1.25rem;
}
.sb-welcome-actions {
  display: flex;
  gap: 1rem;
}
.sb-welcome-actions .sb-btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  #sb-setup-wizard {
    flex-direction: column;
  }
  .sb-wizard-sidebar {
    width: 100%;
  }
  .sb-welcome-panel {
    flex-direction: column;
  }
}

/* Enhanced Loading Indicator */
.sb-loading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-size: 1.25rem;
  color: var(--text-muted);
  animation: sb-text-pulse 1.5s ease-in-out infinite;
}

.sb-loading::before {
  content: "";
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border: 4px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--primary-hover);
  border-radius: 50%;
  animation: sb-dual-ring 1s ease-in-out infinite;
}

/* Dual-color rotating ring */
@keyframes sb-dual-ring {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Subtle pulsing of the text */
@keyframes sb-text-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
