/* styles.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: #fff;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  padding: 20px;
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
}

h1 {
  text-align: center;
  text-shadow: 2px 2px 4px #0000004d;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.info-bar {
  text-align: center;
  display: flex;
  background: #ffffff1a;
  border-radius: 8px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  padding: 10px 20px;
}

.info-bar span {
  color: #a0a0a0;
  font-size: .9rem;
}

.info-bar strong {
  color: #4fc3f7;
}

#simulator-container {
  max-width: 1200px;
  margin: 0 auto;
}

.building {
  display: flex;
  justify-content: center;
  align-items:  flex-start;
  gap: 30px;
}

.elevator-shaft-area {
  position: relative;
  display: flex;
  background: #ffffff0d;
  border-radius: 12px;
  align-items:  flex-start;
  padding: 20px 20px 20px 120px;
}

.floors-container {
  display: flex;
  flex-direction: column;
}

.floor {
  display: flex;
  position: relative;
  border-bottom: 1px solid #ffffff1a;
  align-items:  center;
  height: 60px;
}

.floor:last-child {
  border-bottom: none;
}

.floor-number {
  position: absolute;
  text-align: right;
  color: #b0b0b0;
  width: 70px;
  font-size: .85rem;
  font-weight: 600;
  left: -110px;
}

.floor-buttons {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  left: -35px;
}

.call-btn {
  color: #718096;
  cursor: pointer;
  display: flex;
  background: #2d3748;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 24px;
  transition: all .2s;
  font-size: 10px;
}

.call-btn:hover {
  background: #4a5568;
  transform: scale(1.1);
}

.call-btn.active {
  color: #1a202c;
  background: #f6ad55;
  box-shadow: 0 0 10px #f6ad5580;
}

.up-btn.active {
  color: #1a202c;
  background: #48bb78;
  box-shadow: 0 0 10px #48bb7880;
}

.down-btn.active {
  color: #1a202c;
  background: #fc8181;
  box-shadow: 0 0 10px #fc818180;
}

.floor-line {
  position: absolute;
  background: linear-gradient(90deg, #0000, #ffffff1a, #0000);
  height: 2px;
  bottom: 0;
  left: 0;
  right: 0;
}

.elevator-shafts {
  display: flex;
  align-items:  flex-end;
  gap: 15px;
  height: 600px;
  margin-left: 20px;
}

.elevator-shaft {
  position: relative;
  background: linear-gradient(#0000004d 0%, #0000001a 100%);
  border: 2px solid #ffffff1a;
  border-radius: 8px;
  width: 60px;
  height: 600px;
}

.elevator-shaft:before {
  content: "";
  position: absolute;
  background: repeating-linear-gradient(#ffffff1a 0 5px, #0000 5px 10px);
  width: 2px;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.elevator {
  position: absolute;
  display: flex;
  z-index: 10;
  background: linear-gradient(#667eea 0%, #764ba2 100%);
  border-radius: 6px;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  width: 50px;
  height: 50px;
  transition: bottom .8s ease-in-out;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 15px #667eea66;
}

.elevator-number {
  color: #fff;
  text-shadow: 1px 1px 2px #0000004d;
  font-size: 14px;
  font-weight: bold;
}

.elevator-doors {
  position: absolute;
  background: linear-gradient(90deg, #ffffff4d 0%, #ffffff1a 49%, #0003 50%, #ffffff1a 51%, #ffffff4d 100%);
  border-radius: 3px;
  width: 30px;
  height: 35px;
  transition: all .3s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.elevator.doors-open .elevator-doors {
  background: linear-gradient(90deg, #fff9 0%, #fff3 20%, #0006 50%, #fff3 80%, #fff9 100%);
  width: 40px;
  box-shadow: inset 0 0 10px #ffd70080;
}

.elevator.doors-open {
  box-shadow: 0 4px 20px #ffd70099;
}

.elevator-panels {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.elevator-panel {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  min-width: 120px;
  padding: 15px;
  box-shadow: 0 4px 15px #0000004d;
}

.panel-title {
  text-align: center;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-size: .9rem;
  font-weight: 600;
}

.panel-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.floor-btn {
  color: #e2e8f0;
  cursor: pointer;
  background: #4a5568;
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  transition: all .2s;
  font-size: 12px;
  font-weight: 600;
}

.floor-btn:hover {
  background: #667eea;
  transform: scale(1.1);
}

.floor-btn.active {
  color: #1a202c;
  animation: pulse 1s infinite;
  background: #f6ad55;
  box-shadow: 0 0 10px #f6ad5580;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 10px #f6ad5580;
  }

  50% {
    box-shadow: 0 0 20px #f6ad55cc;
  }
}

@media (max-width: 900px) {
  .building {
    flex-direction: column;
    align-items:  center;
  }

  .elevator-panels {
    flex-flow: wrap;
    justify-content: center;
  }
}

.instructions {
  color: #a0a0a0;
  background: #ffffff0d;
  border-radius: 12px;
  max-width: 800px;
  margin: 30px auto 0;
  padding: 20px;
  font-size: .9rem;
}

.instructions h3 {
  color: #4fc3f7;
  margin-bottom: 10px;
}

.instructions ul {
  margin-left: 20px;
}

.instructions li {
  margin-bottom: 5px;
}
