/* FLOATING LIGHTBOX                                         */
.floating-lightbox {
  position: absolute;
  top: 50px;
  left: 50px;
  z-index: 1000;
  padding: 5px;
  cursor: move;
  border-radius: 10px;
  background: transparent;
  user-select: none;
}

/* MAIN LAYOUT                                                */
.steps-main {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* LEFT CHECKLIST PANEL                                       */
.steps-panel {
  width: 320px;
  flex: 0 0 320px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--mat-sys-background);
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.18);
}

/* HEADER                                                      */
.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 10px 8px 14px;
  border-radius: 10px 10px 0 0;
  background: var(--action-primary-default);
  color: var(--mat-sys-background);
  font-weight: 600;
  cursor: move;
}

.header-title {
  min-width: 0;
  display: flex;
  align-items: center;
  flex: 1;
}

.header-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
}

/* HEADER BUTTONS                                              */
.icon-button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--mat-sys-background);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.icon-button mat-icon {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.close-button {
  color: #ffdddd;
}

.close-button:hover {
  background: rgba(255, 0, 0, 0.2);
}

/* CHECKLIST CONTENT                                           */
.lightbox-content {
  cursor: default;
  padding: 14px;
  border: 2px solid var(--action-primary-default);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: var(--mat-sys-background);
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.15);
}

/* CHECKLIST DESCRIPTION                                       */
.checklist-description {
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mat-sys-on-surface-variant);
}

/* PROGRESS HEADER                                             */
.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mat-sys-on-surface);
}

.progress-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--action-primary-default);
}

/* PROGRESS BAR                                                */
.progress-track {
  width: 100%;
  height: 6px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--mat-sys-surface-container-high);
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--action-primary-default);
  transition: width 0.3s ease;
}

/* STEP LIST                                                   */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* STEP                                                         */
.step-status {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-left: 3px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.step-status:hover {
  background: rgba(0, 123, 255, 0.07);
}

/* ACTIVE */
.step-status.active {
  border-left-color: var(--action-primary-default);
  background: rgba(0, 123, 255, 0.08);
}

/* COMPLETED */
.step-status.completed {
  background: rgba(0, 128, 0, 0.04);
}

.step-status.completed .step-title {
  text-decoration: line-through;
  opacity: 0.65;
}

/* CHECKBOX                                                     */
.step-checkbox-wrapper {
  width: 22px;
  min-width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-checkbox {
  width: 17px;
  height: 17px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--action-primary-default);
}

/* STEP TEXT                                                    */
.step-text {
  min-width: 0;
  flex: 1;
}

.step-number {
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--mat-sys-on-surface-variant);
  text-transform: uppercase;
}

.step-title {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  color: var(--mat-sys-on-surface);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ACTIVE ARROW                                                 */
.active-arrow {
  width: 18px;
  min-width: 18px;
  height: 18px;
  font-size: 18px;
  color: var(--action-primary-default);
}

/* RIGHT CONTENT PANEL                                          */
.step-content-panel {
  width: 500px;
  flex: 0 0 500px;
  position: relative;
}

/* STEP CONTENT CARD                                            */
.step-content-card {
  cursor: default;
  min-height: 390px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 10px;
  background: var(--mat-sys-background);
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.18);
}

/* STEP HEADER                                                  */
.step-content-header {
  margin-bottom: 18px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  margin-bottom: 10px;
  border-radius: 20px;
  background: rgba(0, 123, 255, 0.1);
  color: var(--action-primary-default);
  font-size: 11px;
  font-weight: 600;
}

.step-content-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--action-primary-default);
}

/* SHOW DESCRIPTION                                             */
.show-description {
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mat-sys-on-surface-variant);
}

/* INFORMATION BOX                                              */
.step-information {
  display: flex;
  gap: 12px;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 8px;
  background: var(--mat-sys-surface-container);
  border: 1px solid var(--mat-sys-outline-variant);
}

.information-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.1);
  color: var(--action-primary-default);
}

.information-icon mat-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.information-text {
  flex: 1;
}

.information-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--mat-sys-on-surface);
}

.information-text p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mat-sys-on-surface-variant);
}

/* COMPLETION CHECKBOX                                          */
.completion-section {
  margin-top: auto;
  margin-bottom: 20px;
}

.completion-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  cursor: pointer;
}

.completion-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--action-primary-default);
}

.completion-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mat-sys-on-surface);
}

/* ACTION BUTTONS                                               */
.step-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.primary-button,
.completed-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.15s ease;
}

.primary-button {
  background: var(--action-primary-default);
  color: white;
}

.primary-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.completed-button {
  background: var(--action-primary-default);
  color: white;
}

.completed-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.primary-button mat-icon,
.completed-button mat-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

/* COMPLETION CARD                                              */
.completion-card {
  cursor: default;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  background: var(--mat-sys-background);
  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.18);
}

.completion-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(0, 128, 0, 0.1);
  color: green;
}

.completion-icon mat-icon {
  width: 42px;
  height: 42px;
  font-size: 42px;
}

.completion-card h1 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--action-primary-default);
}

.completion-card p {
  max-width: 360px;
  margin: 0 0 25px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mat-sys-on-surface-variant);
}

/* RESPONSIVE                                                   */
@media (max-width: 900px) {
  .steps-main {
    flex-direction: column;
  }

  .steps-panel {
    width: 320px;
    flex: 0 0 auto;
  }

  .step-content-panel {
    width: 500px;
    flex: 0 0 auto;
  }
}

@media (max-width: 600px) {
  .floating-lightbox {
    left: 10px;
    right: 10px;
    width: auto;
  }

  .steps-panel,
  .step-content-panel {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
  }

  .step-content-panel {
    display: none;
  }
}