* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0b0c10;
  font-family: "Courier New", Courier, monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #fff;
  overflow: hidden;
}

#drum-machine {
  background-color: #1f2833;
  padding: 2rem;
  border-radius: 15px;
  box-shadow:
    0 0 20px rgba(69, 162, 158, 0.2),
    inset 0 0 10px rgba(0, 0, 0, 0.8);
  border: 2px solid #45a29e;
  width: 380px;
}

.screen-container {
  background-color: #0b0c10;
  border: 2px solid #66fcf1;
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: inset 0 0 15px rgba(102, 252, 241, 0.1);
}

#display {
  color: #66fcf1;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 5px #66fcf1;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

#pad-bank {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.drum-pad {
  background-color: #2c353f;
  color: #c5c6c7;
  border: 2px solid #45a29e;
  border-radius: 8px;
  padding: 25px 0;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow:
    0 4px 0 #1f2833,
    0 0 10px rgba(69, 162, 158, 0.1);
}

/* Hover state for mouse users */
.drum-pad:hover {
  background-color: #3b4550;
  color: #66fcf1;
}

/* Active state triggered by Click or Keydown */
.drum-pad.active {
  background-color: #66fcf1;
  color: #0b0c10;
  transform: translateY(4px);
  box-shadow:
    0 0 0 #1f2833,
    0 0 20px #66fcf1;
}
/* Add this to your existing CSS */

.control-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #12181f;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #45a29e;
}

.control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.control label {
  font-size: 0.8rem;
  color: #45a29e;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.control button {
  background-color: #2c353f;
  color: #c5c6c7;
  border: 1px solid #45a29e;
  padding: 5px 15px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  transition: all 0.2s;
}

.control button.active-toggle {
  background-color: #66fcf1;
  color: #0b0c10;
  box-shadow: 0 0 10px #66fcf1;
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  background: #2c353f;
  height: 6px;
  border-radius: 3px;
  outline: none;
  border: 1px solid #45a29e;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #66fcf1;
  cursor: pointer;
  box-shadow: 0 0 5px #66fcf1;
}
/* Add to the bottom of your existing styles.css */

.cheat-sheet {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed #45a29e;
  text-align: center;
}

.cheat-sheet h3 {
  color: #66fcf1;
  font-size: 1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.beat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #c5c6c7;
}

.beat-list span {
  color: #45a29e;
  font-weight: bold;
  margin-right: 5px;
}

#demo-btn {
  background-color: transparent;
  color: #66fcf1;
  border: 1px solid #66fcf1;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

#demo-btn:hover {
  background-color: #66fcf1;
  color: #0b0c10;
  box-shadow: 0 0 10px #66fcf1;
}

#demo-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: transparent;
  color: #66fcf1;
  box-shadow: none;
}
/* --- RECORDING CONTROLS --- */
.record-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1f2833;
}

.rec-btn,
.play-btn {
  background-color: #2c353f;
  color: #c5c6c7;
  border: 1px solid #45a29e;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  transition: all 0.2s;
}

.play-btn:hover:not(:disabled) {
  background-color: #66fcf1;
  color: #0b0c10;
  box-shadow: 0 0 10px #66fcf1;
}

.play-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #333;
}

/* Pulsing Red Animation for Active Recording */
@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 65, 54, 0.7);
    background-color: #ff4136;
    color: white;
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 65, 54, 0);
    background-color: #ff4136;
    color: white;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 65, 54, 0);
    background-color: #ff4136;
    color: white;
  }
}

.is-recording {
  animation: pulse-red 1.5s infinite;
  border-color: #ff4136 !important;
}
