/* Metallic panel variants */
.elevator-panel {
  border: 2px solid #999;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.8),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    0 4px 8px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.panel-chrome {
  background: linear-gradient(135deg, 
    #c4c4c4 0%, 
    #e8e8e8 25%, 
    #d4d4d4 50%, 
    #a8a8a8 75%, 
    #c4c4c4 100%
  );
}

.panel-copper {
  background: linear-gradient(135deg, 
    #b87333 0%, 
    #da9653 25%, 
    #cd853f 50%, 
    #8b4513 75%, 
    #b87333 100%
  );
}

.panel-steel {
  background: linear-gradient(135deg, 
    #71797E 0%, 
    #9ba0a6 25%, 
    #848b93 50%, 
    #5a6268 75%, 
    #71797E 100%
  );
}

.panel-titanium {
  background: linear-gradient(135deg, 
    #878681 0%, 
    #adaca4 25%, 
    #96958e 50%, 
    #696963 75%, 
    #878681 100%
  );
}

.panel-bronze {
  background: linear-gradient(135deg, 
    #cd7f32 0%, 
    #e6a452 25%, 
    #d4884a 50%, 
    #a0522d 75%, 
    #cd7f32 100%
  );
}

.elevator-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.1) 2px,
    rgba(255,255,255,0.1) 4px
  );
  pointer-events: none;
}

/* Enhanced button styling */
.elevator-button {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, 
    #f0f0f0, 
    #d0d0d0 40%, 
    #b0b0b0 70%, 
    #a0a0a0
  );
  border: 3px solid #888;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.8),
    inset 0 -2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.elevator-button:hover {
  background: radial-gradient(circle at 30% 30%, 
    #f5f5f5, 
    #d5d5d5 40%, 
    #b5b5b5 70%, 
    #a5a5a5
  );
  transform: translateY(-1px);
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.8),
    inset 0 -2px 4px rgba(0,0,0,0.2);
}

.elevator-button.pressed {
  background: radial-gradient(circle at 30% 30%, 
    #d0d0d0, 
    #b0b0b0 40%, 
    #909090 70%, 
    #808080
  );
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.4),
    inset 0 -2px 4px rgba(255,255,255,0.3),
    inset 0 2px 8px rgba(0,0,0,0.4);
  transform: translateY(2px);
}

/* Access switch styling */
.access-switch {
  width: 60px;
  height: 30px;
  background: linear-gradient(to bottom, #e0e0e0, #c0c0c0);
  border: 2px solid #999;
  border-radius: 15px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.access-switch.on {
  background: linear-gradient(to bottom, #90EE90, #70CC70);
  border-color: #5a5;
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.1),
    0 0 8px rgba(0,255,0,0.3);
}

.switch-handle {
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 30% 30%, #f5f5f5, #d0d0d0);
  border: 1px solid #888;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.access-switch.on .switch-handle {
  left: 33px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0);
}

/* Animations */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes confusionPulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.05);
  }
}

.confusion-high {
  animation: confusionPulse 2s infinite;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .elevator-panel {
    margin: 8px;
    padding: 16px;
  }
  
  .elevator-button {
    width: 48px !important;
    height: 48px !important;
  }
  
  .access-switch {
    width: 50px;
    height: 25px;
  }
  
  .switch-handle {
    width: 18px;
    height: 18px;
    top: 1.5px;
    left: 2px;
  }
  
  .access-switch.on .switch-handle {
    left: 28px;
  }
}

@media (max-width: 480px) {
  .elevator-panel {
    padding: 12px;
  }
}

/* Social sharing enhancements */
.share-bounce {
  animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0px); }
  to { transform: translateY(-5px); }
}

/* Status light improvements */
.status-light {
  transition: all 0.3s ease;
}

.status-light.active {
  animation: statusPulse 1s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Confusion level indicator */
.confusion-meter {
  background: linear-gradient(90deg, 
    #10b981 0%, 
    #f59e0b 50%, 
    #ef4444 100%
  );
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.confusion-meter::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background: white;
  border-radius: 9999px;
}