/* Euglena Collective Motion - Style Sheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Helvetica', 'Arial', sans-serif;
  background-color: #000000;
  color: #E0E0E0;
  overflow: hidden;
  user-select: none;
}

/* Canvas container */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* Common panel styles */
.panel {
  position: absolute;
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 15px;
  z-index: 100;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.panel.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Control Panel (左上) */
#control-panel {
  top: 20px;
  left: 20px;
  min-width: 280px;
}

.control-group {
  margin-bottom: 15px;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #E0E0E0;
}

.control-value {
  float: right;
  color: #7CFC00;
  font-weight: 600;
}

.slider-container {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 5px;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  border-radius: 3px;
  outline: none;
  position: relative;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #7CFC00;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(124, 252, 0, 0.3);
  transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  background: #9AFF20;
  transform: scale(1.1);
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #7CFC00;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(124, 252, 0, 0.3);
}

.slider::-webkit-slider-track {
  background: linear-gradient(to right, #7CFC00 0%, #7CFC00 var(--value), rgba(255, 255, 255, 0.1) var(--value), rgba(255, 255, 255, 0.1) 100%);
  height: 6px;
  border-radius: 3px;
}

/* Title Panel (右上) */
#title-panel {
  top: 20px;
  right: 20px;
  text-align: right;
}

#title-panel h1 {
  font-size: 24px;
  font-weight: 700;
  color: #7CFC00;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

#title-panel p {
  font-size: 14px;
  color: #B0B0B0;
  font-weight: 400;
}

/* Status Panel (左下) */
#status-panel {
  bottom: 20px;
  left: 20px;
  min-width: 220px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.status-item:last-child {
  margin-bottom: 0;
}

.status-label {
  color: #B0B0B0;
}

.status-value {
  color: #7CFC00;
  font-weight: 600;
}

/* Help text */
#help-text {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(224, 224, 224, 0.6);
  font-size: 14px;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#help-text.show {
  opacity: 1;
}

/* Reset button */
#reset-btn {
  background: rgba(124, 252, 0, 0.1);
  border: 1px solid #7CFC00;
  color: #7CFC00;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 15px;
  width: 100%;
}

#reset-btn:hover {
  background: rgba(124, 252, 0, 0.2);
  transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) {
  .panel {
    padding: 12px;
  }
  
  #control-panel {
    min-width: 240px;
    top: 10px;
    left: 10px;
  }
  
  #title-panel {
    top: 10px;
    right: 10px;
  }
  
  #title-panel h1 {
    font-size: 20px;
  }
  
  #status-panel {
    bottom: 10px;
    left: 10px;
    min-width: 180px;
  }
} 