/* ===============================
   CONSTRUCTION SEQUENCING STYLES
   =============================== */

/* Timeline bar — floating, draggable */
.seq-timeline {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: rgba(14, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 0;
  min-width: 380px;
  max-width: 520px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #E2E8F0;
  display: none;
  overflow: hidden;
}

.seq-timeline.visible {
  display: block;
}

/* Header — draggable */
.seq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: grab;
  user-select: none;
}

.seq-header:active {
  cursor: grabbing;
}

.seq-title {
  font-size: 12px;
  font-weight: 600;
  color: #FFD700;
}

.seq-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seq-stage-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.seq-close-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.seq-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Body */
.seq-body {
  padding: 10px 14px 12px;
}

/* Slider row */
.seq-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.seq-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: linear-gradient(to right,
    #556677 0%,
    #FFD700 50%,
    #FF8C00 100%
  );
}

.seq-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFD700;
  border: 2px solid rgba(0, 0, 0, 0.4);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.seq-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFD700;
  border: 2px solid rgba(0, 0, 0, 0.4);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.seq-stage-counter {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  min-width: 36px;
  text-align: center;
}

/* Controls row */
.seq-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seq-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
}

.seq-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.seq-btn.active {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
  color: #FFD700;
}

.seq-stage-name {
  flex: 1;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stage chips */
.seq-chips {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.seq-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.seq-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.seq-chip.past {
  background: rgba(110, 236, 216, 0.1);
  border-color: rgba(110, 236, 216, 0.2);
  color: #6EECD8;
}

.seq-chip.current {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
  color: #FFD700;
  font-weight: 700;
}

/* Sequencing button highlight in asset card */
.modern-icon-btn.seq-active {
  background: rgba(255, 215, 0, 0.2) !important;
  color: #FFD700 !important;
}
