/* ===== Beállítás varázsló — perzisztens jobb oldali drawer ===== */

/* Drawer panel */
.vd-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 370px; max-width: 92vw;
  z-index: 1050;
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, #37433c, #2a332d 55%, #212823);
  color: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.25);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.vd-drawer.vd-open {
  transform: translateX(0);
}

/* Tartalom eltolása — sidebar + topbar + content együtt szűkül */
.km-main.vd-shifted {
  margin-right: 370px;
  transition: margin-right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.km-main {
  transition: margin-right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dekoratív kör */
.vd-drawer::before {
  content: ''; position: absolute;
  width: 260px; height: 260px;
  top: -70px; right: -50px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(123,186,64,0.18), transparent 70%);
}

/* ===== Drawer header ===== */
.vd-header {
  position: relative; z-index: 1;
  padding: 24px 24px 0;
  flex-shrink: 0;
}
.vd-header-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.vd-brand {
  display: flex; align-items: center; gap: 10px;
}
.vd-brand-tile {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, #7BBA40, #5a9a2a);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  box-shadow: 0 2px 8px rgba(123,186,64,0.35);
}
.vd-brand-text {
  display: flex; flex-direction: column; line-height: 1.15;
}
.vd-brand-name {
  font-size: 14px; font-weight: 700; letter-spacing: 0.3px;
}
.vd-brand-sub {
  font-size: 9px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.vd-close-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}
.vd-close-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Cím */
.vd-title {
  font-size: 16px; font-weight: 700; margin-bottom: 3px;
}
.vd-subtitle {
  font-size: 11.5px; color: rgba(255,255,255,0.45); line-height: 1.4;
}

/* ===== Progress ===== */
.vd-progress {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 24px 0;
  flex-shrink: 0;
}
.vd-progress-label {
  font-size: 24px; font-weight: 800; color: #7BBA40; line-height: 1;
}
.vd-progress-sub {
  font-size: 11px; color: rgba(255,255,255,0.4);
  margin-top: 3px; margin-bottom: 10px;
}
.vd-progress-track {
  height: 5px; background: rgba(255,255,255,0.1);
  border-radius: 3px; overflow: hidden;
}
.vd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7BBA40, #9dd466);
  border-radius: 3px; width: 0;
  transition: width 0.5s ease;
}

/* ===== Lépéslista ===== */
.vd-steps {
  position: relative; z-index: 1;
  flex: 1; overflow-y: auto;
  padding: 16px 24px 16px;
}
.vd-steps::-webkit-scrollbar { width: 3px; }
.vd-steps::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15); border-radius: 3px;
}

/* Timeline vonal */
.vd-timeline {
  position: relative;
}
.vd-timeline-line {
  position: absolute; left: 17px; top: 20px; bottom: 20px;
  width: 2px; background: rgba(255,255,255,0.1);
  border-radius: 1px; z-index: 0;
}
.vd-timeline-fill {
  width: 100%; border-radius: 1px;
  background: linear-gradient(180deg, #7BBA40, #8BC53F);
  transition: height 0.4s ease;
}

/* Lépés sor */
.vd-step {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 9px 10px; margin-bottom: 3px;
  border: none; border-radius: 10px;
  cursor: pointer; background: transparent;
  position: relative; font-family: inherit;
  transition: background 0.15s;
}
.vd-step:hover {
  background: rgba(255,255,255,0.06);
}

/* Lépés node (ikon kör) */
.vd-step-node {
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  z-index: 1; transition: all 0.2s;
}
.vd-step-node svg {
  width: 17px; height: 17px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Node állapotok */
.vd-step-node--pending {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.55);
}
.vd-step-node--active {
  background: linear-gradient(135deg, #7BBA40, #5a9a1f);
  border: 1.5px solid #7BBA40;
  box-shadow: 0 4px 14px rgba(123,186,64,0.4);
  color: #fff;
}
.vd-step-node--done {
  background: rgba(123,186,64,0.85);
  border: 1.5px solid #7BBA40;
  color: #fff;
}
.vd-step-node--skipped {
  background: transparent;
  border: 1.5px dashed rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.35);
}

/* Lépés szöveg */
.vd-step-label {
  flex: 1; font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.vd-step--active .vd-step-label {
  color: #fff; font-weight: 700;
}
.vd-step--done .vd-step-label {
  color: rgba(255,255,255,0.88);
}
.vd-step--skipped .vd-step-label {
  color: rgba(255,255,255,0.38);
}
.vd-step--active {
  background: rgba(255,255,255,0.09);
}

/* Kötelező badge */
.vd-badge-req {
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(231,76,60,0.22);
  color: #ff8a7a;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===== Tipp panel (alsó rész) ===== */
.vd-tip {
  position: relative; z-index: 1;
  flex-shrink: 0;
  margin: 0 24px 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
  max-height: 160px;
  overflow-y: auto;
  transition: opacity 0.2s;
}
.vd-tip::-webkit-scrollbar { width: 3px; }
.vd-tip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15); border-radius: 3px;
}
.vd-tip-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: #7BBA40; margin-bottom: 6px;
}
.vd-tip-text {
  font-size: 12.5px; color: rgba(255,255,255,0.6);
  line-height: 1.55;
}
.vd-tip-text strong {
  color: rgba(255,255,255,0.85); font-weight: 600;
}

/* ===== Footer ===== */
.vd-footer {
  position: relative; z-index: 1;
  padding: 0 24px 20px;
  flex-shrink: 0;
}
.vd-footer-link {
  font-size: 11px; color: rgba(255,255,255,0.3);
  text-decoration: none; transition: color 0.15s;
}
.vd-footer-link:hover {
  color: rgba(255,255,255,0.6);
}

/* ===== Összegző állapotsor ===== */
.vd-summary-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 0 24px; margin-bottom: 12px;
  flex-shrink: 0; position: relative; z-index: 1;
}
.vd-summary-ok {
  font-size: 11.5px; font-weight: 600;
  color: #28ca41; line-height: 1.4;
}
.vd-summary-warn {
  font-size: 11.5px; font-weight: 600;
  color: #f59e0b; line-height: 1.4;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .vd-drawer {
    width: 320px;
  }
  .km-main.vd-shifted {
    margin-right: 0; /* Kis képernyőn overlay mód — nem tolja a tartalmat */
  }
}
@media (max-width: 480px) {
  .vd-drawer {
    width: 100%; max-width: 100%;
  }
}
