/* ============================================================
   GLOBAL TOKENS (Fluid-inspired + jouw oranje kleur)
============================================================ */
:root {
  --fd-color-primary: #0067b8;
  --fd-color-primary-hover: #005a9e;
  --fd-color-neutral-100: #f5f5f5;
  --fd-color-neutral-200: #e5e5e5;
  --fd-color-neutral-300: #d0d0d0;
  --fd-color-neutral-700: #444;
  --fd-radius: 12px;
  --fd-transition: 0.18s ease;
  --fd-font: "Segoe UI", sans-serif;

  --brand-orange: #f1580c;
}

/* ============================================================
   CHECKBOXES
============================================================ */
input[type="checkbox"] {
  accent-color: var(--brand-orange);
}

/* ============================================================
   QUICKBAR
============================================================ */
#container-canvas {
  position: relative;
}

#toggle-list-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  overflow-x: auto;
  white-space: nowrap;
  font-family: Arial, sans-serif;
}

.toggle-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin-left: 10px;
  margin-right: 12px;
}

.toggle {
  position: relative;
  width: 40px;
  height: 20px;
  -webkit-appearance: none;
  background: #ccc;
  outline: none;
  border-radius: 20px;
  transition: background 0.3s;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  top: 1px;
  left: 1px;
  background: white;
  transition: 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle:checked {
  background: var(--brand-orange);
}

.toggle:checked::before {
  left: 21px;
}

.toggle-label {
  flex-grow: 1;
  margin-left: 5px;
  font-size: 12px;
  margin-top: 5px;
}

.quickbar-button {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.quickbar-button:hover:not(:disabled) {
  background-color: rgba(241, 88, 12, 0.1);
}

.quickbar-button:disabled,
.quickbar-button.disabled {
  cursor: not-allowed;
}

.quickbar-button-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transition: filter 0.3s;
}

.quickbar-button-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid rgba(241, 88, 12, 0.3);
  border-top-color: var(--brand-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  pointer-events: none;
  user-select: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   GENERAL TYPOGRAPHY & ICON COLORS
============================================================ */
.ng-binding,
.checkbox {
  color: #1d1d1b;
}

.glyphicon {
  color: var(--brand-orange);
}

.ng-pristine {
  fill: var(--brand-orange);
}

/* ============================================================
   SKY-STEP-BAR (VERTICAL FLUID STYLE)
============================================================ */

.sky-step-bar {
  background-color: rgb(254, 245, 240)
 !important;
}


/* Remove your old nav-link overrides ONLY inside step-bar */
.sky-step-bar .nav-link {
  background: var(--fd-color-neutral-100);
  padding: 0px !important;
  border-radius: var(--fd-radius);
  font-family: var(--fd-font);
  font-weight: 500;
  color: var(--fd-color-neutral-700);
  transition: var(--fd-transition);
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  border: 0px solid rgba(0, 0, 0, 0.15);
  margin: 10px

}



.sky-step-bar {
  width: 100px !important; /* kies zelf: 220–300px werkt mooi */
}


.sky-step-bar .nav-item {
  color: rgb(254, 245, 240);
  background: rgb(254, 245, 240);
  width: 100px !important; /* kies zelf: 200–300px werkt mooi */
  
}


.sky-step-bar .nav-link:hover {
  background: var(--fd-color-neutral-200);
  color: var(--fd-color-neutral-700);
  border: 0px
}

/* Vertical layout */
.sky-step-bar .nav-tabs.nav-stacked {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px;
  position: relative;
}

/* Active */
.sky-step-bar .nav-tabs.nav-stacked > li.active > a {
  background: var(--fd-color-primary);
  color: white !important;
}

/* Disabled */
.sky-step-bar .nav-tabs.nav-stacked > li.disabled > a {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Vertical line */
.sky-step-bar .nav-tabs.nav-stacked > li {
  position: relative;
  padding-left: 24px;
}

.sky-step-bar .nav-tabs.nav-stacked > li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: -12px;
  width: 3px;
  background: var(--fd-color-neutral-300);
}

.sky-step-bar .nav-tabs.nav-stacked > li:last-child::before {
  display: none;
}

/* Step bullet */
.sky-step-bar .nav-tabs.nav-stacked > li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 12px;
  height: 12px;
  background: var(--fd-color-neutral-300);
  border-radius: 50%;
  transition: var(--fd-transition);
}

.sky-step-bar .nav-tabs.nav-stacked > li.active::after {
  background: var(--fd-color-primary);
}


/* voorkom dat ouders de knoppen rechts afkappen */
.sky-toolbar-container,
.sky-toolbar,
.sky-step-bar,
.sky-step-bar .nav,
.sky-step-bar .nav-tabs,
.sky-step-bar .nav-tabs.nav-stacked {
  overflow: visible !important;
}

/* 2. Alleen als het LI-element actief is: shadow aan */
.sky-step-bar ul.nav.nav-tabs > li.active > a.nav-link {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media only screen and (max-width: 600px) {
  #main-container {
    flex-direction: column;
  }

  #container-canvas {
    flex-grow: 1;
    height: 33%;
  }

  .sky-toolbar-container {
    flex-direction: column;
    flex-grow: 1;
    height: 67%;
    order: 1;
    width: 100%;
  }

  .sky-toolbar {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .sky-quick-bar {
    width: unset;
  }
}