/**
 * REACT BITS - LINE SIDEBAR COMPONENT STYLES
 * Modern, magnetic proximity-driven navigation sidebar.
 */

:root {
  --ls-accent: #2ce0ff;
  --ls-text: #fae4ff;
  --ls-marker: #6c6c6c;
  --ls-item-gap: 8px;
  --ls-font-size: 13.5px;
}

.line-sidebar-container {
  display: flex;
  flex-direction: column;
  gap: var(--ls-item-gap);
  width: 100%;
  position: relative;
  user-select: none;
  padding: 4px 0;
  box-sizing: border-box;
}

.line-sidebar-item {
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ls-text);
  font-size: var(--ls-font-size);
  font-weight: 600;
  will-change: transform;
  transform-origin: left center;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.line-sidebar-item:hover {
  background: rgba(44, 224, 255, 0.05);
  border-color: rgba(44, 224, 255, 0.15);
  color: #fff;
}

.line-sidebar-item.is-active {
  background: linear-gradient(90deg, rgba(44, 224, 255, 0.16) 0%, rgba(4, 7, 15, 0.6) 100%);
  border-color: rgba(44, 224, 255, 0.45);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Tick / Line Marker */
.line-sidebar-tick {
  width: 14px;
  height: 2px;
  background: var(--ls-marker);
  border-radius: 2px;
  margin-right: 12px;
  flex-shrink: 0;
  transition: background-color 0.25s ease, width 0.1s ease, box-shadow 0.25s ease;
}

.line-sidebar-item:hover .line-sidebar-tick {
  background: var(--ls-accent);
}

.line-sidebar-item.is-active .line-sidebar-tick {
  background: var(--ls-accent);
  box-shadow: 0 0 10px var(--ls-accent);
}

/* Index Number (01, 02, 03...) */
.line-sidebar-index {
  font-family: 'JetBrains Mono', monospace, Consolas, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--ls-marker);
  margin-right: 12px;
  min-width: 18px;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.line-sidebar-item:hover .line-sidebar-index {
  color: var(--ls-accent);
}

.line-sidebar-item.is-active .line-sidebar-index {
  color: var(--ls-accent);
  text-shadow: 0 0 8px rgba(44, 224, 255, 0.4);
}

/* Item Icon */
.line-sidebar-icon {
  font-size: 16px;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.line-sidebar-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--ls-marker);
  transition: stroke 0.2s ease, filter 0.2s ease;
}

.line-sidebar-item:hover .line-sidebar-icon {
  transform: scale(1.08);
}

.line-sidebar-item:hover .line-sidebar-icon svg {
  stroke: #ffffff;
}

.line-sidebar-item.is-active .line-sidebar-icon svg {
  stroke: var(--ls-accent);
  filter: drop-shadow(0 0 6px rgba(44, 224, 255, 0.5));
}

/* Label Text */
.line-sidebar-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.line-sidebar-item.is-active .line-sidebar-label {
  color: #fff;
  text-shadow: 0 0 12px rgba(44, 224, 255, 0.35);
}

/* Badge (e.g. for scanner live count) */
.line-sidebar-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  background: #10b981;
  color: #000;
}

/* Separator between groups */
.line-sidebar-divider,
.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 6px 4px;
}
