/* Add loading styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--light-background);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* File upload enhancements */
.file-upload-container {
  gap: 10px;
}

.file-info {
  display: inline-block;
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-left: 10px;
  background-color: var(--light-background);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Improved beat display */
#bar-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 15px;
  background-color: var(--light-background);
  border-radius: 8px;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.beat-element {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  padding: 10px 15px;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.beat-element.current {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: bold;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.beat-element.next {
  background-color: var(--light-hover);
  font-weight: 500;
}
