/* Barrier Component - Kompakt */
barrier-view {
  display: inline-block;
}

.barrier-container {
  position: relative;
  width: var(--barrier-size);
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.barrier-base {
  width: 14px;
  height: 35px;
  background: linear-gradient(180deg, #616161 0%, #424242 100%);
  border-radius: 3px 3px 0 0;
  position: relative;
}

.barrier-light {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9e9e9e;
  transition: all var(--transition-fast);
}

.barrier-light.green {
  background: #4caf50;
  box-shadow: 0 0 8px #4caf50;
}

.barrier-light.red {
  background: #f44336;
  box-shadow: 0 0 8px #f44336;
}

.barrier-arm-container {
  position: absolute;
  top: 10px;
  left: 14px;
  transform-origin: left center;
  transition: transform var(--transition-slow) ease-in-out;
}

.barrier-arm-container.open {
  transform: rotate(-90deg);
}

.barrier-arm-main {
  width: 45px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #f44336 0px,
    #f44336 8px,
    #ffffff 8px,
    #ffffff 16px
  );
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
}

.barrier-ground {
  width: 50px;
  height: 4px;
  background: #9e9e9e;
  border-radius: 2px;
  margin-top: auto;
}

/* Animation states */
.barrier-container.moving .barrier-arm-container {
  animation: barrier-flash 0.3s ease-in-out infinite;
}

@keyframes barrier-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Status label - Kompakt */
.barrier-status-label {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
  padding: 1px 4px;
  border-radius: 2px;
  background: #e0e0e0;
}

.barrier-status-label.open {
  background: #c8e6c9;
  color: var(--color-success);
}

.barrier-status-label.closed {
  background: #ffcdd2;
  color: var(--color-error);
}

.barrier-status-label.moving {
  background: #fff9c4;
  color: var(--color-warning);
}
