.metronome-player-popup {
  padding: 20px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  background-color: '#f8f9fa';
  min-width: 380px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); */
}

.metronome-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d0d0d0;
}

.metronome-player-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

.metronome-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.metronome-close-btn:hover {
  background-color: #e9ecef;
  color: #495057;
}

.metronome-player-body {
  padding: 10px 0;
}

.metronome-player-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Main content area with buttons and form side by side */
.metronome-main-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* Playback buttons - circular icons */
.metronome-playback-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metronome-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #007bff;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.metronome-icon-btn:hover:not(.disabled) {
  background-color: #007bff;
  color: #fff;
}

.metronome-icon-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #ccc;
}

.metronome-play-icon .play-icon {
  font-size: 14px;
  color: #007bff;
  margin-left: 2px;
}

.metronome-icon-btn:hover:not(.disabled) .play-icon {
  color: #fff;
}

.metronome-stop-icon .stop-icon {
  font-size: 12px;
  color: #007bff;
}

.metronome-icon-btn:hover:not(.disabled) .stop-icon {
  color: #fff;
}

/* Form controls with labels on left, inputs on right */
.metronome-form-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.metronome-form-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 12px;
}

.metronome-form-label {
  font-weight: 400;
  font-size: 0.875rem;
  color: #666;
  text-align: right;
  margin: 0;
}

/* Close button container */
.metronome-close-container {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  border-top: none;
}

.metronome-close-button {
  min-width: 100px;
  padding: 8px 32px;
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.metronome-close-button:hover {
  background-color: #f8f8f8;
  border-color: #999;
}

.metronome-error {
  padding: 8px 12px;
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

/* Legacy styles - no longer used but kept for backwards compatibility */
.metronome-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metronome-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #495057;
  margin: 0;
}

.metronome-select {
  padding: 6px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 0.875rem;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  color: #333;
}

.metronome-select:hover:not(:disabled) {
  border-color: #999;
}

.metronome-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.metronome-select:disabled {
  background-color: #f5f5f5;
  color: #666;
  cursor: default;
  border-color: #e0e0e0;
}

/* Legacy checkbox and actions styles - removed in redesign */

/* Modal-specific styles */
.metronome-player-modal .modal-content {
  border-radius: 8px;
}

.metronome-player-modal .modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.metronome-player-modal .modal-body {
  padding: 20px;
}
