/* 
  Supply Chain OS - Industrial Futuristic Layer
  Aesthetic: Factory Cyberpunk + Logistics Intelligence
*/

:root {
  --sc-hazard: #ffaa00;
  --sc-glitch: #ff0055;
  --sc-industrial: #1e293b;
  --sc-flow: #00f2ff;
}

/* 1. Animated Flow Lines */
.flow-line-container {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin: 15px 0;
}

.flow-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--sc-flow), transparent);
  animation: flow-move 2s infinite linear;
}

@keyframes flow-move {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 2. Warehouse Grid */
.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.warehouse-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.warehouse-card::after {
  content: 'WAREHOUSE NODE';
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 0.6rem;
  opacity: 0.2;
  font-family: monospace;
}

/* 3. Barcode Simulation */
.barcode-sim {
  font-family: 'Libre Barcode 39', cursive, monospace;
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--sc-flow);
  opacity: 0.7;
}

/* 4. PO Status Steps */
.po-stepper {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  position: relative;
}

.po-stepper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.po-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sc-industrial);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.po-step.active {
  border-color: var(--sc-flow);
  box-shadow: 0 0 10px var(--sc-flow);
  color: var(--sc-flow);
}

/* 5. Hazardous/Critical Glow */
.hazard-glow {
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
  border-color: var(--sc-hazard) !important;
}

/* 6. Stock Timeline */
.stock-timeline {
  border-left: 2px dashed rgba(255, 255, 255, 0.1);
  margin-left: 10px;
  padding-left: 20px;
}

.timeline-event {
  position: relative;
  margin-bottom: 20px;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sc-industrial);
  border: 2px solid var(--sc-flow);
}

/* Internal SC Navbar */
.sc-navbar {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sc-nav-item {
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    transition: 0.3s;
}

.sc-nav-item.active {
    background: rgba(255, 170, 0, 0.1);
    color: var(--sc-hazard);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}
