/* ========================================================
   Magnetik Nexus - Slide-out Project Pipeline & Checklist Panel
   Cyberpunk Glassmorphism Aesthetics
   ======================================================== */

/* 1. Vertical Tab Handle on Right Screen Edge */
.pipeline-slideout-tab-handle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: linear-gradient(180deg, #0b1329 0%, #060914 100%);
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 16px 7px;
  color: #00f0ff;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1040;
  box-shadow: -4px 0 20px rgba(0, 240, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.pipeline-slideout-tab-handle:hover {
  background: linear-gradient(180deg, #101e40 0%, #080d1f 100%);
  border-color: #00f0ff;
  box-shadow: -6px 0 28px rgba(0, 240, 255, 0.5);
  padding-right: 11px;
}

.pipeline-tab-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pipelineDotPulse 1.8s infinite;
}

@keyframes pipelineDotPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* 2. Slide-out Drawer Panel */
.pipeline-drawer-panel {
  position: fixed;
  top: 38px;
  bottom: 25px;
  right: 0;
  width: 440px;
  max-width: 95vw;
  background: #060912;
  border-left: 1px solid #1a2538;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.pipeline-drawer-panel.open {
  transform: translateX(0);
}

/* Drawer Header */
.pipeline-drawer-header {
  height: 48px;
  min-height: 48px;
  padding: 0 1rem;
  background: #090e1c;
  border-bottom: 1px solid #1a2538;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pipeline-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.pipeline-header-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pipeline-header-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.04em;
}

/* Drawer Body (Scrollable) */
.pipeline-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Pipeline Cards */
.pipeline-card {
  background: #0a0f1e;
  border: 1px solid #1a2438;
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pipeline-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.pipeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pipeline-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pipeline-card-action-btn {
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.pipeline-card-action-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
}

/* Click-to-Edit Value Box */
.pipeline-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #060913;
  border: 1px solid #162033;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pipeline-value-row:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: #090e1c;
}

.pipeline-val-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipeline-val-subtext {
  font-size: 0.7rem;
  color: #64748b;
  font-family: var(--font-mono, monospace);
  word-break: break-all;
}

/* 5-Tier Stack Matrix */
.pipeline-stack-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  background: #060913;
  border: 1px solid #141d2e;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pipeline-stack-tier:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.04);
}

.pipeline-tier-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.pipeline-tier-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.pipeline-tier-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipeline-tier-edit-icon {
  color: #00f0ff;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0.8;
}

.pipeline-stack-tier:hover .pipeline-tier-edit-icon {
  opacity: 1;
}

/* Tier Switcher Dropdown */
.pipeline-tier-popover {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0a0f1d;
  border: 1px solid #00f0ff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  padding: 6px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 240px;
  overflow-y: auto;
}

.pipeline-popover-item {
  padding: 6px 10px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pipeline-popover-item:hover,
.pipeline-popover-item.active {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
}

/* Interactive Checklist Items */
.pipeline-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pipeline-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: #060913;
  border: 1px solid #141d2e;
  border-radius: 6px;
  font-size: 0.74rem;
  color: #cbd5e1;
}

.pipeline-check-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pipeline-check-icon {
  color: #10b981;
  width: 14px;
  height: 14px;
}

.pipeline-check-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Drawer Footer Action Bar */
.pipeline-drawer-footer {
  padding: 0.85rem 1rem;
  background: #090e1c;
  border-top: 1px solid #1a2538;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-pipeline-deploy {
  width: 100%;
  height: 38px;
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  border: none;
  border-radius: 6px;
  color: #000;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.4);
  transition: all 0.2s ease;
}

.btn-pipeline-deploy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.6);
  background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 100%);
}

.btn-pipeline-deploy:active {
  transform: translateY(1px);
}

.pipeline-deploy-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: #64748b;
  font-family: var(--font-mono, monospace);
}
