/* Shared sticky bar styles for Project Canvas + Run Center */
.shared-sticky{
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(10, 58, 142, 0.15);
  border-radius: 10px;
  padding: 10px 16px;
  backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 2px 8px rgba(10, 42, 102, 0.08),
              0 1px 2px rgba(10, 42, 102, 0.04);
  transition: box-shadow 0.2s ease;
}

/* Enforce identical visuals across sticky variants */
.controlbar.shared-sticky,
.sticky-savebar.shared-sticky,
.sticky-bar.shared-sticky{
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(10, 58, 142, 0.15) !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  box-shadow: 0 2px 8px rgba(10, 42, 102, 0.08),
              0 1px 2px rgba(10, 42, 102, 0.04) !important;
  transition: box-shadow 0.2s ease !important;
}

.shared-sticky:hover{
  box-shadow: 0 4px 12px rgba(10, 42, 102, 0.12),
              0 2px 4px rgba(10, 42, 102, 0.06);
}

.shared-sticky::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:3px;
  background: linear-gradient(to bottom, var(--primary), rgba(10,58,142,0.3));
  border-top-left-radius:10px;
  border-bottom-left-radius:10px;
  z-index: 1;
}

.shared-sticky .row{
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

/* Project info row styling (shared) */
.project-info-row{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:nowrap;
  min-width:0;
  overflow:hidden;
  flex:1;
}

.project-info-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  line-height:1.2;
  white-space:nowrap;
}

.project-info-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  line-height:1;
  flex:0 0 auto;
}

.project-info-item .label{
  color:var(--muted);
  font-weight:500;
  font-size:12px;
  opacity:0.8;
}

.project-info-item .value{
  color:var(--text);
  font-weight:600;
}

.project-info-item .separator{
  color:var(--border);
  margin:0 4px;
  opacity:0.5;
}

.project-info-item.project-name{
  min-width:0;
  overflow:hidden;
  flex-shrink:1;
}

.project-info-item.project-name .value{
  color:var(--primary);
  font-weight:700;
  max-width:280px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  display:block;
}

/* Prevent projectInfoBar from overflowing the sticky flex row */
.shared-sticky #projectInfoBar{
  min-width:0;
}

@media (max-width: 768px){
  .project-info-row{
    gap:8px;
    flex-wrap:wrap;
  }
  .project-info-item{
    font-size:12px;
  }
  .project-info-item.project-name .value{
    max-width:200px;
  }
}
