@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
  --lowes-blue: #004990;
  --neon-green: #00ff88;
  --neon-blue: #00ccff;
  --neon-purple: #b829ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  user-select: none;
}

body {
  background-color: #000;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
}

#ar-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.header {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dl-link {
  color: var(--neon-green);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border: 2px solid var(--neon-green);
  border-radius: 8px;
  opacity: 0.9;
  transition: all 0.2s;
  white-space: nowrap;
  pointer-events: auto;
}

.dl-link:hover {
  opacity: 1;
  background: rgba(0, 255, 136, 0.15);
}

.inventory-panel {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  width: 100%;
  max-height: 35vh;
  overflow-y: auto;
  pointer-events: auto;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.shelf-row {
  background: rgba(0, 255, 136, 0.1);
  border-radius: 12px;
  padding: 15px;
  border-left: 4px solid var(--neon-green);
  transition: all 0.3s;
}

.shelf-header {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
  color: #aaa;
  text-transform: uppercase;
}

.item-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.item-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.bay-info {
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  color: #aaa;
  margin-bottom: 5px;
}

.bay-info span {
  color: var(--neon-purple);
  font-weight: 800;
}

#loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 18px;
  z-index: 10;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 12px;
}

.action-bar {
  display: flex;
  gap: 10px;
  pointer-events: auto;
  margin-top: 10px;
}

.action-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  background: var(--lowes-blue);
  color: white;
}

.action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.action-btn:active {
  transform: translateY(0);
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.output-panel {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  width: 100%;
  max-height: 50vh;
  overflow-y: auto;
  pointer-events: auto;
  padding: 20px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: none;
  flex-direction: column;
  gap: 10px;
}

.output-panel pre {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--neon-green);
  white-space: pre-wrap;
  line-height: 1.6;
}
