body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, #1b1b1b, #070707);
  color: white;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
}

.hero {
  text-align: center;
  margin-bottom: 35px;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  color: #00ff99;
  letter-spacing: 1px;
}

.hero p {
  margin-top: 8px;
  color: #baffdf;
  font-size: 18px;
  letter-spacing: 3px;
}

.panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #333;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(0, 255, 153, 0.12);
}

.controls {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.file-label,
button,
select {
  background: #111;
  color: white;
  border: 1px solid #00ff99;
  border-radius: 8px;
  padding: 11px 16px;
  cursor: pointer;
}

.file-label input {
  display: none;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

select {
  min-width: 190px;
}

h2 {
  color: white;
  text-align: center;
}

.piano-roll-container {
  display: flex;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  width: 1100px;
  height: 220px;
  border: 1px solid #444;
}

.piano-label {
  width: 90px;
  background: #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff99;
  font-weight: bold;
  border-right: 1px solid #444;
}

.piano-roll {
  position: relative;
  flex: 1;
  height: 100%;
  background: #20292d;
  overflow: hidden;
}

.note {
  position: absolute;
  height: 18px;
  background: #d7ff8f;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(215, 255, 143, 0.8);
}

.velocity {
  position: absolute;
  bottom: 0;
  width: 3px;
  background: #d7ff8f;
  opacity: 0.8;
}

.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #00ff99;
  left: 0;
  display: none;
  z-index: 10;
}

@media (max-width: 1000px) {
  .piano-roll-container {
    width: 95vw;
  }

  .hero h1 {
    font-size: 34px;
  }
}

.icon-btn {
  width: 46px;
  height: 42px;
  padding: 0;
  font-size: 22px;
  font-weight: bold;
  color: #00ff99;
  background: #111;
  border: 1px solid #00ff99;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover:not(:disabled) {
  background: #00ff99;
  color: #111;
  box-shadow: 0 0 15px rgba(0, 255, 153, 0.6);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 35px;
}

.title-container {
  text-align: center;
}

.visualizer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
}

.visualizer span {
  width: 5px;
  background: #00ff99;
  border-radius: 10px;
  box-shadow: 0 0 10px #00ff99;
  animation: pulse 1.5s infinite ease-in-out;
}

.visualizer span:nth-child(1) {
  height: 8px;
}

.visualizer span:nth-child(2) {
  height: 16px;
  animation-delay: 0.1s;
}

.visualizer span:nth-child(3) {
  height: 32px;
  animation-delay: 0.2s;
}

.visualizer span:nth-child(4) {
  height: 60px;
  animation-delay: 0.3s;
}

.visualizer span:nth-child(5) {
  height: 32px;
  animation-delay: 0.2s;
}

.visualizer span:nth-child(6) {
  height: 16px;
  animation-delay: 0.1s;
}

.visualizer span:nth-child(7) {
  height: 8px;
}

@keyframes pulse {
  0%, 100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(1.4);
  }
}

.icon-btn {
  width: 46px;
  height: 42px;
  padding: 0;
  font-size: 22px;
  font-weight: bold;
  color: #00ff99;
  background: #111;
  border: 1px solid #00ff99;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover:not(:disabled) {
  background: #00ff99;
  color: #111;
  box-shadow: 0 0 15px rgba(0, 255, 153, 0.6);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 800px) {
  .hero {
    gap: 15px;
  }

  .visualizer {
    transform: scale(0.7);
  }

  .hero h1 {
    font-size: 32px;
  }
}

.grid-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 1;
}

.bar-line {
  background: rgba(0, 255, 153, 0.45);
  width: 2px;
}

.beat-line {
  background: rgba(255, 255, 255, 0.18);
}

.sixteenth-line {
  background: rgba(255, 255, 255, 0.07);
}

.note,
.velocity,
.playhead {
  z-index: 5;
}

.hidden {
  display: none !important;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #1b1b1b, #070707);
}

.login-card {
  width: 380px;
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #333;
  box-shadow: 0 0 35px rgba(0, 255, 153, 0.16);
  text-align: center;
}

.login-card h1 {
  color: #00ff99;
  margin: 0;
  font-size: 34px;
}

.login-card p {
  color: #baffdf;
  letter-spacing: 4px;
  margin-bottom: 28px;
}

.login-card input {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid #00ff99;
  background: #111;
  color: white;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.login-card button {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid #00ff99;
  background: #00ff99;
  color: #111;
  font-weight: bold;
  cursor: pointer;
}

.login-card small {
  display: block;
  margin-top: 15px;
  color: #ff8080;
}